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 CaptainJack, 05-29-2026, 05:09 AM
    0 responses
    210 views
    0 likes
    Last Post CaptainJack  
    Started by CaptainJack, 05-29-2026, 12:02 AM
    0 responses
    120 views
    0 likes
    Last Post CaptainJack  
    Started by charlesugo_1, 05-26-2026, 05:03 PM
    0 responses
    145 views
    0 likes
    Last Post charlesugo_1  
    Started by DannyP96, 05-18-2026, 02:38 PM
    1 response
    227 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 05-11-2026, 05:56 AM
    0 responses
    188 views
    0 likes
    Last Post CarlTrading  
    Working...
    X