MT5ctp自动交易时总是提示4009错误,是什么原因?如何改进?
本帖最后由 tygk 于 2021-11-6 15:50 编辑2021.11.04 10:00:01.186 (p888,M15) CTrade::OrderSend: exchange sell 1.00 position #1352807 MA201
2021.11.04 10:00:01.186 (p888,M15) 多止损失败!4009
2021.11.04 10:00:01.216 (jd888,M15) CTrade::OrderSend: exchange sell 1.00 position #1352807 MA201
2021.11.04 10:00:01.216 (jd888,M15) 多止损失败!4009
2021.11.04 10:00:01.292 (lu888,M15) CTrade::OrderSend: exchange sell 1.00 position #1352807 MA201
2021.11.04 10:00:01.292 (lu888,M15) 多止损失败!4009
2021.11.04 10:10:01.077 (lh888,M15) 开多失败!4009
2021.11.05 10:15:00.411 (eb888,M15) CTrade::OrderSend: exchange sell 1.00 position #1007368 MA201
2021.11.05 10:15:00.411 (eb888,M15) 平多失败!4009
Mt5ctp自动交易时总是不停地提示:
4009 错误 和 CTrade::OrderSend: exchange sell 1.00 position #1352807 MA201
这是什么原因?应如何改进?
可以考虑,让程序只在交易时间段运行。 本帖最后由 tygk 于 2021-11-7 18:10 编辑
唐老师 发表于 2021-11-7 17:59
可以考虑,让程序只在交易时间段运行。
2021.11.04 10:00:01.186 (p888,M15) CTrade::OrderSend: exchange sell 1.00 position #1352807 MA201
2021.11.04 10:00:01.186 (p888,M15) 多止损失败!4009
2021.11.04 10:00:01.216 (jd888,M15) CTrade::OrderSend: exchange sell 1.00 position #1352807 MA201
2021.11.04 10:00:01.216 (jd888,M15) 多止损失败!4009
2021.11.04 10:00:01.292 (lu888,M15) CTrade::OrderSend: exchange sell 1.00 position #1352807 MA201
2021.11.04 10:00:01.292 (lu888,M15) 多止损失败!4009
2021.11.04 10:10:01.077 (lh888,M15) 开多失败!4009
这些单子都是在交易时段内提交的,都提示出错。
特别是这种 2021.11.04 10:00:01.292 (lu888,M15) CTrade::OrderSend: exchange sell 1.00 position #1352807 MA201 ,明明是针对lu888的sell,出错提示里却说是MA201,不知道是怎么回事?
页:
[1]