Buy when the custom indicator 11st bar before signal is below 0
-
How to check the custom indicator that the 11st bar before is below zero and the other ten bars are larger than zero to make a buy decision? Thanks for help!

-
You can try this:

-
Sorry, I am not so smart enough. Is it use Candle ID to determinate how many days before is below zero? Please help!
-
No. This configuration is telling the EA if ther was a crossing from below 0 to above zero at any moment in theprevious 11 days.
-
Which variable set 11st day? If I need to change to previous 5 days, where should I change? Thanks again for your help!
-
In my example I spacified candle ID 10 on the left operand. Substitute it by a 4 instead to get that 5 days period.
-
Got it. Thanks for your great help!
-
You're welcome.