Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Forward looking bars

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

    Forward looking bars

    In NT7 I used to use negative number to retrieve information from future bars. Example: Close[-1] would give me the close the next bar.

    Does NT8 still support this? I'm getting out-of-range errors on all my strategies when using this.

    Thanks

    #2
    Hello siroki,

    Using negative indexes for BarsAgo values is not supported for NinjaTrader 7 and is also not supported for NinjaTrader 8.

    I also highly highly advise against using negative indexes as these are likely to cause indexing errors and cannot be used in real-time.

    This thread will remain open for any community members that may know of undocumented/unsupported methods of using negative indexes who would like to assist.
    Chelsea B.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by CarlTrading, Yesterday, 09:41 PM
    1 response
    14 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 03-30-2026, 11:51 AM
    0 responses
    31 views
    0 likes
    Last Post CarlTrading  
    Started by CarlTrading, 03-30-2026, 11:48 AM
    0 responses
    30 views
    0 likes
    Last Post CarlTrading  
    Started by CaptainJack, 03-25-2026, 09:53 PM
    0 responses
    34 views
    0 likes
    Last Post CaptainJack  
    Started by CaptainJack, 03-25-2026, 09:51 PM
    0 responses
    19 views
    0 likes
    Last Post CaptainJack  
    Working...
    X