OPEN-SOURCE SCRIPT
Updated Moving Average Standard Deviation | NickJoan

Moving Average Standard Deviation is a trend-following indicator built around a moving average and dynamic standard deviation bands. It identifies bullish and bearish conditions by comparing price against adaptive upper and lower bounds.
How it works
Visual output
Alerts
How it works
- A moving average is calculated using the selected MA type and length.
- Standard deviation is applied to the moving average to create adaptive upper and lower bounds.
- When price closes above the upper bound, the script switches to bullish state.
- When price closes below the lower bound, the script switches to bearish state.
- If neither condition is met, the current state remains unchanged.
Visual output
- The moving average is plotted directly on the chart.
- Upper and lower bounds define the current volatility range.
- Candle colors change according to the active bullish or bearish state.
Alerts
- Long Signal triggers when the state turns bullish.
- Short Signal triggers when the state turns bearish.
Release Notes
Updated indicator formatting to inherit the chart symbol’s native precision.Open-source script
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
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.
Open-source script
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
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.