當前位置:編程學習大全網 - 電腦編程 - MT4中,EA中怎麽平倉,不是用直接用Orderclose,而是用orderslect,orderticket,但是我的orderticket

MT4中,EA中怎麽平倉,不是用直接用Orderclose,而是用orderslect,orderticket,但是我的orderticket

Print(i=="訂單號碼",OrderTicket());

i==這裏不對吧,

可以這樣寫,Print("i=",i," 訂單號碼=",OrderTicket());

//平倉可以用這個

if(OrderType()==OP_BUY) OrderClose(OrderTicket(),OrderLots(),Bid,3,Blue);

if(OrderType()==OP_SELL) OrderClose(OrderTicket(),OrderLots(),Ask,3,Red);

  • 上一篇:Excel VBA調用Excel函數示例-sumif()條件求和
  • 下一篇:寧波新東方烹飪學校怎麽樣?值得去嗎?
  • copyright 2024編程學習大全網