I think you need to show some more code . . . . for example the declaration of eClose and where you set the value of ArraySz.
scarr:
I am new to writing experts and need some help, I am trying to get the standard deviation for closing prices...
Then what do need iStdDevOnArray for? Just use iStdDev.
I am new to writing experts and need some help, I am trying to get the standard deviation for closing prices...
Thanks guys sorted it.
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
Hi Guys,
I am new to writing experts and need some help, I am trying to get the standard deviation for closing prices from a EURUSD 1min chart but I do not understand what the MA parameters are used for or what to set them to!
Here is what I have so far:
Array of iClose values for EURUSD from a 1min chart and this is my iStdDevOnArray line of code "val = iStdDevOnArray(eClose,ArraySz,6,0,MODE_EMA,0 );"
To test the result I export the iclose values to CSV and use excel to get a stddev on this list of values. when I do this I get 0.022127438 but iStdDevOnArray returns 0!
What am I doing wrong?
Thanks Steve