OPEN-SOURCE SCRIPT
Atualizado Structural Trendlines

Automatically detects structural trendlines anchored at confirmed pivot highs (Lower Highs) and pivot lows (Higher Lows), drawing only lines the market
has genuinely respected — every bar between the anchor and touch pivot must stay clean, with no wick violations beyond tolerance. Steep, parabolic lines
are filtered out using rolling angle normalization, and anchors expire after a configurable number of bars so the indicator never draws from forgotten
history. A signal fires only when price closes beyond the projected line — not a wick — eliminating false breakouts from intraday noise. Stop-loss is
automatically set to the low of the break candle (bullish) or the high (bearish).
has genuinely respected — every bar between the anchor and touch pivot must stay clean, with no wick violations beyond tolerance. Steep, parabolic lines
are filtered out using rolling angle normalization, and anchors expire after a configurable number of bars so the indicator never draws from forgotten
history. A signal fires only when price closes beyond the projected line — not a wick — eliminating false breakouts from intraday noise. Stop-loss is
automatically set to the low of the break candle (bullish) or the high (bearish).
Notas de Lançamento
update default valuesScript de código aberto
Em verdadeiro espírito do TradingView, o criador deste script o tornou de código aberto, para que os traders possam revisar e verificar sua funcionalidade. Parabéns ao autor! Embora você possa usá-lo gratuitamente, lembre-se de que a republicação do código está sujeita às nossas Regras da Casa.
Aviso legal
As informações e publicações não se destinam a ser, e não constituem, conselhos ou recomendações financeiras, de investimento, comerciais ou de outro tipo fornecidos ou endossados pela TradingView. Leia mais nos Termos de Uso.
Script de código aberto
Em verdadeiro espírito do TradingView, o criador deste script o tornou de código aberto, para que os traders possam revisar e verificar sua funcionalidade. Parabéns ao autor! Embora você possa usá-lo gratuitamente, lembre-se de que a republicação do código está sujeita às nossas Regras da Casa.
Aviso legal
As informações e publicações não se destinam a ser, e não constituem, conselhos ou recomendações financeiras, de investimento, comerciais ou de outro tipo fornecidos ou endossados pela TradingView. Leia mais nos Termos de Uso.