OPEN-SOURCE SCRIPT

MultiType Shifting Predictive Moving Averages (MA) Crossover

Updated
Just 2 Moving Averages with adjustable settings and shifting capability, plus signals and predicting continuations.
At the time of publish these different types of MAs are supported:

- SMA (Simple)
- EMA (Exponential)
- DEMA (Double Exponential)
- TEMA (Triple Exponential)
- RMA (Adjusted Exponential)
- WMA (Weighted)
- VWMA (Volume Weighted)
- SWMA (Symmetrically Weighted)
- HMA (Hull)

I'm looking forward to any idea about filtering the signals. Thanks.
Release Notes
Added support for 2 other types of MA:
- LSMA (Least Squares)
- TMA (Triangular)
Release Notes
- Fixed bugs
- Now shifting will be applied in crosses
Release Notes
Screenshot corrected!
Release Notes
Fixed some small bugs!
Release Notes
Major Update!
- Added support for 2 new types of MA:
12. MAEMA which is my "Momentum Adjusted EMA" indicator
13. VMA which is a customized Variable Index Dynamic Average (Original VIDYA is made by Tushar Chande)
- Added MA coloring and filling based on the trend
- Added the ability to change MAs thickness
- Made negative shifting possible due to many users request
- Fixed a bug related to prediction tails which would happen in case of setting MA lengths less than 4
Release Notes
- Made signals to shift with the fast MA (per a user request)
Note that in case of unequal shifts of the fast MA and the slow MA, the signals may not be accurate.
Release Notes
- Added alert conditions as many users requested
The next step for the users is to set up their alerts manually (tradingview.com/support/solutions/43000595315-how-to-set-up-alerts)
Release Notes
- Made some tweaks to the options
- Added an option to show range bands around MAs based on ATR
Release Notes
- Organized indicator settings
- Added an option to generate bands using standard deviation instead of ATR
Release Notes
ATR and Standard Deviation multipliers now accept float numbers in the settings.
Release Notes
Made some setting inputs more organized.
Average True Range (ATR)crosscrossoverMoving AveragespredictiveshiftStandard Deviation

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