TradingView
djmad
3 déc. 2022 13:26

[Mad] Active Line 

BTCUSD Perpetual ContractBybit

Description

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 :-)

Notes de version

added alerts

Notes de version

Additional customisation
width color and active/deactive per item

Notes de version

Log compensation, (thanks to Bjorgum for the hint also to log the time not only the price)

Code cleanup

Notes de version

removing unused function

Notes de version

minor change
-selectable extension direction

Notes de version

typo ..
Commentaires
xmd1979
nice code, thank you) can u make the code to search automatically for last low last high highest high and lowest low and build a channel box by that?! your idea looks cool
djmad
@xmd1979, thx for the flowers :-)
For me linethicknesses and stuff like this have priority for the next updates, also option to separatly disable the vertical line.
to integrate that here would be for me out of scope, as it would be a project like "Recursive ZigZag"
may try out "trend line pro" if you like automatic lines, which delivers really good results.
Plus