int start()
{
double MA=iMA(Symbol(),0,13,8,MODE_SMMA,PRICE_MEDIAN,0);
if(OrdersTotal()==0)
{
if(Ask>MA)
{
OrderSend(Symbol(),OP_BUY,0.1,Ask,3,Ask-10*Point,Ask+10*Point,"My order",0,0,Green);
}
if(Ask<MA)
{
OrderSend(Symbol(),OP_SELL,0.1,Bid,3,Ask+10*Point,Ask-10*Point,"My order",0,0,Green);
}
}
return(0);
}