# iRealVolume

 long  iRealVolume(    const string        symbol,          // 交易品种    ENUM_TIMEFRAMES     timeframe,       // 周期    int                 shift            // 转移    );

[in]  金融工具的交易品种名称。NULL表示当前交易品种。

timeframe

[in]  周期。它可以是ENUM_TIMEFRAMES其中一个枚举值。0表示当前图表周期。

shift

[in]  来自时间序列返回值的指数（相对于当前柱形图的指定柱形图数量的向后偏移）。

 input int shift=0; //+------------------------------------------------------------------+ //| 函数-事件处理程序"tick"                                            | //+------------------------------------------------------------------+ void OnTick()   {    datetime time  = iTime(Symbol(),Period(),shift);    double   open  = iOpen(Symbol(),Period(),shift);    double   high  = iHigh(Symbol(),Period(),shift);    double   low   = iLow(Symbol(),Period(),shift);    double   close = iClose(NULL,PERIOD_CURRENT,shift);    long     volume= iVolume(Symbol(),0,shift);    int      bars  = iBars(NULL,0);      Comment(Symbol(),",",EnumToString(Period()),"\n",            "Time: "  ,TimeToString(time,TIME_DATE|TIME_SECONDS),"\n",            "Open: "  ,DoubleToString(open,Digits()),"\n",            "High: "  ,DoubleToString(high,Digits()),"\n",            "Low: "   ,DoubleToString(low,Digits()),"\n",            "Close: " ,DoubleToString(close,Digits()),"\n",            "Volume: ",IntegerToString(volume),"\n",            "Bars: "  ,IntegerToString(bars),"\n"            );   }