nice code. thanks.
I don't recognize all abbreviations you used.
Could you spell out the three missing in the list below? Feel free to correct any one. thank you.
- SMA: simple MA
- EMA: exponential MA
- WMA: weighted Linear MA
- VWMA: volume weighted MA
- RMA=SMMA: smoothed MA
- DEMA: double exponential MA
- TEMA: triple exponential MA
- ZLEMA: ???
- HMA: ???
- ALMA ???
- LSMA: linear-regression smoothed MA
- SWMA: smoothed weighted MA
- SMMA=RMA: smoothed MA
- DONCHIAN: Donchian-based MA
- ZLEMA = Zero-Lag EMA
- HMA = Hull MA
- ALMA = Arnaud Legoux MA
and
- LSMA = Least Squares MA (not linear-regression smoothed)
Thanks Fernando.
In the code LSMA calls a function named pine_linreg... so I decided to name it linear-regression, but if we follow the acronym (LSMA), it makes more sense to name it as you did.
@Yasahr: why do you use two names (RMA and SMMA) to call the same function?
@Yasahr: why do you use two names (RMA and SMMA) to call the same function?
According to my research RMA and SMMA refer to the same entity from calculation point of view, but they are referred with different names in most pine codes that I used as reference.
In MQL you have MODE_SMMA and it is good to know that it is the same as "RMA".
It has been called by many names, but they are all the same thing ...
- Smoothed Moving Average (SMMA)
- Running/Rolling/Relative Moving Average (RMA)
- Modified Moving Average (MMA)
- Wilder's Moving Average — in reference to J. Welles Wilder, Jr.
Trading View's RMA is the same as MT's SMMA. Never any reason to use the SMMA(L) or RMA(L). They are equivalent to the EMA(2L-1).
The Smoothed Moving Average or SMMA - How to Avoid It - NinjaTrader Programming | futures.io (2019)
![MQL5 - Language of trade strategies built-in the MetaTrader 5 client terminal](https://c.mql5.com/i/registerlandings/logo-2.png)
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
Moving Averages-14 different types:
This is an indicator to calculate 14 types of moving averages based on close price.
Author: Yashar Seyyedin