TradingView
djmad
3 de Dic. de 2022 13:26

[Mad] Active Line 

BTCUSD Perpetual ContractBybit

Descripción

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

Notas de prensa

added alerts

Notas de prensa

Additional customisation
width color and active/deactive per item

Notas de prensa

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

Code cleanup

Notas de prensa

removing unused function

Notas de prensa

minor change
-selectable extension direction

Notas de prensa

typo ..
Comentarios
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.
Más