OPEN-SOURCE SCRIPT
Updated

Trend Lines

50662
Automated trend lines
Release Notes
Cleans/ simplifies script and fixes bugs where the a line might not draw.

Also adds a yellow average line
Release Notes
Adds color background to ranges
Release Notes
Attempt to fix "Internal server error" issues...
Release Notes
adds the ability to toggle lines
adds the ability to smooth the source value to partially ignore random spikes
Release Notes
think I finally fixed the runtime error during tick change
Release Notes
simplifies the x,y lookups
adds more customization
removes time-based checks
Release Notes
fixes high, low inits which were cause line to disappear
Release Notes
reduced for loops
Release Notes
adds historical line trace
Release Notes
renames plot lines to more easily appear in alerts dropdown
Release Notes
fixes average line
Release Notes
- Simplifies the UI to be more instantly apparent of the trend and it's start and end points.
- Simplifies the script down to a simple for loop
- Adds toggle for historical trace lines and prints them as stepline
- **HOPEFULLY** fixes the server error issue

Apologies to anyone that was using the previous version whose settings will get reset, but I think you'll enjoy this version much better.

TODOs: The trace points currently only work with non-log view -- update the code to check for log view and update the linear-extrapolation algorithm to a logarithmic-extrapolation
Release Notes
- Adds offset capability (historical view)
- Adds back the criss-cross pattern
Release Notes
Long awaited introduction of indicators on the logarithmic scale!
Unfortunately there is not a variable in PineScript that tells you if you are in log mode or not, so you'll have to toggle it manually.

Disclaimer

The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.