OPEN-SOURCE SCRIPT

Multi Timeframe Moving Average [xdecow]

By xdecow
Updated
This indicator plots a moving average of 4 different timeframes.
The types of averages available are: SMA, EMA, DEMA, VWMA, RMA, WMA.
Release Notes
+increased the number of moving averages to 8
+separate length and type configuration for each MA
+labels with type, length and resolution (configurable)
Release Notes
-Removed 'Current' timeframe from labels
+Converts the length of another resolution to the current resolution (smoothing)
Release Notes
MTF mode changed
Release Notes

  1. Update to PineScript v5
  2. Added VWAP, MVWAP, TEMA and LSMA types
  3. Added 2 more MA, now 10 in total
  4. Added the option to change the source
  5. Option to show MA only from higher timeframes
  6. Fix: hide labels whose MA has a null value
  7. Option to change the font size of the label
  8. Option to show the MA number on the label
  9. Added tooltips to the labels with MA information
  10. aRGB leds included
Release Notes
- Added length to MVWAP
Release Notes
Fixed MTF MA dotted after some PineScript update.
Release Notes
They reverted the changes to pinescript that caused the bug.
So I reverted it back to how it was before and added the option to choose the "Smoothed MTF mode".
Double Exponential Moving Average (DEMA)Exponential Moving Average (EMA)Least Squares Moving Average (LSMA)Moving Averagesmulti-timeframemvwaprma

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