Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

BarNext?

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

    BarNext?

    If I had a strategy that once a condition is met in the current bar, a trade is executed in the next bar, how would I do that? ie: Low[-1] ? Since [0] is current, and [1] is previous, would [-1] be next?

    #2
    imported post

    There is no concept of negative index values since we do not allow you to "peek" into the future.

    If your strategy is run against historical data or its real-time with calculate on bar close set to true, then trades are always executed on the next bar.

    Ray
    RayNinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by b16_aln, Today, 02:40 AM
    0 responses
    4 views
    0 likes
    Last Post b16_aln
    by b16_aln
     
    Started by ppau2004, Today, 01:32 AM
    0 responses
    5 views
    0 likes
    Last Post ppau2004  
    Started by drwbns, 03-12-2020, 08:45 PM
    10 responses
    125 views
    0 likes
    Last Post habibalex  
    Started by westofpluto, Today, 12:39 AM
    0 responses
    6 views
    0 likes
    Last Post westofpluto  
    Started by Bidder, Yesterday, 09:16 PM
    0 responses
    14 views
    0 likes
    Last Post Bidder
    by Bidder
     
    Working...
    X