Could you please code 315 strategy?

1 Enter Long when 3 EMA goes above 15 EMA
2 Enter Short when 3 EMA goes below 15 EMA

/////////////////////////////////////////////////////////////
//**************Neotrade Analytics************************///
//************www.neotradeanalytics.com*******************///
////////////////////////////////////////////////////////////

_SECTION_BEGIN("ema3,15");
x = EMA(Close,3);
y = EMA(Close,15);

Buy = Cross(x,y);
Sell = Cross(y,x);

PlotShapes(IIf(Buy, shapeUpArrow, shapeNone),colorGreen, 0,L); 
PlotShapes(IIf(Sell, shapeDownArrow, shapeNone),colorRed, 0,H);
Plot(Close,"Close",colorGreen,styleCandle);

_SECTION_END();

Regards

Vivith,

www.neotradeanalytics.com

(Authorized vendor of NSE supporting realtime data feeds to Amibroker, Metastock and Ninajtrader)

As per above condition code in tradescript

​Buy Script:

CROSSOVER(EMA(CLOSE,3),EMA(CLOSE,15))

Sell Script:

CROSSOVER(EMA(CLOSE,15),EMA(CLOSE,3))