Trend Lines
Published on MillionChart by Bullora.
This script draws trend lines from pivot points. It first finds pivot highs and pivot lows, then connects them under specific conditions.
How it works:
- For pivot highs: if the current pivot high is lower than the previous one, which suggests no new higher high and a possible downtrend, a trend line is drawn between them.
- For pivot lows: if the current pivot low is higher than the previous one, which suggests no new lower low and a possible uptrend, a trend line is drawn between them.
- In both cases the script checks the previous trend line, if there is one, and does not extend it when the current line's angle is smaller.
- Old trend lines can optionally be shown as dashed lines.
This is a newer version of an earlier beta trend line script by the same author.