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 naanku, Today, 07:25 PM
          0 responses
          5 views
          0 likes
          Last Post naanku
          by naanku
           
          Started by milfocs, Today, 07:23 PM
          0 responses
          3 views
          0 likes
          Last Post milfocs
          by milfocs
           
          Started by PaulMohn, Today, 06:59 PM
          0 responses
          7 views
          0 likes
          Last Post PaulMohn  
          Started by bortz, 11-06-2023, 08:04 AM
          48 responses
          1,750 views
          0 likes
          Last Post carnitron  
          Started by Jonker, 04-27-2024, 01:19 PM
          3 responses
          24 views
          0 likes
          Last Post NinjaTrader_Manfred  
          Working...
          X