// Downloaded From https://www.WiseStockTrader.com
EMA5 =EMA(C,5);
Plot(EMA5,"EMA5",colorBlue,styleLine);
Plot(C,"C",colorRed,styleCandle);
Buy = Cross(C,EMA5) AND C>EMA5 AND ADX()>20 AND RSI()>50;
//Sell = Cross(EMA5,C) AND C<Ref(C,-1) ;
//Buy =ExRem(Buy,Sell); Sell =ExRem(Sell,Buy);
shape = Buy * shapeUpArrow + Sell * shapeDownArrow;
PlotShapes( shape, IIf( Buy, colorGreen, colorRed ), 0, IIf( Buy, Low, High ) );
Filter=Buy OR Sell ;
AddColumn(Close,"close",1.2);
AddColumn(Buy,"BUy",1.2);
AddColumn(Sell,"sell",1.2);
AddColumn(Volume,"volume",1.0);