Any thoughts on how to assign all 3 conditions into one variable? The Plots below work fine:
PlotShapes(IIf(FirstShort AND (BarsSince(Cover) < BarsSince(Sell)) AND (BarsSince(Cover) < 15) AND (ValueWhen(FirstShort,O,2) > ValueWhen(FirstShort,Open)),shapeCircle,shapeNone),colorOrange,0,H, Offset=85);
PlotShapes(IIf(FirstBuy AND (BarsSince(Cover) > BarsSince(Sell)) AND (BarsSince(Sell) < 15) AND (ValueWhen(FirstBuy,O,2) < ValueWhen(FirstBuy,Open)),shapeCircle,shapeNone),colorYellow,0,L, Offset=-85);
But when I try and assign to variables CombinedS AND Combined the results are NOT the same as the plots above:
CombinedS = FirstShort AND (BarsSince(Cover) < BarsSince(Sell)) AND (BarsSince(Cover) < 15) AND (ValueWhen(FirstShort,O,2) > ValueWhen(FirstShort,Open));
Combined = FirstBuy AND (BarsSince(Cover) > BarsSince(Sell)) AND (BarsSince(Sell) < 15) AND (ValueWhen(FirstBuy,O,2) < ValueWhen(FirstBuy,Open));
PlotShapes(IIf(CombinedS,shapeCircle,shapeNone),colorOrange,0,H, Offset=85);
PlotShapes(IIf(Combined,shapeCircle,shapeNone),colorYellow,0,L, Offset=-85);