SatoshiYoshimura

Swing Highs and Lows (version 2)

My second version of plotting Swing Highs and Swing Lows
A Swing High (SH): a price bar high preceed by two lower highs (LH) and followed by two lower highs (LH)

This version enables you to ignores swing highs and lows when the market volatility is small and not suitable for trading.
Thus it will depict fewer number of SH and SL markers, making the chart a bit cleaner and easier for us to read.
Volatility is measured simply by the amount of pips moved within five consecutive bars: the default is set at 10 pips, meaning that when you take five consecutive bars and the gap of the highest high and the lowest low is less than or equal to 10 pips, it will not depict SH or SL markers.
To use this function, check "set volatility threshold?" box under the Format icon and set a threshold in pips.
(I typically trade EURUSD so the pips input is customized for that)
Script de código abierto

Siguiendo el verdadero espíritu de TradingView, el autor de este script lo ha publicado en código abierto, para que los traders puedan entenderlo y verificarlo. ¡Un hurra por el autor! Puede utilizarlo de forma gratuita, aunque si vuelve a utilizar este código en una publicación, debe cumplir con lo establecido en las Normas internas. Puede añadir este script a sus favoritos y usarlo en un gráfico.

Exención de responsabilidad

La información y las publicaciones que ofrecemos, no implican ni constituyen un asesoramiento financiero, ni de inversión, trading o cualquier otro tipo de consejo o recomendación emitida o respaldada por TradingView. Puede obtener información adicional en las Condiciones de uso.

¿Quiere utilizar este script en un gráfico?