Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Backtest with minutes bar that needed tick by tick evaluation

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

    Backtest with minutes bar that needed tick by tick evaluation

    I'm aware of this limitation in NT7 when performing backtest as written in the guide:
    When indicators or strategies are running on historical data, OnBarUpdate() is only called on the close of each historical bar even if this property is set to false. This is due to the fact that with a historical data set, only the OHLCVT of the bar is known and not each tick that made up the bar.
    I was thinking of some workaround working with ticks but it has a significative flaw, the time frame won't be regular as it should be. So I'm wondering if by any chance you might have some undocumented method or code that might help

    Thanks

    #2
    Hello pstrusi,

    Thank you for your post.

    For NinjaTrader 7, the only real supported way around this limitation of using historical data would be to manually add a secondary tick data series to your code and either submit your orders or calculate your indicators using that series.

    Here's a link to our help guide that goes over adding granularity to your strategy for use in backtesting:


    Please let us know if we may be of further assistance to you.

    Comment


      #3
      Thanks Kate. I appreciate the suggestion.

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by Mindset, 04-21-2026, 06:46 AM
      0 responses
      115 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Started by M4ndoo, 04-20-2026, 05:21 PM
      0 responses
      161 views
      0 likes
      Last Post M4ndoo
      by M4ndoo
       
      Started by M4ndoo, 04-19-2026, 05:54 PM
      0 responses
      83 views
      0 likes
      Last Post M4ndoo
      by M4ndoo
       
      Started by cmoran13, 04-16-2026, 01:02 PM
      0 responses
      127 views
      0 likes
      Last Post cmoran13  
      Started by PaulMohn, 04-10-2026, 11:11 AM
      0 responses
      87 views
      0 likes
      Last Post PaulMohn  
      Working...
      X