mt5 open close数组起点设置

来源:互联网 发布:matalab y引入数据 编辑:程序博客网 时间:2024/05/01 18:40

int OnCalculate(const int rates_total,    // number of bars in history at the current tick
                const int prev_calculated,// amount of history in bars at the previous tick
                const datetime &time[],
                const double &open[],
                const double& high[],     // price array of maximums of price for the calculation of indicator
                const double& low[],      // price array of price lows for the indicator calculation
                const double &close[],
                const long &tick_volume[],
                const long &volume[],
                const int &spread[])
  {
   ArraySetAsSeries(open,true);

}

初始是open[0]最左边

ArraySetAsSeries(open,true);后open[0]为最右边

0 0