(Method enclosed)
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
DrawLine - irratic behaviour
Collapse
X
-
DrawLine - irratic behaviour
When this regression line is drawn at historic bars (inclusive start) outside the bounds of the screen, it appears/disappears irraticaly when scrolling. Can´t find the logic causing this. Help appreciated!
(Method enclosed)Last edited by FREEN; 07-15-2015, 04:35 PM.Tags: None
-
Hello Freen,
Thanks for your reply.
I believe you have found the limitation as far as distant drawing object anchor points go, the object would disappear with anchor points too far spread out, as you scroll the chart when one anchor point or the other comes closer the line reappears. This behavior is known in NinjaTrader 7. We have checked and tested for this in our next major release Ninjatrader 8.
Comment
-
Hmm... I don´t get it. These lines are only a few bars apart. Timescrolling shouldn´t execute indicator code, so I don´t get what´s wrong. Any other idea on what´s going wrong? The red lines are DrawLine() objects, the blue is a DrawRay() object.
Zipped MP4 enclosed.Attached Files
Comment
-
No, this is coded by me. No error in output window.
If I change the autoscale argument to "true" even the price data disappears/reappears and the chart defaults to an empty minimal (0.01) scale at the errorous spots.
If I remove the DrawLine() method from the code, this will alone cure the problem and all other draw objects will show as expected.Last edited by FREEN; 08-01-2015, 10:32 AM.
Comment
-
Hello Freen,
Thanks for your reply.
I've tried a number of tests with your code from the first post and have not been able to recreate the condition that is observable in your video. I am able to recreate the condition i mentioned where the draw object is wider than the chart and in that case the object will appear and disappear as I scroll through the chart however the indicator name text, in the upper left corner, remains on the charts whilst yours does not.
I would like to review your log and trace files and if possible the full code for the indicator so I could recreate here. Please send to [email protected] atten: paul and a link to this thread.
Comment
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by Geovanny Suaza, 02-11-2026, 06:32 PM
|
0 responses
574 views
0 likes
|
Last Post
|
||
|
Started by Geovanny Suaza, 02-11-2026, 05:51 PM
|
0 responses
332 views
1 like
|
Last Post
|
||
|
Started by Mindset, 02-09-2026, 11:44 AM
|
0 responses
101 views
0 likes
|
Last Post
by Mindset
02-09-2026, 11:44 AM
|
||
|
Started by Geovanny Suaza, 02-02-2026, 12:30 PM
|
0 responses
553 views
1 like
|
Last Post
|
||
|
Started by RFrosty, 01-28-2026, 06:49 PM
|
0 responses
551 views
1 like
|
Last Post
by RFrosty
01-28-2026, 06:49 PM
|

Comment