• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

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 Mindset, Today, 04:07 AM
    1 response
    4 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by lakman184, Today, 03:04 AM
    0 responses
    2 views
    0 likes
    Last Post lakman184  
    Started by WHICKED, Yesterday, 09:03 PM
    1 response
    17 views
    0 likes
    Last Post Emma1
    by Emma1
     
    Started by oleotrim, Yesterday, 11:29 PM
    1 response
    14 views
    0 likes
    Last Post Emma1
    by Emma1
     
    Started by Heavyweight_Prop, Yesterday, 09:06 PM
    1 response
    12 views
    0 likes
    Last Post NinjaTrader_EricB  
    Working...
    X