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 charlesugo_1, 05-26-2026, 05:03 PM
    0 responses
    65 views
    0 likes
    Last Post charlesugo_1  
    Started by DannyP96, 05-18-2026, 02:38 PM
    1 response
    149 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 05-11-2026, 05:56 AM
    0 responses
    162 views
    0 likes
    Last Post CarlTrading  
    Started by CarlTrading, 05-10-2026, 08:12 PM
    0 responses
    99 views
    0 likes
    Last Post CarlTrading  
    Started by Hwop38, 05-04-2026, 07:02 PM
    0 responses
    286 views
    0 likes
    Last Post Hwop38
    by Hwop38
     
    Working...
    X