OPEN-SOURCE SCRIPT

Titans Trend Lines

Updated
This indicator will plot trend lines based on recent pivot highs and lows.

The pivot sensitivity level may be customised under the indicator settings. The pivot highs and lows are identified by 'H' and 'L' markers.

Through the indicator, a purple dotted line connects the last two pivot highs and another purple dotted line connects the last two pivot lows. These lines are extended to the left and right beyond the connected points.

If a new trend line has developed due to the formation of a new pivot high or low, the last trend line will be grayed to help with referencing.

The user is advised to use this indicator at his own risk.
Release Notes
v2: In the last version, if there are less than two pivots within the search window, an incorrect trend line is produced. In this version, the default value for the search window has been increased from 50 to 100. In case that is insufficient, the user may now also custom define the search window.
Bands and ChannelsChart patternsdrawingpivothighpivotlowsupportswinghighswinglowTrend Analysis

Open-source script

In true TradingView spirit, the author of this script has published it open-source, so traders can understand and verify it. Cheers to the author! You may use it for free, but reuse of this code in publication is governed by House rules. You can favorite it to use it on a chart.

Want to use this script on a chart?

Disclaimer