Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Draw.Line() and future dates

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    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?

    #2
    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.

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Geovanny Suaza, 02-11-2026, 06:32 PM
    0 responses
    596 views
    0 likes
    Last Post Geovanny Suaza  
    Started by Geovanny Suaza, 02-11-2026, 05:51 PM
    0 responses
    343 views
    1 like
    Last Post Geovanny Suaza  
    Started by Mindset, 02-09-2026, 11:44 AM
    0 responses
    103 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by Geovanny Suaza, 02-02-2026, 12:30 PM
    0 responses
    556 views
    1 like
    Last Post Geovanny Suaza  
    Started by RFrosty, 01-28-2026, 06:49 PM
    0 responses
    554 views
    1 like
    Last Post RFrosty
    by RFrosty
     
    Working...
    X