下载MetaTrader 5
要添加评论,请登录注册
如何使用MQL5.community的信息编辑器!在文章中找出答案!
fenzhengrou
7
fenzhengrou 2007.05.26 13:38 
如下代码:
ticket = OrderSend(Symbol(), OP_BUYLIMIT, lotsize, LowPrice, 2,
LowPrice-lostpoint,
LowPrice+profittarget,
"", MagicNumber, 0, MediumBlue);
if(ticket<0)
Print("time=", TimeToStr(Time[0]), ", ticket=", ticket, ", BuyLimitPrice=",LowPrice,
", Ask=", Ask, ", err=", GetLastError(),
", stop=", LowPrice-lostpoint,
", profit=", LowPrice+profittarget,
", lotsize=", lotsize);

结果总是无法交易:
2007.05.26 19:24:10 2007.05.25 19:01 hyzh-Move Capture high ATR-20070312good USDNOK, M1: time=2007.05.25 19:01, ticket=-1, BuyLimitPrice=6. 0157, Ask=6.0266, err=130, stop=6.0112, profit=6.0193, lotsize=0.3
/
要添加评论,请登录注册