can someone help. i keep getting 8 function definition unexpected errors and 1 semicolon expected error on the first input int line
void OnTick()
//declare the moving averages used for moving average X strategy - ems EA nudy 0.1
//bluEma is exponential moving with value of 8 bars, redSma is simple moving with value of 21 bars
input int bluEma = 8;
input int redSma = 21;
{ //current bar blue ema value
double blumovingC = iMA(_Symbol, 240, bluEma, 0, MODE_EMA, PRICE_CLOSE, 0;
//previous bar blue ema value
double blumovingP = iMA(_Symbol, 240, bluEma, 0, MODE_EMA, PRICE_CLOSE, 1;
//current bar red sma value
double redmovingC = iMA(_Symbol, 240, redSma, 0, MODE_SMA, PRICE_CLOSE, 0;
//previous bar red sma value
double redmovingP = iMA(_Symbol, 240, redSma, 0, MODE_SMA, PRICE_CLOSE, 1;}
//if blu ema was below red sma and now blu ema is above red sma, this is a buy signal
{ if (blumovingP < redmovingP && blumovingC > redmovingC)}
{signal;;= "get long";}
//if blu ema was above red sma and now blu ema is below red sma, this is a sell signal
{ if (blumovingP > redmovingP && blumovingC < redmovingC)}
{signal="get short";}
{ if (signal=="get long")
OrderSend (_Symbol,OP_BUY,0.30,Ask,10,Ask-30*_Digits,Ask+75*_Digits,NULL,0,0,clrGreen);}
{ if (signal=="get short")
OrderSend (_Symbol,OP_SELL,0.30,Bid,10,Bid+30*_Digits,Bid-75*_Digits,NULL,0,0,clrRed);}
void OnTick()
//declare the moving averages used for moving average X strategy - ems EA nudy 0.1
//bluEma is exponential moving with value of 8 bars, redSma is simple moving with value of 21 bars
input int bluEma = 8;
input int redSma = 21;
{ //current bar blue ema value
double blumovingC = iMA(_Symbol, 240, bluEma, 0, MODE_EMA, PRICE_CLOSE, 0;
//previous bar blue ema value
double blumovingP = iMA(_Symbol, 240, bluEma, 0, MODE_EMA, PRICE_CLOSE, 1;
//current bar red sma value
double redmovingC = iMA(_Symbol, 240, redSma, 0, MODE_SMA, PRICE_CLOSE, 0;
//previous bar red sma value
double redmovingP = iMA(_Symbol, 240, redSma, 0, MODE_SMA, PRICE_CLOSE, 1;}
//if blu ema was below red sma and now blu ema is above red sma, this is a buy signal
{ if (blumovingP < redmovingP && blumovingC > redmovingC)}
{signal;;= "get long";}
//if blu ema was above red sma and now blu ema is below red sma, this is a sell signal
{ if (blumovingP > redmovingP && blumovingC < redmovingC)}
{signal="get short";}
{ if (signal=="get long")
OrderSend (_Symbol,OP_BUY,0.30,Ask,10,Ask-30*_Digits,Ask+75*_Digits,NULL,0,0,clrGreen);}
{ if (signal=="get short")
OrderSend (_Symbol,OP_SELL,0.30,Bid,10,Bid+30*_Digits,Bid-75*_Digits,NULL,0,0,clrRed);}