In an indicator, I want to draw horizontal lines that span individual sessions. For the current live session, can Draw.Line() accept a future date to define where the line ends, where the future date would the date/time of the end of the session?
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Draw.Line() and future dates
Collapse
X
-
Draw.Line() and future dates
Hi,
In an indicator, I want to draw horizontal lines that span individual sessions. For the current live session, can Draw.Line() accept a future date to define where the line ends, where the future date would the date/time of the end of the session?Tags: None
-
Hello grose,
Thank you for the post.
It is technically possible to place objects specifically in the future, however this is not documented so there are not specific expectations surrounding this concept.
You can either use a negative number of bars ago which represents the bar you want to place the object on in the future or use a specific date. Assuming the date is visible on the chart, it should be drawn. As there are no guidelines surrounding this use case I couldn't say if you would run into any problems or not, this would be something you can experiment with. Another user recently asked a similar question, you can find the conversation here: https://ninjatrader.com/support/foru...-extend-a-line
I look forward to being of further assistance.
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by CarlTrading, 03-31-2026, 09:41 PM
|
1 response
82 views
1 like
|
Last Post
|
||
|
Started by CarlTrading, 04-01-2026, 02:41 AM
|
0 responses
43 views
0 likes
|
Last Post
by CarlTrading
04-01-2026, 02:41 AM
|
||
|
Started by CaptainJack, 03-31-2026, 11:44 PM
|
0 responses
64 views
2 likes
|
Last Post
by CaptainJack
03-31-2026, 11:44 PM
|
||
|
Started by CarlTrading, 03-30-2026, 11:51 AM
|
0 responses
68 views
0 likes
|
Last Post
by CarlTrading
03-30-2026, 11:51 AM
|
||
|
Started by CarlTrading, 03-30-2026, 11:48 AM
|
0 responses
56 views
0 likes
|
Last Post
by CarlTrading
03-30-2026, 11:48 AM
|

Comment