Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

Partner 728x90

Collapse

Market Depth()

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

    Market Depth()

    Hello,

    when the market is open I can see market depth on the Super Dom Rows and also on an additional Add On for the Super DOM.

    When the market is closed and I want to replay that recorded data the additional Add On for the Super DOM shows all lines of recorded market depth but on the ladder
    of the Super DOM itself the behaviour is unpredictable, I see different depths on bid and ask side and data that is not in line with the recoded data.

    If I try to access this data via OnMarketDepth(), it also seems to be incomplete and ask/bid is not symetrically.

    What can I do and how do I have to proceed, if I want to test code outside of market hours with full depth ?

    #2
    Hello TraderChris123,

    Thanks for your post.

    OnMarketDepth() is a realtime data stream and is not called on historical data (backtest) as stated in the OnMarketDepth() help guide page. Note that the OnMarketDepth() method is called and guaranteed to be in the correct sequence for every change in level two market data (market depth) for the underlying instrument.

    OnMarketDepth(): https://ninjatrader.com/support/help...arketdepth.htm

    So I may accurately assist, are you using the Playback connection to play back Market Replay data that you recorded?

    Is the SuperDOM AddOn on that you created? Or, was it created by a third-party developer?

    If it was created by you, are you printing out the market depth bid and ask values in the script to see how those values are processing?

    Please also send a screenshot demonstrating the behavior you are reporting so I may investigate further.
    • To send a screenshot with Windows 10 or newer I would recommend using the Windows Snipping Tool.
    • Alternatively to send a screenshot press Alt + PRINT SCREEN to take a screenshot of the selected window. Then go to Start--> Accessories--> Paint, and press CTRL + V to paste the image. Lastly, save it as a jpeg file and send the file as an attachment.
    ​I look forward to assisting further.
    Brandon H.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by giulyko00, Today, 11:49 AM
    2 responses
    11 views
    0 likes
    Last Post giulyko00  
    Started by Aviram Y, Today, 06:03 AM
    2 responses
    10 views
    0 likes
    Last Post Aviram Y  
    Started by FishTrade, Today, 03:42 PM
    0 responses
    1 view
    0 likes
    Last Post FishTrade  
    Started by Richozzy38, Today, 01:06 PM
    3 responses
    14 views
    0 likes
    Last Post Richozzy38  
    Started by ttrader23, Today, 09:04 AM
    2 responses
    12 views
    0 likes
    Last Post ttrader23  
    Working...
    X