Below is the snippet of the code. Any idea what am I missing?
if (double.TryParse(priceStr, out double levelPrice))
{
// Draw horizontal line
NinjaTrader.NinjaScript.DrawingTools.Draw.Horizont alLine(
this,
label + "_" + levelPrice,
levelPrice,
Brushes.DarkOrange
);
// Draw label at the last bar (to the right)
NinjaTrader.NinjaScript.DrawingTools.Draw.Text(
this,
"label_" + levelPrice,
label,
CurrentBar, // Position the label at the last bar
levelPrice,
Brushes.Red
);

Comment