Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Strategy Analyzer - Testing minute Intrabar

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

    Strategy Analyzer - Testing minute Intrabar

    Dear Ninjatrader,

    I'm currently developing an strategy in NT7 that operates in the minute intrabar.

    I know that the Strategy Analyzer ignores the condition CalculateOnBarClose = true, setting it to false.

    I've solved part of the issue checking the conditions for the trade in (PeriodType.Minute, 1) and setting some values that if they get satisfied in (PeriodType.Tick, 1), then trades.

    The problem is that some trades are done late or not done during the tests, because, the conditions and values for the trade happened seconds before the bar close.

    For me is crucial to solve this isue in order to be able to test and optimize it properly. There is a way to solve it?

    Thank you very much,

    #2
    Hello popost,

    Thank you for your post and welcome to the NinjaTrader Support Forum!

    There is no means to ruly have intra-bar calculations over historical data in NinjaTrader 7. So Strategy Analyzer backtests can only simulate intra-bar fills but not intra-bar calculations.

    NinjaTrader 8 offers Tick Replay which can be used for intra-bar calculations over historical data. Please visit the following link for more information: http://ninjatrader.com/support/helpG...ick_replay.htm

    Please let me know if you have any questions.

    Comment


      #3
      Hello PatrickH,

      First of all, thanks for your fast and usefull response! It was impresive!

      I'm using for that strategy an indicator that will take a long time to convert it from NT7 to NT8...

      I've just found that some users test the strategies that need COBC=True with "Market Replay" for NT7. Is that possible?

      Thank you very much

      Comment


        #4
        Hello popost,

        Yes, you could run Market Replay. Keep in mind this is Replay data and not Historical data as the Strategy Analyzer would use.

        I would also like to note you refer to CalculateOnBarClose = True in historical calculations. This is exactly what it does. I think you are trying to refer to calculating intra-bar and thus CalculateOnBarClose = false.

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by argusthome, 03-08-2026, 10:06 AM
        0 responses
        84 views
        0 likes
        Last Post argusthome  
        Started by NabilKhattabi, 03-06-2026, 11:18 AM
        0 responses
        47 views
        0 likes
        Last Post NabilKhattabi  
        Started by Deep42, 03-06-2026, 12:28 AM
        0 responses
        29 views
        0 likes
        Last Post Deep42
        by Deep42
         
        Started by TheRealMorford, 03-05-2026, 06:15 PM
        0 responses
        32 views
        0 likes
        Last Post TheRealMorford  
        Started by Mindset, 02-28-2026, 06:16 AM
        0 responses
        67 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Working...
        X