// Downloaded From https://www.WiseStockTrader.com procedure exit_proc(Buy,BuyPrice,TrailLevel,StopLevel) { global BuyHelpArray; global BuyPriceHelpArray; global SellHelpArray; global SellPriceHelpArray; global LongStopTrailArray; global FlagStorageArray; BuyHelpArray=0; BuyPriceHelpArray=0; SellHelpArray=0; SellPriceHelpArray=0; LongStopTrailArray=Null; FlagStorageArray=0; delay=1; slip=TickSize*0; for(i=1;iO,colorGreen,IIf(C<=O,colorRed,colorLightGrey))); Plot(C,"Price",IIf(C>O,colorDarkGreen,IIf(C<=O,colorDarkRed,colorLightGrey)),64,0,0,0,0); PlotShapes(IIf(Buy,shapeUpArrow,shapeNone),colorDarkGreen,0,L,-15); PlotShapes(IIf(Buy,shapeSmallCircle,shapeNone),colorLightBlue,0,BuyPrice,0); PlotShapes(IIf(Sell,shapeDownArrow,shapeNone),colorRed,0,H,-15); PlotShapes(IIf(Sell,shapeSmallCircle,shapeNone),colorYellow,0,SellPrice,0); Plot(LongStopTrailArray,"",IIf(FlagStorageArray==1,colorRed,colorBlue),1);