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 .
Open-source Skript
Ganz im Sinne von TradingView hat dieser Autor sein/ihr Script als Open-Source veröffentlicht. Auf diese Weise können nun auch andere Trader das Script rezensieren und die Funktionalität überprüfen. Vielen Dank an den Autor! Sie können das Script kostenlos verwenden, aber eine Wiederveröffentlichung des Codes unterliegt unseren Hausregeln.
Haftungsausschluss
Die Informationen und Veröffentlichungen sind nicht als Finanz-, Anlage-, Handels- oder andere Arten von Ratschlägen oder Empfehlungen gedacht, die von TradingView bereitgestellt oder gebilligt werden, und stellen diese nicht dar. Lesen Sie mehr in den Nutzungsbedingungen.
Open-source Skript
Ganz im Sinne von TradingView hat dieser Autor sein/ihr Script als Open-Source veröffentlicht. Auf diese Weise können nun auch andere Trader das Script rezensieren und die Funktionalität überprüfen. Vielen Dank an den Autor! Sie können das Script kostenlos verwenden, aber eine Wiederveröffentlichung des Codes unterliegt unseren Hausregeln.
Haftungsausschluss
Die Informationen und Veröffentlichungen sind nicht als Finanz-, Anlage-, Handels- oder andere Arten von Ratschlägen oder Empfehlungen gedacht, die von TradingView bereitgestellt oder gebilligt werden, und stellen diese nicht dar. Lesen Sie mehr in den Nutzungsbedingungen.