// Downloaded From https://www.WiseStockTrader.com _SECTION_BEGIN("bharathy target 1"); SetChartOptions(0,chartShowArrows|chartShowDates); e1=EMA(C,9); e2=EMA(C,16); 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)Ref(res,-1),1,IIf(C