Francois Franceschini:
lookBack - 1
lookBack - 1
stdDev = sqrt(sumDev / (lookBack - 1)) * 100 * 16;
why minus 1?
Francois Franceschini: Could someone explain to me why I don't get the same result?
Because you divide by lookBack-1 instead of lookBack.
Because I consider I have a sample only and not the whole population, it makes more sense to me.
As my previous results had been made on excel using the sample formula, for coherence I will have to stick to my two loops.
Thanks for your replies!

You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
Good evening all,
I am making my first steps with mql4 and I wanted to get an annualized standard deviation on returns (as a percentage). My trial with isStdDevOnArray() gives me a result close to my expectation but not exactly as expected. Could someone explain to me why I don't get the same result?
Thanks in advance