Hi.
Could i get help with the code for “exit position next bar, i.e exit after one bar.
WingParticipant
Veteran
Sell at market
If rsi[14]>70 then
buy 1 lot at market
endif
Thanks for reply.
Sell at market makes it 0 bars i want one bar, buy at close if close is = to low. Sell at close next bar. enter at close of bar exit at close of next bar.
Bonjour
Ne serait ce que pour ne pas avoir de 0 bar dans les backtest ce serait pas mal!! mais on attend??
Madrosat
WingParticipant
Veteran
See this previous thread. It has the code you need: https://www.prorealcode.com/topic/time-limit-2/