(Method enclosed)
Announcement
Collapse
Looking for a User App or Add-On built by the NinjaTrader community?
Visit NinjaTrader EcoSystem and our free User App Share!
Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less
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.Paul H.NinjaTrader Customer Service
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.Paul H.NinjaTrader Customer Service
Comment
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by Atticus20, Today, 07:27 AM
|
1 response
14 views
0 likes
|
Last Post
by balltrader
Today, 08:15 AM
|
||
Started by linkcou, Today, 07:01 AM
|
1 response
14 views
0 likes
|
Last Post
by balltrader
Today, 08:07 AM
|
||
Started by ninza33, Today, 07:16 AM
|
2 responses
9 views
0 likes
|
Last Post Today, 08:05 AM | ||
Started by ellington, Today, 07:40 AM
|
0 responses
8 views
0 likes
|
Last Post
by ellington
Today, 07:40 AM
|
||
Started by brunoviveiros, 02-17-2020, 05:31 AM
|
4 responses
67 views
0 likes
|
Last Post Today, 06:25 AM |
Comment