Check max. age of a signal
-
I'm currently struggling on finding a smart way to check if a signal is not older than n bars. For example, I have an indicator for entry signals that have exactly 1 buffer that gives me the signal. Let's assume it is a moving average that has a buffer for uptrend. If there is no uptrend detected by the MA indicator, my buffer has empty_value.
What woukd be the smartest approach (best without looping) in order to figure out, if that signal was 1st time creates maximum 7 candles ago for instance.
The indicator is visible block won't help me as I don't care if the signal was created 1 or 4 or 6 candles ago (and since that time stayed active). What I want is that from the last 8 candles, at least 1 candle was not showing a value in my custom indicator's buffer.
Any ideas how to do that with fxdreema block(s)? -
Why no looping?
-
@l-andorrà Try to find a way using simple fxdreema blocks. Looping I do only if it is not avoidable.