[Mad] Active Line

djmad Updated   
This is a simple line tool that can give you active feedback based on the closing price.

It is intended for a live chart whose ticker is not changed by the user every 10 minutes, like a general overview of an asset in a higher time frame.

What can it provide:
Price difference from the price to the line
Price at the current collision point

How to use it:
When opened, it requests 2 input points from you.
After you set these 2 points, it will set the "Active Line" for you, like the normal TV line.

One thing to know is that you can't place into the future, so "extend" is always on by default.

and as always, have fun trading the assets up and down :-)
Release Notes:
added alerts
Release Notes:
Additional customisation
width color and active/deactive per item
Release Notes:
Log compensation, (thanks to Bjorgum for the hint also to log the time not only the price)

Code cleanup
Release Notes:
removing unused function
Release Notes:
minor change
-selectable extension direction
Release Notes:
typo ..

Trader & coder. TA & NFTs. more at
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 a publication is governed by House Rules. You can favorite it to use it on a chart.


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.

Want to use this script on a chart?