PROTECTED SOURCE SCRIPT

Adaptive Donchian Lines

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: tradingview.com/u/dman103
Release Notes
Added alerts.
Release Notes
Better description for alerts.
donchainDonchian Channels (DC)

Protected script

This script is published closed-source and you may privately use it freely.

Want to use this script on a chart?


Appreciation of my work: paypal.me/dman103
Premium Pivot Points Algo Indicator: tradingview.com/script/LFBaHNuA-Pivot-Points-Algo/
LIVE Stream - Pivot Points Algo: youtube.com/channel/UCFyqab-i0xb2jf-c18ufH0A/live
Also on:

Disclaimer