OPEN-SOURCE SCRIPT
Atualizado YTC - Swing Highs & Lows

This Indicator Plots Swing Highs & Swing Lows based on Lance Beggs of (Your Trading Coach) definition:
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.
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.
Notas de Lançamento
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)
Script de código aberto
No verdadeiro espirito do TradingView, o autor desse script o publicou como código aberto, para que os traders possam entendê-lo e verificá-lo. Parabéns ao autor Você pode usá-lo gratuitamente, mas a reutilização desse código em publicações e regida pelas Regras da Casa.
Para acesso rápido no gráfico, adicione esse script para seus favoritos — saiba mais aqui.
Aviso legal
As informações e publicações não devem ser e não constituem conselhos ou recomendações financeiras, de investimento, de negociação ou de qualquer outro tipo, fornecidas ou endossadas pela TradingView. Leia mais em Termos de uso.
Script de código aberto
No verdadeiro espirito do TradingView, o autor desse script o publicou como código aberto, para que os traders possam entendê-lo e verificá-lo. Parabéns ao autor Você pode usá-lo gratuitamente, mas a reutilização desse código em publicações e regida pelas Regras da Casa.
Para acesso rápido no gráfico, adicione esse script para seus favoritos — saiba mais aqui.
Aviso legal
As informações e publicações não devem ser e não constituem conselhos ou recomendações financeiras, de investimento, de negociação ou de qualquer outro tipo, fornecidas ou endossadas pela TradingView. Leia mais em Termos de uso.