ADX Crosses on last 5 candles
-
Can someone help me. I would like a buy order to be triggered when the ADX Di+ crosses above the 27 level if the ADX itself is above 27, and if the Di+ has cross the Di- in the last 5 candles.
https://fxdreema.com/shared/nKdlt5csc
i also tried by changing cross width, doesn't work either
Thanks
-
try putting once per bar just before buy/sell blocks, so the conditions can be checked on every tick. it's possible that the cross condition can be skipped if once per bar is connected to it
once per bar triggers at the start of a bar, and x> checks if on previous bar value was under and on current is above.
at the start of the bar it can be bellow. then at the end of the bar it can be above. but we only check once at the start.so on the first trigger it was under on both candle A and candle B. and if during the bar your value crossed above
on the next bar it will be above on candle B and candle C meaning the block will never trigger. -
Thank you for answering. You are right and this is very logic

But there is still something wrong with it. on visual backtest i can see that sometimes, the entries are right on but it still miss some obvious on too. Can you see something else that could be wrong?
https://fxdreema.com/shared/MaiPFRGed -
My bad, everything is fine.
thx again