A Swing High (SH) is a price bar high preceed by two lower highs (LH) and followed by two lower highs (LH)
In the event of multiple candles forming equal highs, this will still be defined as a swing high, provided that there are two candles with lower highs both preceding and following the multiple candle formation.
Added the verification of all the possible casuistry:
If there are two, three or four bars followed with the same highs or lows and surrounded with tiny bars
Or two or three bars with equal highs or lows alternating with tiny bars.
New parameter to activate repaint (NOT repaints by default)
I am using YTC Swing high low indicator during the market.
How can I configure the following thing,
Let say I am having 10 stocks in my watchlist on which I would like to apply above indicator. So, whenever highs or lows are made on any of the 10 stocks from the watchlist on charts, I want an auto pop alert of the same.
Can you help me to configure this?
Thanks and Regards,
I have added two alerts conditions to the script.
Hope this can help you to setup your alerts for your watchlist.
Write me again if you need anything.
You are welcome.
I was wondering how you could add to this to use to identify just the swing highs and lows that are forming the market structure. in an upward trend, just the higher highs, and lows, and in the downward the lower lows and highs, and then identify when there is a break.
From de Swing High definition: 'A Swing High (SH) is a price bar high preceed by two lower highs (LH) and followed by two lower highs (LH)'
Therefore, we must wait for two bars to pass in order to confirm the signal. And if you want the indicator not to be repainted, you must wait to the close of the second bar.
I hope I have clarified your doubts.