I ‘m trying to code a ProScreener indicator using two timeframes, 15 minutes and 5 minutes. How do I test a condition on the 15 minutes timeframe has been met within the last, say 10 bars, while on the 5 minute time frame?
See the example code below where the “long” condition is what I’m trying to figure out
So if I understand correctly your request, you want to return immediately the stocks that fulfilled the conditions of your 5 minutes timeframe, while the conditions of the 15 minutes timeframe were met at least 1 time within the last 10 bars?