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 mattbsea, Today, 05:44 PM
    0 responses
    3 views
    0 likes
    Last Post mattbsea  
    Started by RideMe, 04-07-2024, 04:54 PM
    6 responses
    31 views
    0 likes
    Last Post RideMe
    by RideMe
     
    Started by tkaboris, Today, 05:13 PM
    0 responses
    2 views
    0 likes
    Last Post tkaboris  
    Started by GussJ, 03-04-2020, 03:11 PM
    16 responses
    3,282 views
    0 likes
    Last Post Leafcutter  
    Started by WHICKED, Today, 12:45 PM
    2 responses
    20 views
    0 likes
    Last Post WHICKED
    by WHICKED
     
    Working...
    X