Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

backtesting and DOM?

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

    backtesting and DOM?

    I'm trying to figure out exactly what I can and can't do with backtesting and limit order book (LOB) data in NinjaTrader (NT) and it's not entirely clear to me from the docs.

    Here's what I'd like to do:
    1) I want to study futures instruments (and test a strategy) where limit orders are conditionally aggressive (cross the spread) instead of passive.
    2) The LOB condition I want to test requires separate analyses top of book and n levels beyond the top of book. So, I need to access historical order book data separately for the 1st level and the n-1 levels.

    My questions are:
    i] Can I do this?
    ii] If so, can this only be done with Market Replay? Is there any way to load historical DOM data into NT?
    iii] What methods/event handlers give me the ability to access and manipulate the data?

    #2
    Hello,

    The only way to backtest book data is on a market replay connection. You would not be able to test your strategy on historical data using these methods.

    You can use the OnMarketDepth event handler to access these additional levels of market data:



    Please let me know if you have any questions.
    MatthewNinjaTrader Product Management

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by bortz, 11-06-2023, 08:04 AM
    47 responses
    1,603 views
    0 likes
    Last Post aligator  
    Started by jaybedreamin, Today, 05:56 PM
    0 responses
    8 views
    0 likes
    Last Post jaybedreamin  
    Started by DJ888, 04-16-2024, 06:09 PM
    6 responses
    18 views
    0 likes
    Last Post DJ888
    by DJ888
     
    Started by Jon17, Today, 04:33 PM
    0 responses
    4 views
    0 likes
    Last Post Jon17
    by Jon17
     
    Started by Javierw.ok, Today, 04:12 PM
    0 responses
    12 views
    0 likes
    Last Post Javierw.ok  
    Working...
    X