Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Order is Filled 1 Bar Late

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

    Order is Filled 1 Bar Late

    I’m using the Managed Approach in my Strategy and am placing an order on the First Tick of the Bar following an evaluation of various indicators on the previous bar, and am also using the Price of the previous bar for my order.

    The actual order is placed on the First Tick of the Bar, verified by the “Announcement”, however rather than filling the order in that bar, it is filled after that bar closes. My question is why isn’t the order filled in the same bar the order is placed?

    #2
    Hi Denman,

    What is your configuration for this?
    • Historical(backtest) or real time.
    • CalculateOnBarClose setting
    Ryan M.NinjaTrader Customer Service

    Comment


      #3
      Real Time & CalculateOnBarClose = false, for all indicators.

      Comment


        #4
        With real time and CalculateOnBarClose = false, it should evaluate the condition while the bar is forming and submit right when the condition is true.

        CalculateOnBarClose = false, for all indicators.
        What is the CalculateOnBarClose setting for the strategy. The strategy is what's actually submitting orders and hosting all indicators. You should not assign COBC at all within any of the hosted indicators, as they will inherit the strategies COBC property, and assigning this explicitly within hosted indicators can cause issues.
        Last edited by NinjaTrader_RyanM1; 04-03-2012, 02:14 PM.
        Ryan M.NinjaTrader Customer Service

        Comment


          #5
          I've Commented Out all the Indicator COBC methods and replaced them with 1 for the Strategy. I'll try this tomorrow during Real Time and let you know how it goes. Thanks for the logic!

          Comment


            #6
            Sounds good, let us know how it goes. If you don't want to wait until tomorrow you can simulate a real time feed with the simulated data feed or market replay connection.
            Ryan M.NinjaTrader Customer Service

            Comment


              #7
              Thanks for the suggestion. i'd actually forgotten about the simulated data feed. (I'm not thrilled with the way that Market Replay fills orders)

              Comment


                #8
                Works like a charm! You be da man!

                Comment


                  #9
                  Thanks for the follow up, DenMan -- Cheers!
                  Ryan M.NinjaTrader Customer Service

                  Comment

                  Latest Posts

                  Collapse

                  Topics Statistics Last Post
                  Started by Geovanny Suaza, 02-11-2026, 06:32 PM
                  0 responses
                  646 views
                  0 likes
                  Last Post Geovanny Suaza  
                  Started by Geovanny Suaza, 02-11-2026, 05:51 PM
                  0 responses
                  367 views
                  1 like
                  Last Post Geovanny Suaza  
                  Started by Mindset, 02-09-2026, 11:44 AM
                  0 responses
                  107 views
                  0 likes
                  Last Post Mindset
                  by Mindset
                   
                  Started by Geovanny Suaza, 02-02-2026, 12:30 PM
                  0 responses
                  569 views
                  1 like
                  Last Post Geovanny Suaza  
                  Started by RFrosty, 01-28-2026, 06:49 PM
                  0 responses
                  573 views
                  1 like
                  Last Post RFrosty
                  by RFrosty
                   
                  Working...
                  X