Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

order filling price (backtest)

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

    order filling price (backtest)

    Hi, I've noticed the following peculiar behavior of NT in backtesting: when I submit an order at bar close (CalculateOnBarClose=true), on the chart and in calculations it appears that the order got filled at... next bar's open. It may make a lot of difference if there's a gap between the bars. Is there a way to fix that?

    #2
    billitin, I'm not sure I follow you, yes in backtesting this is expected as the next logical trade location is the next bar's open after the conditions evaluated to true to trigger the trade placement.
    BertrandNinjaTrader Customer Service

    Comment


      #3
      I'd be fine with it, except that I specify Close[0] as entry price, and instead of that in effect I get Open[next_bar] price which is algorithmically (rather than maybe logically) incorrect...

      Comment


        #4
        Hello,

        I am jumping in here, but maybe you could give us details on the prices, bars and when the conditions are met and we can help you more.

        Post some code as well.
        DenNinjaTrader Customer Service

        Comment


          #5
          Never mind, I've just found that EnterLongLimit doesn't have the noted problem, unlike EnterLong. Thanks!

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by wzgy0920, 04-20-2024, 06:09 PM
          2 responses
          26 views
          0 likes
          Last Post wzgy0920  
          Started by wzgy0920, 02-22-2024, 01:11 AM
          5 responses
          32 views
          0 likes
          Last Post wzgy0920  
          Started by wzgy0920, Yesterday, 09:53 PM
          2 responses
          49 views
          0 likes
          Last Post wzgy0920  
          Started by Kensonprib, 04-28-2021, 10:11 AM
          5 responses
          192 views
          0 likes
          Last Post Hasadafa  
          Started by GussJ, 03-04-2020, 03:11 PM
          11 responses
          3,234 views
          0 likes
          Last Post xiinteractive  
          Working...
          X