OPEN-SOURCE SCRIPT
Moving Average Speed Can Spot Turns Before They Happen

Moving averages are perhaps the most common indicator in the world of technical analysis, highlighting trends over time by smoothing out values.
Because they show direction, moving averages inevitably rise or fall. These changes are often obvious in retrospect, but now they can be spotted as they happen with our MA Speed script.
This indicator calculates one of five kinds of moving averages (including exponential and volume-weighted). Users can set the length (50-day SMA by default). They can even pick whether it calculates based on open, high, low, close, etc. (Close is the default.)
MA Speed plots the simple 1-day percentage change similar to an oscillator at the bottom of the chart, color-coding for positive or negative values.
The chart above applies MA Speed to the
S&P 500. The result is pretty interesting because we can see how its 50-day SMA was falling at 0.67 percent in March, the fastest decline since December 2008. But this month it’s flattened quickly and is on pace to turn higher in the next session or two.
Because they show direction, moving averages inevitably rise or fall. These changes are often obvious in retrospect, but now they can be spotted as they happen with our MA Speed script.
This indicator calculates one of five kinds of moving averages (including exponential and volume-weighted). Users can set the length (50-day SMA by default). They can even pick whether it calculates based on open, high, low, close, etc. (Close is the default.)
MA Speed plots the simple 1-day percentage change similar to an oscillator at the bottom of the chart, color-coding for positive or negative values.
The chart above applies MA Speed to the
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.
For quick access on a chart, add this script to your favorites — learn more here.
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.
For quick access on a chart, add this script to your favorites — learn more here.
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.