Hey So I have some code to indicate Outside bars but i wanted to add a little caveat to the code. If the high above the prior bar is greater than the low below the prior bar the boolean arrow indicator is green regardless if the bar is bull or bear. If the low below the prior bar is greater than the high above the prior bar, the boolean arrow is colored red regardless if the bar is bull or bear. if the high and low above and below the prior bar are the same, the arrow is colored grey. Any help would be fantastic... Thanks
plot Bullish = high >= high[1] and
low <= low[1] and
close > open;
Bullish.SetPaintingStrategy(PaintingStrategy.Boolean_Arrow_Up);
Bullish.SetDefaultColor(Color.Green);
Bullish.setLineWeight(3);
plot Bearish = high >= high[1] and
low <= low[1] and
close < open;
Bearish.SetPaintingStrategy(PaintingStrategy.Boolean_Arrow_Down);
Bearish.SetDefaultColor(Color.Red);
Bearish.setLineWeight(3);
Alert(Bullish, "1", Alert.BAR, Sound.Ding);
Alert(Bearish, "1", Alert.BAR, Sound.Ding);
plot Bullish = high >= high[1] and
low <= low[1] and
close > open;
Bullish.SetPaintingStrategy(PaintingStrategy.Boolean_Arrow_Up);
Bullish.SetDefaultColor(Color.Green);
Bullish.setLineWeight(3);
plot Bearish = high >= high[1] and
low <= low[1] and
close < open;
Bearish.SetPaintingStrategy(PaintingStrategy.Boolean_Arrow_Down);
Bearish.SetDefaultColor(Color.Red);
Bearish.setLineWeight(3);
Alert(Bullish, "1", Alert.BAR, Sound.Ding);
Alert(Bearish, "1", Alert.BAR, Sound.Ding);