Amphibiantrading

Extended from Moving Average

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.

Trusted Pine programmer. Send me a message for script development.
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 a publication is governed by House Rules. You can favorite it to use it on a chart.

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?