Hy,i’m looking for a simple supertrend Ea to test.
i’d like to have a simple one to use with t3 platform, for entries when supertrend change color.
I’d like to have tp sl and trailing.
Any suggests?
Thanks
Regards
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.
thanks for answer but i think this code is not compatible with the old (v7 version) versione used by my platform t3 webank
Any other suggests
Thanks
Regards
Do 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 🙂
Did you test it?
Have you been reported any error?
Supertrend looks good and you can adapt almost anything by optimization.
cescof, Did u test it. Got exemple code and backtest?
Sorry but PRT v7 is so old I can’t imagine how many things have changed since in the coding language!
Try this one:
myST = SuperTrend[3,10]
IF Close CROSSES OVER myST THEN
BUY at Market
ELSIF close CROSSES UNDER myST THEN
SELLSHORT at Market
ENDIF
SET TARGET pPROFIT 100
SET STOP pTRAILING 20