Crossed in the past X candles
-
For me to enter a trade, I need two of my indicators to cross at the same time, lets say previously closed candle, ID 1.
This is kind of strict, so I would want to allow some breathing room for like if Indi 1 crossed a candle earlier compared to Indi 2.

This is quite possible to do with some candle ID 1 or 2 blocks.
But what if I want other ranges such as 2 or 3 or more candles? It is not feasible to arrange the logic by block.
What I want to achieve is.. if indi 1 crossed in the past X candles, lets say 4 candles.. and my second indi crossed in the previous candle, I would enter the trade.
-
@xlestergg Try this LOOP, you can set it up to work with as many crosses as you like, just have 1 loop for each condition. It will count candles when true, and reset to 0 when false.