Welcome Forex EA downloads & MT4/MT5 auto-trading resources — EAs, Gold EAs, quant tools and real-world automation.
Sign In Sign Up

Variance - MetaTrader 4 Script | Forex Indicator Download - MT4/MT5 Resources - MetaTrader 5 Resources

author EAcpu | 2 reads | 0 comments |

Variance - indicator for MetaTrader 4

Variance - indicator for MetaTrader 4

Variance - indicator for MetaTrader 4

Welford's method of calculating variance (published here: Variance - Welford's method ) uses a single-pass approach to the calculation, but still uses a loop.

This method avoids a loop after setting the initial value, which makes it faster and suitable for use in situations where speed is a must.

PS: If compared with Welford's method, there will be differences. This is because Welford's method uses sample correction and this method does not - the difference is small, if you are used to using built-in indicators that use any kind of standard deviation (except std, bollinger bands, etc.) then compare it to this, but if you calculate a large range of values ​​(some values ​​are very different from the standard sample values) then use Welford's method

Variance - indicator for MetaTrader 4

Variance - indicator for MetaTrader 4


Attachment download

📎 variance_6fastp.mq4 (7.42 KB)

Source: MQL5 #25691

Verification code Refresh