OPEN-SOURCE SCRIPT

Triple MA Forecast

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.
Moving Averagestone_vaystonevays

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