simple ea for supertrend
Forums › ProRealTime English forum › ProOrder support › simple ea for supertrend
- This topic has 8 replies, 5 voices, and was last updated 4 years ago by
robertogozzi.
-
-
09/08/2021 at 1:04 PM #17701609/08/2021 at 1:19 PM #177017
This is the strategy code you are looking about: https://www.prorealcode.com/topic/croisement-supertrend-en-cours-de-periode/#post-92490
In order to have trailing stop, change the SET STOP PLOSS instruction with SET STOP PTRAILING
There might be a lot of variant on forums though.
09/08/2021 at 2:09 PM #17702409/08/2021 at 4:39 PM #177032Do not double post. Ask your question only once and only in one forum. All double posts will be deleted anyway so posting the same question multiple times will just be wasting your own time and will not get you an answer any quicker. Double posting just creates confusion in the forums
I deleted the other one.
Thank you 🙂
09/08/2021 at 4:41 PM #177033Did you test it?
Have you been reported any error?
09/08/2021 at 7:09 PM #17704109/08/2021 at 8:03 PM #17704609/09/2021 at 7:07 AM #17707409/09/2021 at 7:11 AM #177076Try this one:
12345678myST = SuperTrend[3,10]IF Close CROSSES OVER myST THENBUY at MarketELSIF close CROSSES UNDER myST THENSELLSHORT at MarketENDIFSET TARGET pPROFIT 100SET STOP pTRAILING 20 -
AuthorPosts
Find exclusive trading pro-tools on