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

Why MarketDepth event lags 20 sec behind SuperDom?

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

    Why MarketDepth event lags 20 sec behind SuperDom?

    I'm evaluating your platform, I'd like to build custom low latency trading strategy for DOM and also custom view of DOM. I just did a simple test, hooking up the MarketDepth Update event
    and printing the top Ask on in the Output tab. It works but the output terribly lags, about 20 second or so behind the Static SuperDom screen
    That makes the OnMarketDepth event out of synch with SuperDom and totally unusable

    How can I get the full market depth with the same speed and data as the SuperDom?

    Is there a throttling going on somewhere? How is SuperDom getting its data? Different event?

    Here's my simple code, I used NinjaTrader.NinjaScript.AddOnBase as the base

    var instrument = Instrument.GetInstrument("ES 12-18");
    marketDepth = new MarketDepth<MarketDepthRow>(instrument);
    marketDepth.Update += OnMarketDepth;

    private void OnMarketDepth(object sender, MarketDepthEventArgs e)
    {
    NinjaTrader.Code.Output.Process(string.Format("Pos ition: {0} Price: {1} Volume: {2}", 0,

    marketDepth.Asks[0].Price, marketDepth.Asks[0].Volume), PrintTo.OutputTab1);


    }
    Last edited by quantrob; 11-27-2018, 11:22 PM.

    #2
    Hello quantrob,

    We'd like to look further into this.

    Please send an email to platformsupport [at] ninjatrader [dot] com so that we may request your log and trace files as well as your workspace.

    In the email please include a link to this forum thread.
    Last edited by NinjaTrader_ChelseaB; 11-28-2018, 09:00 AM.
    Chelsea B.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by algospoke, Yesterday, 06:40 PM
    2 responses
    20 views
    0 likes
    Last Post algospoke  
    Started by ghoul, Today, 06:02 PM
    3 responses
    14 views
    0 likes
    Last Post NinjaTrader_Manfred  
    Started by jeronymite, 04-12-2024, 04:26 PM
    3 responses
    45 views
    0 likes
    Last Post jeronymite  
    Started by Barry Milan, Yesterday, 10:35 PM
    7 responses
    21 views
    0 likes
    Last Post NinjaTrader_Manfred  
    Started by AttiM, 02-14-2024, 05:20 PM
    10 responses
    181 views
    0 likes
    Last Post jeronymite  
    Working...
    X