For example, the following is code for BullishEngulfing pattern:
if (ChartBars != null)
{
BarBrushes[1] = downColor;
BarBrush = upColor;
CandleOutlineBrushes[0] = downColor;
}
where as for BearishEngulfing pattern the following is used:
BarBrushes[1] = upColor;
BarBrush = downColor;
The BarBrush(s) for some of the patterns with incomplete code will not plot. Even when corrected, if two instances of the indicator are plotted for two different patterns (i.e. Bullish and Bearish Engulfings) the BarBrush for only one of the patterns will plotted.
To confirm, plot two instances of the indicator for different patterns and see that only will produce bar brush.
Comment