OPEN-SOURCE SCRIPT
Mirror Trendline Tool

This indicator is an interactive mirror‑trendline drawing tool that uses three draggable points to build two related lines. Point One and Point Two define the primary (blue) trendline; Point Three defines the starting anchor for the mirrored line, which always has the opposite slope to the blue line and updates live as you move the anchor, giving continuous visual feedback while you drag it .
A color‑invert option automatically generates the mirrored line’s color by mathematically inverting the chosen base color while preserving its opacity, with a checkbox to disable inversion so both lines can share the same appearance . When “Stop at Intersection” is checked, both lines terminate exactly at their intersection, creating a clean V‑shaped construction that highlights the symmetry point between the reference move and its mirror . When the box is unchecked, both lines extend beyond that intersection, but their total duration is capped at no more than twice the original blue segment’s length, keeping projections proportionate and preventing excessively long rays from cluttering the chart .
A color‑invert option automatically generates the mirrored line’s color by mathematically inverting the chosen base color while preserving its opacity, with a checkbox to disable inversion so both lines can share the same appearance . When “Stop at Intersection” is checked, both lines terminate exactly at their intersection, creating a clean V‑shaped construction that highlights the symmetry point between the reference move and its mirror . When the box is unchecked, both lines extend beyond that intersection, but their total duration is capped at no more than twice the original blue segment’s length, keeping projections proportionate and preventing excessively long rays from cluttering the chart .
Script open-source
Nello spirito di TradingView, l'autore di questo script lo ha reso open source, in modo che i trader possano esaminarne e verificarne la funzionalità. Complimenti all'autore! Sebbene sia possibile utilizzarlo gratuitamente, ricordiamo che la ripubblicazione del codice è soggetta al nostro Regolamento.
Declinazione di responsabilità
Le informazioni e le pubblicazioni non sono intese come, e non costituiscono, consulenza o raccomandazioni finanziarie, di investimento, di trading o di altro tipo fornite o approvate da TradingView. Per ulteriori informazioni, consultare i Termini di utilizzo.
Script open-source
Nello spirito di TradingView, l'autore di questo script lo ha reso open source, in modo che i trader possano esaminarne e verificarne la funzionalità. Complimenti all'autore! Sebbene sia possibile utilizzarlo gratuitamente, ricordiamo che la ripubblicazione del codice è soggetta al nostro Regolamento.
Declinazione di responsabilità
Le informazioni e le pubblicazioni non sono intese come, e non costituiscono, consulenza o raccomandazioni finanziarie, di investimento, di trading o di altro tipo fornite o approvate da TradingView. Per ulteriori informazioni, consultare i Termini di utilizzo.