Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Wronng stategy testing results ?

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

    Wronng stategy testing results ?

    Hi
    Either I have misunderstood some basic things in NinjaTrader regarding Strategies and execution or some results from the strategy tester are wrong.
    As far as I have understood the time in Ninjatrader is to be understood as the endtime. Ex. if on an hourly chart it says 14.00 it means the timeframe from 13.00 - 14.00.
    If that is true then something is not correct in the way the strategy engine generates the results.
    So as you can see om the attached image where 60 m charts is on the left and the 5 min is on the right the trade is fired on the 14.00 candle. In the code as you can se from the output the order is put in at 13.00. As you also can see on the 60m chart the trade is a loss as it hits the stoploss. The issue now is if you look at the 13.00 - 14.00 bracket on the 5 min chart the price never comes even close to the stop loss price and in facts hits the take profit instead.
    If this trade would have to be a loss it would need to be triggered at around 14.15 from above but that would again not fit with the other scenario as explained above.

    Is my understanding of the basics in Ninjatrader wrong, or is something wrong with the strategy engine ?
    Attached Files

    #2
    Can nobody help with this issue ?

    Comment


      #3
      Hi SuneSorgenfrei, thanks for posting. Please try adding a higher-resolution data series to your strategy. Under "Historical Fill Processing" set this to a 1 minute or even a 1 tick chart to improve order fill estimation in the backtest. Please also make sure to fully read this post from our friend Chelsea that helps explain the differences one can see between historical and real-time trading:

      Citizens of the NinjaTrader Community, A common question we hear from clients is 'why are results from backtest different from real-time or from market replay?'. Live orders are filled on an exchange with a trading partner on an agreed upon price based on market dynamics. Backtest orders are not using these market dynamics.


      Kind regards,
      -ChrisL

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by NullPointStrategies, Today, 05:17 AM
      0 responses
      50 views
      0 likes
      Last Post NullPointStrategies  
      Started by argusthome, 03-08-2026, 10:06 AM
      0 responses
      126 views
      0 likes
      Last Post argusthome  
      Started by NabilKhattabi, 03-06-2026, 11:18 AM
      0 responses
      69 views
      0 likes
      Last Post NabilKhattabi  
      Started by Deep42, 03-06-2026, 12:28 AM
      0 responses
      42 views
      0 likes
      Last Post Deep42
      by Deep42
       
      Started by TheRealMorford, 03-05-2026, 06:15 PM
      0 responses
      46 views
      0 likes
      Last Post TheRealMorford  
      Working...
      X