Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Charts - Drawing into the future (i.e. beyond Bar[0])

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

    Charts - Drawing into the future (i.e. beyond Bar[0])

    NT Team,

    Noting the prospect of drawing into the future on charts (i.e. beyond Bar[0]) presented some difficulties in NT7, has drawing into the future been simplified in NT8? Please advise the suggested method (or refer an example) of Drawing a line which, by example, starts at Bar[2] (startBarsAgo = 2) and projects forward 10 bars (endBarsAgo = -8?).

    In NT7, I understood the simplest way to draw into the future was via overrides using DateTime parameters. These override exist in NT8.

    However, where calculations are in "bars" and not DateTime what is the suggested approach? e.g endBarsAgo = -8 or via displacement mentioned in the post "Displacement is off" (http://ninjatrader.com/support/forum...ad.php?t=73772)? I note, while displacement appears in the overrides of Draw.Region() is does not appear in the overrides of Draw.Line().

    Regards
    Shannon

    #2
    Hello Shansen,

    Thank you for your post.

    It would be the same as it was in NinjaTrader 7, for example:
    Code:
    Draw.Line(this, "Tag", 10, Close[0], -10, Close[0], Brushes.Blue);
    Using a negative value for the barsAgo would place it ahead of the current bar.

    If you are working solely with DateTime, it would also be the same as in NinjaTrader 7.

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Geovanny Suaza, 02-11-2026, 06:32 PM
    0 responses
    673 views
    0 likes
    Last Post Geovanny Suaza  
    Started by Geovanny Suaza, 02-11-2026, 05:51 PM
    0 responses
    379 views
    1 like
    Last Post Geovanny Suaza  
    Started by Mindset, 02-09-2026, 11:44 AM
    0 responses
    111 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by Geovanny Suaza, 02-02-2026, 12:30 PM
    0 responses
    578 views
    1 like
    Last Post Geovanny Suaza  
    Started by RFrosty, 01-28-2026, 06:49 PM
    0 responses
    582 views
    1 like
    Last Post RFrosty
    by RFrosty
     
    Working...
    X