OPEN-SOURCE SCRIPT

Extended from Moving Average

Updated
This indicator helps avoid chasing extended stocks by showing every time a stock is too far extended from a selected moving average.

Features:
✔️ selectable moving average and source (high, low, close)
✔️ choose to plot or hide the moving average
✔️ selectable distance to be considered too extended
Release Notes
Fixed a typo in code affecting the source
Release Notes
clean up
Release Notes
New option to create a fill between the closing price and selected moving average when the extension is met.
Release Notes
Added functionality to see when price is extended away from the moving average to the downside as well.
Release Notes
Added a table to show the distance from the selected moving average.
Added the option to select a different time frame for the moving average.
Added alerts.
canslimexponentialmovingaveragesextendedextensionibdmoving_averageMoving AveragesTrend Analysis

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?


Trusted Pine programmer. Send me a message for script development.
Also on:

Disclaimer