OPEN-SOURCE SCRIPT

SUPER MULTI MOVING AVERAGE [Gabbo]

Updated
this indicator serves to differentiate the classic Moving Average with a different style

snapshot
There are 3 Moving Average editable with the Source, length, timeframe and styles. the styles are:
  • SMA = Simple moving average
  • EMA = Exponential moving average
  • WMA = Weighted moving average
  • RMA = Rolling moving average
  • HMA = Hull moving average
  • JMA = Jurik moving average
  • DEMA = Double exponential moving average
  • TEMA = Triple exponential moving average
  • LSMA = Least squares moving average
  • VWMA = Volume-weighted moving average
  • SMMA = Moving average Smoothed
  • KAMA = Kaufman Moving Average Adaptive
  • ALMA = Arnaud Legoux moving average
  • FRAMA = Fractal Adaptive moving average
  • VIDYA = Variable Index Dynamic Average


There are also Inputs that are valid only for some styles such as:
  • JMA = "Phase" and "Power"
  • ALMA = "Offset" and "Sigma"
  • FRAMA = "Lower shift ( FC )" and "Upper shift ( SC )"
  • VIDYA = "Fixed CMO Lenght (9)?" and "Calculation Method: CMO/StDev?"



snapshot
The "Ema Fill" input is used to decide the type of Moving Average long or short, the choices are:
  • Fast/Slow = Long = maFast >= maSlow --- Short maSlow > maFast
  • Fast = Long = maFast >= close ------ Short maFast < close
  • Slow = Long = maSlow >= close ------ Short maSlow < close
  • NA = No fill


If they also select the input "USE Ema Conf ???" the calculations for Moving Average Long and Short become like this:
  • Fast/Slow = Long = maFast >= maSlow and maConf >= maFast --- Short maSlow > maFast and maSlow > maFast
  • Fast = Long = maFast >= close and maConf >= maFast ------ Short maFast < close and maFast > maConf
  • Slow = Long = maSlow >= close and maConf >= maSlow ------ Short maSlow < close and maSlow > maConf
  • NA = No fill



snapshot
selecting the input "TABLE ???" a table with 8 boxes will appear and each will be of a different color, based on the Moving Average Long and Short of the 8 different Timeframes.
the "Neutral Position" input is used to calculate the Moving Average Neutral, Long and Short
  • Long = maFast- maSlow >= upBar and maFast >= maFamaSlow
  • Short = maFast- maSlow <= -lowBar and maSlow > maFast
  • Neutral = maFast >= maSlow and maFast- maSlow < upBar OR maSlow > maFast and maFast- maSlow > -lowBar
Release Notes
correction
Double Exponential Moving Average (DEMA)Exponential Moving Average (EMA)HMALeast Squares Moving Average (LSMA)Moving Averagesrmasma

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?


Advanced trading tools that simplify complex analysis into actionable insights. Save time and trade smarter with precision indicators.
Also on:

Disclaimer