OPEN-SOURCE SCRIPT
Updated

SUPER MULTI MOVING AVERAGE [Gabbo]

5 468
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
Release Notes
📈 Moving Average Indicator Update - Version 2

🔹 New Features and Improvements:

1️⃣ Enhanced MA Selection for Table Lines:
Previously, the indicator did not allow users to choose a different Moving Average type for the table lines. Now, you can select the MA type for the table.

2️⃣ New Table Text Customization Inputs:
Added inputs to choose the table text color and size for a more personalized display.

Moving Average #2 table


3️⃣ Improved Input Visibility and Organization:
We’ve reorganized the inputs so that the most commonly used options are now placed at the beginning for quicker and more convenient configuration.

4️⃣ Bug Fixes and Code Improvements:
Minor bugs have been fixed, and the code has been optimized for improved stability and performance. The code is now cleaner and fully functional in version 6.

5️⃣ Cometreon Public Library Integration:
To lighten the code and improve modularity, we’ve integrated the Cometreon public library. This makes the code more efficient and reduces the need to duplicate common functions.


With this update, the Moving Average indicator becomes even more versatile and user-friendly, offering a refined table interface and enhanced customization options!

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.