下载MetaTrader 5

我去!MQL4发现一个惊天疑问,求赐教!(Oh my god!,A Importantly BUG had been found in MQL4, Maybe you can help me!)

要添加评论,请登录注册
Bangning He
117
Bangning He  


 Print("止损(stoploss):", OrderStopLoss(), " 止盈(takeprofit):", OrderTakeProfit());
 
 int err = OrderModify(ticket_id, 0, NormalizeDouble(open_price - stop_loss*Point, Digits), NormalizeDouble(open_price + take_profit*Point, Digits), 0);
 if(!err){
  Print("OrderModify return a error -- > ", ErrorDescription(GetLastError()));
  return -1;
 }

 Print("止损(stoploss):", OrderStopLoss(), " 止盈(takeprofit):", OrderTakeProfit());

 OrderModify 修改成功(在[交易]下的订单一栏中显示是修改成功)后,订单的止损止盈(由OrderTakeProfit/OrderStopLoss返回的)竟然...竟然...没变,还是开仓时的旧数据!
 MQL4 简直在惨无人道的玩儿我啊!
 (0.0) 这到底是怎么回事!求指教~~~
 
 These functions(OrderStopLoss or OrderTakeProfit) returned a value that was not changed When the takeprofit and stoploss were changed in OrderModify.
 But all are right!No errors were returned!
 Why......
 Thank You!
Bangning He
117
Bangning He  
我去,这里人气这么清淡~~~
lou jiyang
92
lou jiyang  
那你要看ea日志有没有返回错误,如果你的止盈止损设置的太小是改不了的
要添加评论,请登录注册