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 samish18, Yesterday, 08:57 AM
          8 responses
          25 views
          0 likes
          Last Post samish18  
          Started by DJ888, 04-16-2024, 06:09 PM
          3 responses
          10 views
          0 likes
          Last Post NinjaTrader_Erick  
          Started by RookieTrader, Today, 07:41 AM
          0 responses
          3 views
          0 likes
          Last Post RookieTrader  
          Started by maybeimnotrader, Yesterday, 05:46 PM
          1 response
          18 views
          0 likes
          Last Post NinjaTrader_ChelseaB  
          Started by Perr0Grande, Yesterday, 08:16 PM
          1 response
          7 views
          0 likes
          Last Post NinjaTrader_Jesse  
          Working...
          X