how to read and interpret data from volume indicator.
- www.mql5.com
That's
how to read and interpret data from volume indicator.
iVolumes
The function returns the handle of the Volumes indicator. It has an only one buffer.
int iVolumes(
|
Parameters
symbol
[in] The symbol name of the security, the data of which should be used to calculate the indicator. The NULL value means the current symbol.
period
[in] The value of the period can be one of the ENUM_TIMEFRAMES values, 0 means the current timeframe.
applied_volume
[in] The volume used. Can be any of the ENUM_APPLIED_VOLUME values.
Return Value
Returns the handle of a specified technical indicator, in case of failure returns INVALID_HANDLE. The computer memory can be freed from an indicator that is no more utilized, using the IndicatorRelease() function, to which the indicator handle is passed.
how to read and interpret data from volume indicator.
Example:
long currentbar_volume = iVolume(NULL,0,0); long previousbar_volume = iVolume(NULL,0,1);
Please, could anyone help me?
I'm trying to use the code below, but always return 0
int vol_filter() { int volumes = iVolumes(_Symbol,PERIOD_M30,VOLUME_REAL); double vol_buffer[]; int result; result = CopyBuffer( volumes ,0,0,1, vol_buffer ); if (result == -1) return (0); else result = vol_buffer[0]; return (result); }
Please, could anyone help me?
I'm trying to use the code below, but always return 0
Please stop double or triple posting.
Ok, but could you help me? I don't know what to do anymore.
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use