// Downloaded From https://www.WiseStockTrader.com Exit1 = IIf(ShortLongSwitch == 1, LongExit, ShortExit); Exit0 = shortExit; Plot(Exit1,"Chandelier Green",colorBrightGreen,styleLine); Plot(Exit0,"Chandelier Red",colorRed,styleLine); G0 = Close; G1 = Exit1; G2 = Exit0; Buy = Cross(G0,G1); // OR Cross(G0,G2); //Cover = Cross(G0,G1); // OR Cross(G0,G2); Sell = Cross(G2,G0); // OR Cross(G1,G0); //Short = Sell ; //Cross(G2,G0); // OR Cross(G1,G0); Short=Sell; Cover=Buy; Buy=ExRem(Buy,Sell); Sell=ExRem(Sell,Buy); Short=ExRem(Short,Cover); Cover=ExRem(Cover,Short); Equity(1); B1 = (Buy * Close); S1 = (Sell * Close); B2= B1>S1;