下载MetaTrader 5

无法进行OrderSend? 代码如下。请高手帮忙。

要添加评论,请登录注册
clington
4
clington 2013.10.18 03:09 

int start()
{
//----
if(IsDemo())
Print("In Demo.");//YES
if(IsTradeAllowed())
Print("Trade allowed."); //YES
int ticket;
ticket=OrderSend(Symbol(),OP_BUY,0.1,Ask,3,Ask-25*Point,Ask+25*Point,"My order #2",16384,0,Green);
if(ticket<0)
{
Print("OrderSend failed with error #",GetLastError()); //error #133
return(0);
}

//----
return(0);
}
要添加评论,请登录注册