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 rhyminkevin, Today, 04:58 PM
    0 responses
    16 views
    0 likes
    Last Post rhyminkevin  
    Started by lightsun47, Today, 03:51 PM
    0 responses
    6 views
    0 likes
    Last Post lightsun47  
    Started by 00nevest, Today, 02:27 PM
    1 response
    14 views
    0 likes
    Last Post 00nevest  
    Started by futtrader, 04-21-2024, 01:50 AM
    4 responses
    49 views
    0 likes
    Last Post futtrader  
    Started by Option Whisperer, Today, 09:55 AM
    1 response
    15 views
    0 likes
    Last Post bltdavid  
    Working...
    X