Crossover Block
-
Hi, I am working on a EMA crossover strategy, whereby a trade is opened when:
- EMA20 crosses above EMA50, AND
- After this cross, any of the next 5 bars should be totally above the 2 EMAs
Which block should I use to create criteria 2)? Thanks in advance!
-
then candle ID 5 is above MA20
But you should check candle ID 0 is also above because maybe candles are bearish -
Thanks for your advice, but am looking to check the next 5 bars (any of them). Candle ID 5 will refer to the past 5th bar?
-
Then you will need a counter. Select the current initial candle as counter 1 and then check the condition for the next 5 counters.
