I try to implement an indicator to validate a signal :
example for buying signal validation :
Step 1 : buying signal is given when MMA 7 Days> MMA 28 Days but it has to be validated
Step2 : validation is given when the current daily closing is above the highest daily closing until 21 Days before the buying signal
I know how to build the step 1 indicator but i do not know how to program the step 2
if someone can help me
best regards
close > highest[21](high[1])
Step1 code is:
condition = average[7]>average[28]