Download MetaTrader 5

Wrong Error Message in MQL5 LIB TimeSeries.mqh

To add comments, please log in or register
Unable to find the right application? Order it!
zifu wang
636
zifu wang 2013.12.14 07:01 
//+------------------------------------------------------------------+
//| Method to access data                                            |
//+------------------------------------------------------------------+
long CiRealVolume::GetData(const int index) const
  {
   CRealVolumeBuffer *buff=At(0);
//--- check
   if(buff==NULL)
     {
      Print("CiSpread::GetData: invalid buffer");
      return(0);
     }
//---
   return(buff.At(index));
  }
//+------------------------------------------------------------------+
//| Method to access data                                            |
//+------------------------------------------------------------------+
long CiTickVolume::GetData(const int index) const
  {
   CTickVolumeBuffer *buff=At(0);
//--- check
   if(buff==NULL)
     {
      Print("CiSpread::GetData: invalid buffer");
      return(0);
     }
//---
   return(buff.At(index));
  }
//+------------------------------------------------------------------+
//| Method to access data                                            |
//+------------------------------------------------------------------+
datetime CiTime::GetData(const int index) const
  {
   CTimeBuffer *buff=At(0);
//--- check
   if(buff==NULL)
     {
      Print("CiSpread::GetData: invalid buffer");
      return(0);
     }
//---
   return((datetime)buff.At(index));
  }
Jian Chen
Moderator
3618
Jian Chen 2013.12.14 08:01  
Agree. You may submit a case to Service Desk.
Alain Verleyen
Moderator
30721
Alain Verleyen 2013.12.14 11:13  
Of course.
To add comments, please log in or register