DrawLine("MFE Profit" + CurrentBar, true, longBar, longPriceWatch, CurrentBar, MAX(High,CurrentBar - longBar)[0] -1 * TickSize, Color.Green,DashStyle.DashDot,1);
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
DrawLine not happening
Collapse
X
-
DrawLine not happening
Can anyone see an obvious reason why this drawline wouldnt work?
If checked it in Visual Studio and its getting hit and the values look good but im not seeing it on the chart and cant think why?Code: -
Hello GKonheiser,
Thanks for your post.
Do you see any errors in your log tab of the control center that relate to the indicator?
Not knowing your values I did:and drew a million lines.Code:DrawLine("MFE Profit" + CurrentBar, true, 10, Low[0], CurrentBar, MAX(High,CurrentBar - 10)[0] -1 * TickSize, Color.Green,DashStyle.DashDot,1);
You could use Print statements just before the drawline to assess the values for longBar, longPricewatch and MAX(High,CurrentBar-LongBar)[0] -1*TickSize to assess the values.
Please let me know if this helps to resolve the issue.
-
Hi Paul,
I will put in a Print statement but as I said I check the values manually with Visual Studio.
Get back to you in a sec.
Comment
-
-
Hi Paul,
I have other objects that draw fine on the price panel, I haven't set DrawOnPricePannel to false. It's a bit of a mystery but I bet its something simple.
Comment
-
Ive been looking at this at the weekend and cant find a reason why it isn't drawing and not sure how else to debug it?
Comment
-
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by charlesugo_1, 05-26-2026, 05:03 PM
|
0 responses
66 views
0 likes
|
Last Post
by charlesugo_1
05-26-2026, 05:03 PM
|
||
|
Started by DannyP96, 05-18-2026, 02:38 PM
|
1 response
149 views
0 likes
|
Last Post
|
||
|
Started by CarlTrading, 05-11-2026, 05:56 AM
|
0 responses
162 views
0 likes
|
Last Post
by CarlTrading
05-11-2026, 05:56 AM
|
||
|
Started by CarlTrading, 05-10-2026, 08:12 PM
|
0 responses
99 views
0 likes
|
Last Post
by CarlTrading
05-10-2026, 08:12 PM
|
||
|
Started by Hwop38, 05-04-2026, 07:02 PM
|
0 responses
286 views
0 likes
|
Last Post
by Hwop38
05-04-2026, 07:02 PM
|

Comment