// Downloaded From https://www.WiseStockTrader.com SetChartOptions(0,chartShowArrows|chartShowDates); e1=EMA(C,3); e2=EMA(C,15); Plot(e1,"",colorWhite,styleThick); Plot(e2,"",colorYellow,styleThick ); Buy=Cross(e1,e2); Sell=Cross(e2,e1); Buysetup=Flip(Buy,Sell); Shortsetup=Flip(Sell,Buy); SHtrend=IIf(BarsSince(Buysetup)