yatrader2

Triple MA Forecast

yatrader2 Updated   
This script calculates 3 lengths of MAs (short, med, long, defaulted to Tone's preferred weekly lengths) using either the SMA, EMA or WMA and forecasts where the MAs will be in future periods (buy removing the oldest periods and adding future prices based on either current price "flat" or a 3 period liner regressions "linreg".

This was made for Tone Vays, because he is constantly trying to measure 30 bars back to see how the MA will change.
Release Notes:
Per Tone:
1. Make the lines one level Thicker
2. Make the colors: Short - Orange, Mid - Purple, Long - Blue
Release Notes:
  • Bug fix on forecasts
  • Removed alternate MAs types until I can support properly
  • allowed options for live candles (or not)
  • Made LR period user setable.
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?