I am not sure about assigning values to bool series. I had the same code where bullFlag[0] was bullFlag and all worked. I am assigning bullFlag[0] = true; down there in the code
if (isHighSequence && trendDirection == 1 && High[0] > Close[0])
{
Print("condition 1 bull");
double slope = (High[lookbackPeriod - 1] - High[0]) / lookbackPeriod;
trendlineValueDn = (slope * 0) + High[0];
Print("condition 2 bull");
Print("bullFlagCounter"+bullFlagCounter);
Print("bullFlag[0]"+bullFlag[0]);
string newLineTagB = "BullFlag" + bullFlagCounter;
if (bullFlag[0] && bullFlagCounter > 0)
{
RemoveDrawObject("BullFlag" + (bullFlagCounter - 1));
}
Draw.Line(this, newLineTagB, true, lookbackPeriod - 1, High[lookbackPeriod - 1], 0, High[0], BullFlagColor, DashStyleHelper.Solid, 2);
bullFlag[0] = true;
bullFlagCounter++;
// Alert("Alert", Priority.High, "Down trend line broken", NinjaTrader.Core.Globals.InstallDir + @"\sounds\Reversing.wav", 10, Brushes.Transparent, Brushes.Transparent);
}

Comment