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

MarketDepth Info

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

    MarketDepth Info

    Hi, trying to show on chart some MarketDepth info but when plotting this one with DrawText command program return error:
    Error on calling 'OnMarketDepth' method for indicator 'AAALevel2V2': Bar index needs to be greater/equal 0

    What's wrong?

    AAALevel2V2.cs

    #2
    Peperlizio, which instrument and timeframe do you see this on? Gave a quick test for example on ES 1 and 5 min and don't see any issue even with your bid portion running as well.
    BertrandNinjaTrader Customer Service

    Comment


      #3
      Trying on 6E and DAX, 1 and 5 minutes; error appears immediately.

      On ES need some seconds before error appears.

      That's really odd..


      Edit..
      Trying to replace Datetime Time[0] with numbers of bar ago: 0 and error now is:

      Error on calling 'OnMarketDepth' method for indicator 'AAALevel2V2': AAALevel2V2.DrawText: startBarsAgo out of valid range 0 through -1, was 0.
      Last edited by Peperlizio; 02-17-2014, 06:11 AM.

      Comment


        #4
        Thanks for the update, tried those instruments and timeframes as well for a few. Which broker or feed are you connecting to as this happens? Are you on latest NT7 R21?
        BertrandNinjaTrader Customer Service

        Comment


          #5
          I'm working with CQG and last release NT7.

          Adding this check seem to works..

          if(CurrentBar>1) DrawText(..

          I will try for a while.

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by RookieTrader, Today, 09:37 AM
          3 responses
          15 views
          0 likes
          Last Post NinjaTrader_ChelseaB  
          Started by kulwinder73, Today, 10:31 AM
          0 responses
          5 views
          0 likes
          Last Post kulwinder73  
          Started by terofs, Yesterday, 04:18 PM
          1 response
          23 views
          0 likes
          Last Post terofs
          by terofs
           
          Started by CommonWhale, Today, 09:55 AM
          1 response
          4 views
          0 likes
          Last Post NinjaTrader_Erick  
          Started by Gerik, Today, 09:40 AM
          2 responses
          7 views
          0 likes
          Last Post Gerik
          by Gerik
           
          Working...
          X