iStdDevOnArray help

 

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

 
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.
 
Thanks guys sorted it.
Reason: