how can I get the standard deviation of volume with the iStdDev()function ?

To add comments, please log in or register
tao zemin.
409
tao zemin.  
I am a beginner in Mql5 programming. Iwant to know how to get the standard deviation of volume with the iStdDev()function. thanks for your time and efforts.regards.
Stanislav Korotky
24577
Stanislav Korotky  
tao zemin.:
I am a beginner in Mql5 programming. Iwant to know how to get the standard deviation of volume with the iStdDev()function. thanks for your time and efforts.regards.

You can't do this with iStdDev - it's only for prices. You may search the code base for analogs for volumes. 

tao zemin.
409
tao zemin.  

Thank you for your reply.My present idea on this is:

1. use iVolumes()to obtain a handle H_VOL to volume indicator.

2. use H_VOL as the last parameter for the iStdDev().

I hope it works.

Fernando Carreiro
4421
Fernando Carreiro  
tao zemin.:

Thank you for your reply.My present idea on this is:

1. use iVolumes()to obtain a handle H_VOL to volume indicator.

2. use H_VOL as the last parameter for the iStdDev().

I hope it works.

Then do just that! Write your code and test it! Then if it still does not do exactly what you expect, then post here so that we can offer suggestions.
To add comments, please log in or register