I'm super new to NinjaTrader/Script so this may be a dumb question.
Here's a snippet of my code:
protected override void OnBarUpdate() { Draw.Ray(this, "tag1", 10, 4808, 0, 4809, Brushes.LimeGreen); }
I got that line of code from https://ninjatrader.com/support/help...zontalline.htm , just slightly modified it so that it would be visible on my chart (current price is around 4813).
The problem is that when I add this to my chart (a 5M MES MAR24), it displays nothing. And in the Control Center Log, I get the following error
protected override void OnBarUpdate() { Draw.HorizontalLine(this, "tag1", 4808, Brushes.Green); }
I have no idea why this isn't working. Hopefully someone can point out what I'm doing wrong...
Thank you,
Jamie
Comment