下载MetaTrader 5
要添加评论,请登录注册
让您的交易商打开官方通道。数以千计的交易者们将会阅读新闻!
Bangning He
114
Bangning He 2016.06.11 09:39 


 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
114
Bangning He 2016.06.11 10:02  
我去,这里人气这么清淡~~~
lou jiyang
92
lou jiyang 2016.09.08 02:43  
那你要看ea日志有没有返回错误,如果你的止盈止损设置的太小是改不了的
/
要添加评论,请登录注册