var middleBar = x; Draw.Line(this, "HighighestHighMouse", false, middleBar - 15, price, middleBar + 15, price, Brushes.Green, DashStyleHelper.Dot, 5);
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
DrawLine NullReference Exception
Collapse
X
-
DrawLine NullReference Exception
Found a bug in DrawLine
This code which intends to draw a line from middleBar('s ago) extended 15 bars forward and 15 bars back; results in an Unhandled System.NullReference Exception if middleBar + 15 is greater than the number of bars available.Code:Tags: None
-
Hi reach4thelasers,
May I confirm you are using the latest version of NinjaTrader 8.0.5.2?
I was not able to reproduce this behavior.
Attached is a test indicator. Are you able to reproduce the crash adding this test indicator to a chart?Attached FilesChelsea B.NinjaTrader Customer Service
Comment
-
Hey Chelsea,
I am no longer able to reproduce the issue either. Just spent an hour trying - I think its been fixed!
Thank you
Kevin.
Comment
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by CarlTrading, 05-11-2026, 05:56 AM
|
0 responses
28 views
0 likes
|
Last Post
by CarlTrading
05-11-2026, 05:56 AM
|
||
|
Started by CarlTrading, 05-10-2026, 08:12 PM
|
0 responses
20 views
0 likes
|
Last Post
by CarlTrading
05-10-2026, 08:12 PM
|
||
|
Started by Hwop38, 05-04-2026, 07:02 PM
|
0 responses
183 views
0 likes
|
Last Post
by Hwop38
05-04-2026, 07:02 PM
|
||
|
Started by CaptainJack, 04-24-2026, 11:07 PM
|
0 responses
337 views
0 likes
|
Last Post
by CaptainJack
04-24-2026, 11:07 PM
|
||
|
Started by Mindset, 04-21-2026, 06:46 AM
|
0 responses
261 views
0 likes
|
Last Post
by Mindset
04-21-2026, 06:46 AM
|

Comment