I'm trying to put a dot in the chart when a condition is met. For some reason the if statement is not working properly. I'm using NinjaTrader 8.
In the protected override void OnBarUpdate() function, the following works if it's the only statement:
But if I try to compare the current to the previous bar like this, it's not working:
{
Draw.Dot(this, "Bull" + CurrentBar, true, 0, Low[0] - 5, Brushes.Blue);
}
Any idea what's wrong here? Thanks in advance
Comment