I am writing a code for generating buy sell & short cover signals.
Stuck on this stop loss.
my stop loss are two either 100 points or super trend whichever is lower(sell SL)/higher (buy SL). as soon as buy short signal are generated, on the next candle sell and cover are generated.
Sell = (Close < SuperTrend) OR ApplyStop(stopTypeLoss,stopModePoint,100,1,False,0,1,-1);
Cover = (Close > supertrend) OR ApplyStop(stopTypeLoss,stopModePoint,100,1,False,0,1,-1);
PlotShapes(IIf(Sell,shapeCircle,shapeNone),colorRed,0,L,offset=60);
PlotShapes(IIf(Cover,shapeHollowCircle,shapeNone),colorGreen,0,L,offset=-60);