Adx conditions in streak

I was trying to add adx conditions for bullish market.
Like +di higher than -di and adx should be rising from last 4 candles. Any simple way instead of writing adx(0) higher than adx(-1) and so on… till adx(-3) ?

Hope this helps.

How to write 5 green and rising candles?

You can take the example from the last snap-shot shared by @Dragonfly For 5 green candle you can put Period Min (5, Close(0) - open(0)) higher than 0, and the same you can do for adx.

1 Like

This can be helpful,

Yes, and a lot of other conditions can be created using the same logic.