The indicator errors out at line 52 and I don't think it ought to. Any suggestions?
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Problem with ILine.Pen
Collapse
X
-
Problem with ILine.Pen
The attached indicator cycles through all the ChartObjects and, if the object is a DrawType.Line, it casts the ChartObject into a variable of type ILine.
The indicator errors out at line 52 and I don't think it ought to. Any suggestions?Tags: None
-
I can't reproduce any issue. I places a couple of different draw object on a chart and added your indicator -> no problem. The "catch" code was not executed. I got this output:
CO.DrawType: 'Line'
Pen: System.Drawing.Pen Color: Color [Blue]
DashStyle: Solid width: 1
CO.DrawType: 'Ray'
CO.DrawType: 'ExtendedLine'
CO.DrawType: 'ArrowLine'
CO.DrawType: 'HorizontalLine'
CO.DrawType: 'VerticalLine'
CO.DrawType: 'FibonacciRetracements'
CO.DrawType: 'FibonacciExtensions'
CO.DrawType: 'FibonacciExtensions'
CO.DrawType: 'FibonacciTimeExtensions'
CO.DrawType: 'FibonacciCircle'
CO.DrawType: 'AndrewsPitchfork'
CO.DrawType: 'GannFan'
CO.DrawType: 'RegressionChannel'
CO.DrawType: 'Ellipse'
CO.DrawType: 'Rectangle'
CO.DrawType: 'Triangle'
CO.DrawType: 'Arc'
CO.DrawType: 'Text'
CO.DrawType: 'ArrowUp'
CO.DrawType: 'ArrowDown'
Please be specific on steps needed to reproduce the issue.
Also: Please make sure you are on latest NT7B6. Thanks
Comment
-
Thank you for the look...
I ran it again and I was not able to duplicate the error either...so perhaps it was situational. The only thing that's different is that there was a reboot of my PC between yesterday and today.
Thanks again!
Comment
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by kinfxhk, 07-13-2026, 10:18 AM
|
0 responses
30 views
0 likes
|
Last Post
by kinfxhk
07-13-2026, 10:18 AM
|
||
|
Started by kinfxhk, 07-13-2026, 09:50 AM
|
0 responses
24 views
0 likes
|
Last Post
by kinfxhk
07-13-2026, 09:50 AM
|
||
|
Started by kinfxhk, 07-13-2026, 07:21 AM
|
0 responses
30 views
0 likes
|
Last Post
by kinfxhk
07-13-2026, 07:21 AM
|
||
|
Started by kinfxhk, 07-11-2026, 02:11 AM
|
0 responses
27 views
0 likes
|
Last Post
by kinfxhk
07-11-2026, 02:11 AM
|
||
|
Started by SalmaTrader, 07-07-2026, 10:26 PM
|
0 responses
141 views
0 likes
|
Last Post
by SalmaTrader
07-07-2026, 10:26 PM
|

Comment