If I for example had a 10 SMA and a MACD, I wanted to trade when the SMA crosses over from negative to positive but only if the MACD has crossed over from negative to positive in the last 5 candles.
How would I make this work? I basically want the MACD to cross over and then give a grace period of 5 candles in which the MACD block is allowed to be passed; as it stands right now it won't work because it wants the MACD and SMA to cross over at exactly the same time







