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.
    Kate W.NinjaTrader Customer Service

    Comment


      #3
      Thanks Kate. I appreciate the suggestion.

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by Mongo, Today, 11:05 AM
      3 responses
      11 views
      0 likes
      Last Post NinjaTrader_ChelseaB  
      Started by traderqz, Today, 12:06 AM
      6 responses
      13 views
      0 likes
      Last Post traderqz  
      Started by Skifree, Today, 03:41 AM
      3 responses
      13 views
      0 likes
      Last Post Skifree
      by Skifree
       
      Started by traderqz, Yesterday, 09:06 AM
      5 responses
      34 views
      0 likes
      Last Post NinjaTrader_Jesse  
      Started by guillembm, Today, 11:25 AM
      1 response
      6 views
      0 likes
      Last Post NinjaTrader_Jesse  
      Working...
      X