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 limited to 10 rows of depth?

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

    onMarketDepth limited to 10 rows of depth?

    Hi

    I am connecting to a CQG feed which allegedly has 20 levels of depth in it.

    I'm looking at the output of a Print statement:

    Print("Depth " + e.MarketDepth.Ask.Count + " : " + e.MarketDepth.Bid.Count);

    Which shows max 10 levels.

    Is this a hard restriction in the MarketDepth object to only store 10 levels, regardless of the feed?

    Thanks

    Pete

    #2
    Which market / instrument were you looking at Pete?
    BertrandNinjaTrader Customer Service

    Comment


      #3
      ES with a CQG feed.

      Comment


        #4
        Here it is....

        CQG Dom on the left and mine on the right. I've put in debug messages and MarketDepth does appear to only have 10 levels.



        Cheers

        Pete

        Comment


          #5
          Thanks Pete, I'm checking to find out what would be natively offered via the API we work with - generally there's no NT 'cap' on the levels offered in OnMarketDepth() you work with.
          BertrandNinjaTrader Customer Service

          Comment


            #6
            Pete, I could clarify with CQG and there should be 10 Levels depth for the ES/Globex.
            BertrandNinjaTrader Customer Service

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by NRITV, Today, 01:15 PM
            2 responses
            8 views
            0 likes
            Last Post NRITV
            by NRITV
             
            Started by frankthearm, Today, 09:08 AM
            7 responses
            31 views
            0 likes
            Last Post NinjaTrader_Clayton  
            Started by maybeimnotrader, Yesterday, 05:46 PM
            5 responses
            26 views
            0 likes
            Last Post NinjaTrader_ChelseaB  
            Started by quantismo, Yesterday, 05:13 PM
            2 responses
            19 views
            0 likes
            Last Post quantismo  
            Started by adeelshahzad, Today, 03:54 AM
            5 responses
            33 views
            0 likes
            Last Post NinjaTrader_BrandonH  
            Working...
            X