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 Barry Milan, Today, 10:35 PM
    2 responses
    8 views
    0 likes
    Last Post Barry Milan  
    Started by WeyldFalcon, 12-10-2020, 06:48 PM
    14 responses
    1,428 views
    0 likes
    Last Post Handclap0241  
    Started by DJ888, Yesterday, 06:09 PM
    2 responses
    9 views
    0 likes
    Last Post DJ888
    by DJ888
     
    Started by jeronymite, 04-12-2024, 04:26 PM
    3 responses
    41 views
    0 likes
    Last Post jeronymite  
    Started by bill2023, Today, 08:51 AM
    2 responses
    16 views
    0 likes
    Last Post bill2023  
    Working...
    X