Is there a better way to keep the line updated on the tick chart, so that it continues to extend until the end of the session, without manual intervention?
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Global time-based lines on tick charts
Collapse
X
-
Global time-based lines on tick charts
I manually draw global lines on a daily chart that extend to the close of the session (anchor points from 5pm - 4pm the next day). Smaller timeframe time-based charts will recognize the end-time and keep the line extended correctly. Tick charts, however, will plot the initial end-point based on their own initial time scale, and that end-point remains at a fixed point on the chart rather than updating as the tick chart time scale updates. If I access the line's properties from the tick chart, its end-point is no longer end-of-session, even though the daily chart still shows it as end-of-session. Since this is a manual line, F5 hotkey does not refresh it. The best way I have found to correct it is to access the line's properties on the daily chart. That seems to force the tick chart to recognize that its plot of the line is no longer accurate. Something similar happens with other non-time based bars like renko and volume bars.
Is there a better way to keep the line updated on the tick chart, so that it continues to extend until the end of the session, without manual intervention?Tags: None
-
Hello,
Thank you for your post.
It seems like the issue here would be drawing an anchor point into the future before the chart is actually plotting there yet.
You could try using a ray or extended line during the day, and stop it from extending at the end of the day.
Or, go in and re-adjust the horizontal line once it's anchor point has formally been plotted on the chart.
Let us know if you have any further questions.
-
You can create an addon/indicator that, when you draw a new line, stores the line tag, the coordinates of the first anchor (X, Y), and calculates the slope. So it's like a vector. Then this script can iterate through all the lines at every bar or whatever and check if the slope has changed. If so, it restores to the original value. It's just an idea.
Comment
-
OK I may have to use the ray, but that just trades one type of manual intervention for another. I'm really looking for a more automated way to manage this. If I use a script to draw the global lines, it has a similar result, but F5 executed on the daily chart will update all the tick chart lines as well.
Last edited by jculp; 10-14-2023, 12:25 PM.
Comment
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by Geovanny Suaza, 02-11-2026, 06:32 PM
|
0 responses
599 views
0 likes
|
Last Post
|
||
|
Started by Geovanny Suaza, 02-11-2026, 05:51 PM
|
0 responses
345 views
1 like
|
Last Post
|
||
|
Started by Mindset, 02-09-2026, 11:44 AM
|
0 responses
103 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
558 views
1 like
|
Last Post
|
||
|
Started by RFrosty, 01-28-2026, 06:49 PM
|
0 responses
558 views
1 like
|
Last Post
by RFrosty
01-28-2026, 06:49 PM
|

Comment