TradingView
djmad
3 דצמ׳ 2022 13:26

[Mad] Active Line 

BTCUSD Perpetual ContractBybit

תיאור

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

הערות שחרור

added alerts

הערות שחרור

Additional customisation
width color and active/deactive per item

הערות שחרור

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

Code cleanup

הערות שחרור

removing unused function

הערות שחרור

minor change
-selectable extension direction

הערות שחרור

typo ..
תגובות
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.
עוד