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 Hwop38, 05-04-2026, 07:02 PM
    0 responses
    182 views
    0 likes
    Last Post Hwop38
    by Hwop38
     
    Started by CaptainJack, 04-24-2026, 11:07 PM
    0 responses
    334 views
    0 likes
    Last Post CaptainJack  
    Started by Mindset, 04-21-2026, 06:46 AM
    0 responses
    258 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by M4ndoo, 04-20-2026, 05:21 PM
    0 responses
    358 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Started by M4ndoo, 04-19-2026, 05:54 PM
    0 responses
    187 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Working...
    X