{
double ema15M10=iMA(Symbol(),PERIOD_M15,10,0,MODE_EMA,PRICE_CLOSE,0);
double ema30M10=iMA(Symbol(),PERIOD_M15,10,0,MODE_EMA,PRICE_CLOSE,0);
double ema15M20=iMA(Symbol(),PERIOD_M15,20,0,MODE_EMA,PRICE_CLOSE,0);
double ema30M20=iMA(Symbol(),PERIOD_M15,20,0,MODE_EMA,PRICE_CLOSE,0);
if((ema15M10ema15M20 ema30M10 ema30M20))//buy
{
if(buy(0.01,15,0,Symbol()+ buy ,0) 0)
{
buytisun=15;
}
}
for(int i=0;i=buytisun)
{
double buysl=OrderStopLoss();
if(OrderModify(OrderTicket(),OrderOpenPrice(),buysl+15*Point,0,0)==true)
{
buytisun=buytisun+15;
}
}
}
}
if(OrderComment()==Symbol()+ sell )
{
if(((OrderOpenPrice()-Ask)/Point) =Selltisun)
{
double Sellsl=OrderStopLoss();
if(OrderModify(OrderTicket(),OrderOpenPrice(),Sellsl-15*Point,0,0)==true)
{
Selltisun=Selltisun+15;
}
}
}
}
return(0);
}
int buy(double Lots,int sun,int ying,string comment, int magic)
{
int com=0;
int ticket=0;
for(int i=0;i
外汇交易有很大的风险性,本站所有资源均来自网络,请选择使用,如若出现亏损,本站不承担任何责任!