Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Timing question

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

    Timing question

    Hi, I’m curious how this series of occurrences would translate:

    Calculate = on bar close

    Say I enter when XYZ happens.

    It’s 1pm and at 1:01pm XYZ happens.

    If my data series is 60 minutes, will I enter at 2pm or will it skip the order because XYZ didn’t happen at “bar close” of 1pm?

    Alternatively say

    It’s 1pm and at 1:01pm XYZ happens. And then at 1:59pm the condition is not valid

    If my data series is 60 minutes, will I enter at 2pm or will it skip the order because XYZ didn’t happen at “bar close” of 1pm?

    Alternatively say

    It’s 1pm and at 1:01pm XYZ happens. And it’s 1:59pm and condition stays valid

    If my data series is 60 minutes, will I enter at 2pm or will it skip the order because XYZ didn’t happen at “bar close” of 1pm?

    #2
    Hello calhawk01,

    Thanks for your post.

    Using Calculate.OnBarClose, the conditions XYZ would not be known/evaluated in the 60-minute bar until the bar closes which is when the script would run, once. If the XYZ conditions place an order the order would be placed on the next bar.
    Paul H.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by bortz, 11-06-2023, 08:04 AM
    47 responses
    1,605 views
    0 likes
    Last Post aligator  
    Started by jaybedreamin, Today, 05:56 PM
    0 responses
    8 views
    0 likes
    Last Post jaybedreamin  
    Started by DJ888, 04-16-2024, 06:09 PM
    6 responses
    18 views
    0 likes
    Last Post DJ888
    by DJ888
     
    Started by Jon17, Today, 04:33 PM
    0 responses
    4 views
    0 likes
    Last Post Jon17
    by Jon17
     
    Started by Javierw.ok, Today, 04:12 PM
    0 responses
    13 views
    0 likes
    Last Post Javierw.ok  
    Working...
    X