首页 > 解决方案 > 如何清除Error138代码?我想使用前一根蜡烛的收盘价开单

问题描述

if(OrdersTotal() < 1)
   {
      if (Close[1] < MA && signal == 1)
         {
            int OrderID_Buy = OrderSend(_Symbol, OP_BUY, Lot_Size, Close[1], Slipage, (Ask-Stop_Loss*Point),
            (Ask+Take_Profit*Point), Magic_Number);
         }
         else if (Close[1] > MA && signal == 1)
         {
            int OrderID_Sell = OrderSend(_Symbol, OP_SELL, Lot_Size, Close[1], Slipage, (Bid+Take_Profit*Point),
            (Bid-Take_Profit*Point), Magic_Number);
         }
   }

/ OrderSend 函数上使用的 Close[1] 是否有替代方法?/

标签: mql4mql5mt4

解决方案


推荐阅读