Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Entries: 1 Bar Slower when backtesting

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

    Entries: 1 Bar Slower when backtesting

    ...i am trying to backtest a multi-instrument strategy that enters a position after an MACD crossover from another instrument. the problem is that: the strategy does not enter a position immediately after a crossover, it waits 1 bar and then enters a position.

    is this normal when backtesting? if not, how can i fix this?

    #2
    Yes this is normal since in a backtest, you are testing for an entry condition at the close of a bar and submitting an order which is filled on the next bar.
    RayNinjaTrader Customer Service

    Comment


      #3
      thanks Ray.

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by CarlTrading, 03-31-2026, 09:41 PM
      1 response
      62 views
      0 likes
      Last Post NinjaTrader_ChelseaB  
      Started by CarlTrading, 04-01-2026, 02:41 AM
      0 responses
      33 views
      0 likes
      Last Post CarlTrading  
      Started by CaptainJack, 03-31-2026, 11:44 PM
      0 responses
      44 views
      1 like
      Last Post CaptainJack  
      Started by CarlTrading, 03-30-2026, 11:51 AM
      0 responses
      58 views
      0 likes
      Last Post CarlTrading  
      Started by CarlTrading, 03-30-2026, 11:48 AM
      0 responses
      47 views
      0 likes
      Last Post CarlTrading  
      Working...
      X