下载MetaTrader 5
要添加评论,请登录注册
使用口袋粘贴您的内容。非常方便!
Xiaohuan Zhang
17
Xiaohuan Zhang 2008.09.11 15:42 
你的智能交易发现错误:
2008.09.11 13:09 loading
autokdjchampion0910 on EURUSD:1440
13:09:46 2008.01.02 11:56  autokdjchampion0910 EURUSD,Daily: OrderModify error 1
13:09:46 2008.01.02 11:56  autokdjchampion0910 EURUSD,Daily: OrderModify error 1
13:09:46 2008.01.02 11:58  autokdjchampion0910 EURUSD,Daily: OrderModify error 1
13:09:46 2008.01.02 11:58  autokdjchampion0910 EURUSD,Daily: OrderModify error 1
13:09:46 2008.01.02 11:58  autokdjchampion0910 EURUSD,Daily: OrderModify error 1
13:09:46 2008.01.02 11:59  autokdjchampion0910 EURUSD,Daily: OrderModify error 1
13:09:46 2008.01.02 11:59  autokdjchampion0910 EURUSD,Daily: OrderModify error 1
13:09:46 2008.01.02 11:59  autokdjchampion0910 EURUSD,Daily: OrderModify error 1
13:09:46 2008.01.02 11:59  autokdjchampion0910 EURUSD,Daily: OrderModify error 1
13:09:46 2008.01.02 11:59  autokdjchampion0910 EURUSD,Daily: OrderModify error 1
13:09:46 2008.01.02 12:00  autokdjchampion0910 EURUSD,Daily: OrderModify error 1
13:09:46 2008.01.02 12:00  autokdjchampion0910 EURUSD,Daily: OrderModify error 1
13:09:46 2008.01.02 12:02  autokdjchampion0910 EURUSD,Daily: OrderModify error 1
13:09:46 2008.01.02 12:06  autokdjchampion0910 EURUSD,Daily: OrderModify error 1
13:09:46 2008.01.02 12:07  autokdjchampion0910 EURUSD,Daily: OrderModify error 1
13:09:46 2008.01.02 12:08  autokdjchampion0910 EURUSD,Daily: OrderModify error 1
13:09:46 2008.01.02 12:10  autokdjchampion0910 EURUSD,Daily: OrderModify error 1
13:09:46 2008.01.02 12:10  autokdjchampion0910 EURUSD,Daily: OrderModify error 1
13:09:46 2008.01.02 12:10  autokdjchampion0910 EURUSD,Daily: OrderModify error 1
13:09:46 2008.01.02 12:10  autokdjchampion0910 EURUSD,Daily: OrderModify error 1
443 kb of log files
0 min 22 seconds
Errors: 20
liuxiaodong
282
liuxiaodong 2008.09.12 04:19  
zxh222 >>
你的智能交易发现错误:

我的也是这样错误 不知道什么原因!

me too !

Rashid Umarov
管理员
6600
Rashid Umarov 2008.09.12 06:24  

You have to check difference between current value of StopLoss and new value. If difference more than 1 Point => you can use OrderModify(). If difference less 1 Point you will get error #1. This error denies your participation. Fix it.

See OrderModify() help:

对于先前的开仓或挂单进行特性修改。如果函数成功,返回的值为 TRUE。如果函数失败,返回的值为FALSE。 获得详细的错误信息,查看 GetLastError()函数。
注解: 开价格和有效时间的改变只对挂单而言。
如果未改变的值作为函数参量通过,将会生成错误 1 (ERR_NO_RESULT)。
在一些服务器中挂单的有效时间会被隐藏。这种情况下,当一个非零值在 有效参量被指定时,将生成错误 147 (ERR_TRADE_EXPIRATION_DENIED)。

For example:

if (MathAbs(OrderTakeProfit()-OldTakeProfitValue)>Point) OrderModify(OrderTicket(),OrderOpenPrice(),OrderStopLoss(),newTakeProfitValue,0,Yellow);
Xiaohuan Zhang
17
Xiaohuan Zhang 2008.09.12 17:53  
Rosh >>

You have to check difference between current value of StopLoss and new value. If difference more than 1 Point => you can use OrderModify(). If difference less 1 Point you will get error #1. This error denies your participation. Fix it.

See OrderModify() help:

For example:

liu2730
>>

我的也是这样错误 不知道什么原因!

me too !

非常感谢,问题已解决
xuanxiongwei
21
xuanxiongwei 2008.09.16 01:55  
OrderModify error 1
Rosh >>

You have to check difference between current value of StopLoss and new value. If difference more than 1 Point => you can use OrderModify(). If difference less 1 Point you will get error #1. This error denies your participation. Fix it.

See OrderModify() help:

For e

这种错误,是无效返回,没有错误 在快速测试得时候,才有,复盘演示和实盘挂 盘,都没有这种错误,要想实现追踪修改,在块速测试钟是避免不了这种错误的,无效返回没有错误.如果按

For example:

if (MathAbs(OrderTakeProfit()-OldTakeProfitValue)>Point) OrderModify(OrderTicket(),OrderOpenPrice(),OrderStopLoss(),newTakeProfitValue,0,Yellow);
修改,实现不了追踪
/
要添加评论,请登录注册