At any time during the last X days, the reading must have been less than Y

I would like to set a condition that the indicator has been below 0.5 at some point in the last 10 days (for example) and that today at the close it values 0.7 or greather (for example).

I have programmed this:

Buy = indicator> 0.7 AND (LLV(indicator,10) < 0.5);

Would it be like this?

Best regards,

One way to find out - test it and see!

how-do-i-debug-my-formula

This topic was automatically closed 100 days after the last reply. New replies are no longer allowed.