dman103

Adaptive Donchian Lines

dman103 Updated   
The Adaptive Donchian plots a line based on the average of the lowest low and highest high. I call it 'ADL'.
Maximum/Minimum lookback period defines the range where the adaptive length can move.
When the asset velocity increases the indicator shortens its lookback period.
When the asset velocity decreases the indicator lengthens its lookback period.
The higher value 'Percent of change' is, the more adaptive it will be, hench, Adaptive Donchian sensitivity increases to velocity changes.

You can select from two different types of signals "Above or Below Middle Line" and "Touching Bands".
"Above or Below Middle Line" gives a Buy signal if LOW is crossing over the middle line and Sell signal if HIGH is crossing under the middle line.
"Touching Bands" gives Buy signal if HIGH touches the upper band and Sell signal if LOW touches the lower band.

== Color for "Touching Bands" ==
Green: Low is above center line - Up trending.
Lighter Green: Close is above center line but Low is still below H/L line - Weaker up trend.
Red: High is below center line - Down trending.
Lighter Red: Close is below the center line but High is still above H/L line - Weaker down trend.

== Color for "Above or Below Middle Line" ==
Green: Low is above center line - Up trending.
Red: High is below center line - Down trending.

== Notes ==
Bar coloring is disabled by default.
Middle line can also act as a stop loss.
Like if you like and Enjoy!

Code is currently closed as it needs more cleaning and updates.
Feel free to comment and Follow to stay updated with upcoming scripts: www.tradingview.com/u/dman103
Release Notes:
Added alerts.
Release Notes:
Better description for alerts.

Appreciation of my work: paypal.me/dman103
Premium Pivot Points Algo Indicator: www.tradingview.com/script/LFBaHNuA-Pivot-Points-Algo/
LIVE Stream - Pivot Points Algo: www.youtube.com/channel/UCFyqab-i0xb2jf-c18ufH0A/live
Protected script
This script is published closed-source but you may use it freely. You can favorite it to use it on a chart. You cannot view or modify its source code.
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.

Want to use this script on a chart?