下载MetaTrader 5
要添加评论,请登录注册
代码库会帮您掌握理论技巧。快来学习吧!
clington
5
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);
}
/
要添加评论,请登录注册