下载MetaTrader 5
要添加评论,请登录注册
了解如何提高您的等级
zengyd
5
zengyd 2008.08.28 04:44 

请教一下,代码如下:


int start()
{
double Lots = 0.1;
int stopLoss = 20;
int takeProfit = 30;

int ticketBuy = OrderSend(Symbol(), OP_BUY, Lots, Ask, 3, Ask-stopLoss*Point, Ask+takeProfit*Point,NULL,0,0,Green);

if(ticketBuy>0)
{
if(OrderSelect(ticketBuy,SELECT_BY_TICKET,MODE_TRADES)) Alert("BUY order opened : ",OrderOpenPrice());
}
else Alert("Error opening BUY order : ",GetLastError());

return(0);
}


此段代码可以成功执行,但是ordersend函数一直都出现4055错误,我换了一台机尝试也是出现同样的结果,

不知各位有没有碰到过类似情况,如何解决?谢谢!

Stanislav
101
Stanislav 2008.08.30 13:15  
zectorzyd >>

请教一下,代码如下:


int start()
{
double Lots = 0.1;
int stopLoss = 20;
int takeProfit = 30;

int ticketBuy = OrderSend(Symbol(), OP_BUY, Lots, Ask, 3, Ask-stopLoss*Point, Ask+takeProfit*Point,NULL,0,0,Green);

if(ticketBuy>0)
{
if(OrderSelect(ticketBuy,SELECT_BY_TICKET,MODE_TRADES)) Alert("BUY order opened : ",OrderOpenPrice());
}
else Alert("Error opening BUY order : ",GetLastError());

return(0);
}


此段代码可以成功执行,但是ordersend函数一直都出现4055错误,我换了一台机尝试也是出现同样的结果,

不知各位有没有碰到过类似情况,如何解决?谢谢!

您召集某處習慣顯示?

/
要添加评论,请登录注册