BuyX= MA(20,C)>MA(50,C);
SellX=MA(20,C)<MA(50,C);
ShortX=MA(20,C)<MA(50,C);
CoverX=MA(20,C)>MA(50,C);
TimeFrameSet(in1Minute*15);
tbuyx= MA(20,C)>MA(50,C);
tsellx=MA(20,C)<MA(50,C);
tshortx=MA(20,C)<MA(50,C);
tcoverx=MA(20,C)>MA(50,C);
TimeFrameRestore();
ttbuyx=TimeFrameExpand(tbuyx,in1Minute*15);
ttsellx=TimeFrameExpand(tsellx,in1Minute*15);
ttshortx=TimeFrameExpand(tshortx,in1Minute*15);
ttcoverx=TimeFrameExpand(tcoverx,in1Minute*15);
Buy= BuyX AND ttbuyx;
Sell=SellX ;
Short= ShortX AND ttshortx;
Cover=CoverX;
Buy=ExRem(Buy,Sell);
Sell=ExRem(Sell,Buy);
Short=ExRem(Short,Cover);
Cover=ExRem(Cover,Short);
PlotShapes(IIf(Buy, shapeUpArrow, shapeNone),colorGreen, 0,L, Offset=-20);
PlotShapes(IIf(Sell, shapeHollowStar, shapeNone),colorPink, 0,H, Offset=-45);
PlotShapes(IIf(Short, shapeDownArrow, shapeNone),colorRed, 0,H, Offset=-45);
PlotShapes(IIf(Cover, shapeHollowStar, shapeNone),colorLime, 0,L, Offset=-45);
this is just what made for you see if works but if you really need full have to give full details so can understand the logic