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 line disappearing
Collapse
X
-
Bertrand,
If you are Drawing a Sup/Res line as I do there are times when you want to draw that line into the future. As an example lets say it is 8:30 AM and I want to draw a Sup/Res line from 6:30 am to the NY close at 4:15 pm. Only want to perform the calcs to draw the line one time because that are computer resource intensive. So now it is the middle of the day and the line startTime is off the left side of the chart and the 4:15 bar is still in the future. The DrawLine disappears yet it is still a viable Sup Res line.
Plots are not an option because the numbers of Lines / Plots is unknown when the calcs are performed. So the question I have is why would you not want those lines visible? They other questions is why would I want to redraw that line on every bar when I only need to draw it once. That seems to me to be a waste of computer cycles when speed is of the essence. And to make matters worse is the inability to DrawLines Globally via script so if I want to see those lines on multiple timeframes/ charts I have to redo the cals and DrawLines on each chart.
Is there to keep the lines on the chart under this scenario without have to perform constant recalcs and redraws?
Comment
-
TAJTrades, the outcome is unfortunately expected for our x axis time sequencing approach, have you tried using just an extended line or ray for example? The endpoints would be infinite and thus you would not need to supply an exact future anchor.
The option to draw globally programmatically is on our feedback list - thanks for bringing it up.BertrandNinjaTrader Customer Service
Comment
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by algospoke, Yesterday, 06:40 PM
|
2 responses
23 views
0 likes
|
Last Post
by algospoke
Today, 07:04 PM
|
||
Started by ghoul, Today, 06:02 PM
|
3 responses
14 views
0 likes
|
Last Post Today, 06:43 PM | ||
Started by jeronymite, 04-12-2024, 04:26 PM
|
3 responses
45 views
0 likes
|
Last Post
by jeronymite
Yesterday, 10:10 PM
|
||
Started by Barry Milan, Yesterday, 10:35 PM
|
7 responses
21 views
0 likes
|
Last Post Today, 06:16 PM | ||
Started by AttiM, 02-14-2024, 05:20 PM
|
10 responses
181 views
0 likes
|
Last Post
by jeronymite
Today, 06:11 PM
|
Comment