Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

onMarketDepth never called

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

    onMarketDepth never called

    Hello,

    I am having problem with onMarketDepth function not being called at all within my indicator.
    Testing on US Equities (IQFEED) tick/minute charts.

    protected override void OnMarketDepth(MarketDepthEventArgs e)
    {
    Print("here");
    // Print some data to the Output window
    if (e.MarketDataType == MarketDataType.Ask && e.Operation == Operation.Update){
    sells += e.Volume;
    Print("sell++");
    }
    else if (e.MarketDataType == MarketDataType.Bid && e.Operation == Operation.Update){
    buys += e.Volume;
    Print("buy++");
    }
    }


    Is it only intended to use on replay?
    Thanks for your help in advance!!

    #2
    Hello ,

    Thanks for your post.

    It may be that you are not enabled for level 2 data with your IQFeed connection.

    The OnMarketDepth function will trigger when level 2 data is received.

    Please open a Level II window and load the instrument that you are charting.
    (right-click the window -> select Instruments -> select an equity)

    If you do not see rows appearing in this window, this means that you need to contact IQFeed and subscribe to level 2 data.

    Let me know if you are getting rows in this window.
    Chelsea B.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Geovanny Suaza, 02-11-2026, 06:32 PM
    0 responses
    596 views
    0 likes
    Last Post Geovanny Suaza  
    Started by Geovanny Suaza, 02-11-2026, 05:51 PM
    0 responses
    343 views
    1 like
    Last Post Geovanny Suaza  
    Started by Mindset, 02-09-2026, 11:44 AM
    0 responses
    103 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by Geovanny Suaza, 02-02-2026, 12:30 PM
    0 responses
    556 views
    1 like
    Last Post Geovanny Suaza  
    Started by RFrosty, 01-28-2026, 06:49 PM
    0 responses
    554 views
    1 like
    Last Post RFrosty
    by RFrosty
     
    Working...
    X