Watch how to download trading robots for free
Find us on Facebook!
Join our fan page
Interesting script?
So post a link to it -
let others appraise it
You liked the script? Try it in the MetaTrader 5 terminal
Indicators

Root Mean Square - indicator for MetaTrader 5

Views:
894
Rating:
(4)
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 Easy to use Hedging Class for MQL5 by Peter Mueller

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 Screenshots with keyboard key press

Capture widescreen screenshots by pressing the 's' hotkey on the keyboard

MovingAverages.mqh Part II by Wiliam210 MovingAverages.mqh Part II by Wiliam210

How to use Metaquotes native smoothing functions in MovingAverages.mqh SimpleMAOnBuffer(), ExponentialMAOnBuffer(), SmoothedMAOnBuffer(), and 2 LinearWeightedMAOnBuffer()

Tick RSI Adaptive Tick RSI Adaptive

RSI adaptive indicator based on tick calculations