MQL4 Reference Timeseries and Indicators Access iVolume
iVolumeReturns Tick Volume value for the bar of specified symbol with timeframe and shift.
Parameters symbol [in] Symbol name. NULL means the current symbol. timeframe [in] Timeframe. It can be any of ENUM_TIMEFRAMES enumeration values. 0 means the current chart timeframe. shift [in] Index of the value taken from the indicator buffer (shift relative to the current bar the given amount of periods ago). Returned value Tick volume value for the bar of specified symbol with timeframe and shift. If local history is empty (not loaded), function returns 0. To check errors, one has to call the GetLastError() function. Note For the current chart, the information about bars tick volumes is in the Volume[] predefined array. Example:
|