您需要 登录 才可以下载或查看,没有帐号?注册
buy(0.01,20,500, buy ,0);
sell(0.01,20,500, sell ,0);
return(0);
}
int BUY(int sun,int ying,string comment,int magic)
{
int com=0;
int ticket=0;
for(int i=0;i OrdersTotal();i++)
{
if(OrderSelect(i, SELECT_BY_POS, MODE_TRADES)=true}
{
if(ordercomment() ==comment)
{
com=1;
}
}
}
//if(com=0)
{
ticket=OrderSend(Symbol(),OP_BUY,Lots,Ask,30,Ask-sun*Point,Ask+ying*Point,comment,magic,0,Green) 0,Red);
}
return(0);
} 这里出错误了
int SELL(double,int sun,int ying,string comment,int magic)
{
int com=0;
int ticket=0;
for(int i=0;i OrdersTotal();i++)
{
if(OrderSelect(i, SELECT_BY_POS, MODE_TRADES)=true}
{
if(ordercomment() ==comment)
{
com=1;
}
}
}
if(com=0)
{
ticket=OrderSend(Symbol(),OP_SELL,Lots,Ask,30,Bid+sun*Point,Bid-ying*Point,comment,magic,0,Green) 0,Red);
}
return(ticket);
}
外汇交易有很大的风险性,本站所有资源均来自网络,请选择使用,如若出现亏损,本站不承担任何责任!