How to identify swing highs/lows?
-
How do I have the EA identify swing highs/lows? I know it is possible, I've seen trading nut do it on youtube, but he didn't reveal exactly how he did it.
I somehow need the EA to identify a 3 candle formation, of which the high/low of the middle candle is the highest/lowest.

-
@Mitchp I’ve recently done this but it’s not about the candle formation, it’s about filters so it is done at highs and lows and not in ranging markets or buying at the high or selling at the low just for price to reverse and you lose
-
@GTOAT777 It's not a strategy in itself.
It's just a component of a strategy I need to implement, but don't know how.
-
When identifying candles, candle 1 = the most recently closed candle, where candle 0 is the current open candle
Bearish swing
- Candle 3 high < candle 2 high
- Candle 2 high > candle 1 high
Bullish swing
- Candle 3 low > candle 2 low
- Candle 2 low < candle 1 low
-
@DG8805 Thanks for your assistance.
But then what block do I use?
I want to define swing points so I can refer to them in the strategy.
Do I just put two conditions and link them together like that?
-
@Mitchp yes use the condition block and link them one after the other