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 Mindset, 04-21-2026, 06:46 AM
    0 responses
    44 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by M4ndoo, 04-20-2026, 05:21 PM
    0 responses
    54 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Started by M4ndoo, 04-19-2026, 05:54 PM
    0 responses
    34 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Started by cmoran13, 04-16-2026, 01:02 PM
    0 responses
    95 views
    0 likes
    Last Post cmoran13  
    Started by PaulMohn, 04-10-2026, 11:11 AM
    0 responses
    57 views
    0 likes
    Last Post PaulMohn  
    Working...
    X