OPEN-SOURCE SCRIPT

Dynamic Bern Trail

Updated
This indicator will help you following price movements in trending or ranging markets. Within it's calculations it uses ATR, EMA with a smoothing effect. It includes a buffer zone to help determine where price may turn around and reverse or to identify when a breakout occurs by breaking through the ATR trail. You can customize and play around with several settings to adjust it for your asset. Adjustments that can be made besides visuals are ATR Length, ATR Multiplier, EMA Length, Smoothing Length and the Buffer Multiplier.
Release Notes
Multi-timeframe added. Also you can now choose between EMA, SMA, RMA, HMA, DEMA and TMA for the main plot. When first created only the EMA was used, so you might have to change some of the other settings when choosing your desired Moving average.
Release Notes
Added a current "ADX" label level reading. It will update with each new bar that is produced. (So be careful on higher timeframes)
50 and above is Blue = "Really strong trend"
50 - 25 is Purple = "Strong trend"
25 - 20 is Gray = "Neutral" Keep an eye out.
20 and Below is Red =" Weak or no trend"
Note: Please remember the ADX does not keep trend direction in mind, you can have a high reading of 50 and price is decreasing. Meaning its a strong trend to the downside.
You can switch the ADX label On/Off.
Release Notes
Clean code.
Release Notes
Typo fixed.
Release Notes
Added VWMA and WMA to the MA Type options.
Moving AveragesTrend AnalysisVolatility

Open-source script

In true TradingView spirit, the author of this script has published it open-source, so traders can understand and verify it. Cheers to the author! You may use it for free, but reuse of this code in publication is governed by House rules. You can favorite it to use it on a chart.

Want to use this script on a chart?

Disclaimer