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

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 wzgy0920, 04-20-2024, 06:09 PM
    2 responses
    26 views
    0 likes
    Last Post wzgy0920  
    Started by wzgy0920, 02-22-2024, 01:11 AM
    5 responses
    32 views
    0 likes
    Last Post wzgy0920  
    Started by wzgy0920, Yesterday, 09:53 PM
    2 responses
    49 views
    0 likes
    Last Post wzgy0920  
    Started by Kensonprib, 04-28-2021, 10:11 AM
    5 responses
    192 views
    0 likes
    Last Post Hasadafa  
    Started by GussJ, 03-04-2020, 03:11 PM
    11 responses
    3,234 views
    0 likes
    Last Post xiinteractive  
    Working...
    X