Download MetaTrader 5

volume indicator

To add comments, please log in or register
Do you want to know about the MQL5.community development? Have a look at the Wall!
anurag bhargava
425
anurag bhargava 2016.06.28 08:57 
how to read and interpret data from volume indicator.
Marco vd Heijden
Moderator
4684
Marco vd Heijden 2016.06.28 09:22  
anuragbhargava:
how to read and interpret data from volume indicator.
https://www.mql5.com/en/docs/indicators/ivolumes
Documentation on MQL5: Technical Indicators / iVolumes
Documentation on MQL5: Technical Indicators / iVolumes
  • www.mql5.com
Technical Indicators / iVolumes - Reference on algorithmic/automated trading language for MetaTrader 5
anurag bhargava
425
anurag bhargava 2016.06.28 09:36  
Marco vd Heijden
Moderator
4684
Marco vd Heijden 2016.06.28 09:46  

That's

anuragbhargava:
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(
   string               symbol,             // symbol name
   ENUM_TIMEFRAMES      period,             // period
   ENUM_APPLIED_VOLUME  applied_volume      // volume type for calculation
   )

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.

Anton Nel
36972
Anton Nel 2016.07.09 06:26  
anuragbhargava:
how to read and interpret data from volume indicator.

Example:

long currentbar_volume = iVolume(NULL,0,0);
long previousbar_volume = iVolume(NULL,0,1);
To add comments, please log in or register