Join our fan page
- Views:
- 894
- Rating:
- Published:
- 2024.06.20 17:13
-
Need a robot or indicator based on this code? Order it on Freelance Go to Freelance
Was checking if this one exists as a standalone function/indicator and since I did not find it, here it is
The RMS (Root Mean Square) value is calculated by squaring the values, taking the average of the squared values, and then taking the square root of the average. This calculation is applicable to a set of values, especially in the context of waveforms in electrical engineering.
The RMS is also known as the quadratic mean (denoted 𝑀 2 )
What you need to know if you want to use it :
I have seen implementations of Quadratic Mean as a moving average, but it seems that people forgot to compare it to some other averages
RMS or Quadratic Mean is equal to SMA (Simple Moving Average) when applied to set of values that is always equal to or greater than 0
As soon as there is even a single negative value the result will be wrong (that is simply a consequence of the formula used for calculation) hence it can not be used as normal moving averages that do not have the described restricion
![Easy to use Hedging Class for MQL5 by Peter Mueller](https://c.mql5.com/i/code/library.png)
This EA is a demonstration of how you can implement your own Hedging strategy with the help of the include file.
![Screenshots with keyboard key press](https://c.mql5.com/i/code/expert.png)
Capture widescreen screenshots by pressing the 's' hotkey on the keyboard
![MovingAverages.mqh Part II by Wiliam210](https://c.mql5.com/i/code/indicator.png)
How to use Metaquotes native smoothing functions in MovingAverages.mqh SimpleMAOnBuffer(), ExponentialMAOnBuffer(), SmoothedMAOnBuffer(), and 2 LinearWeightedMAOnBuffer()
![Tick RSI Adaptive](https://c.mql5.com/i/code/indicator.png)
RSI adaptive indicator based on tick calculations