Announcement

Collapse
No announcement yet.

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.

    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?

        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 Geovanny Suaza, 02-11-2026, 06:32 PM
          0 responses
          571 views
          0 likes
          Last Post Geovanny Suaza  
          Started by Geovanny Suaza, 02-11-2026, 05:51 PM
          0 responses
          330 views
          1 like
          Last Post Geovanny Suaza  
          Started by Mindset, 02-09-2026, 11:44 AM
          0 responses
          101 views
          0 likes
          Last Post Mindset
          by Mindset
           
          Started by Geovanny Suaza, 02-02-2026, 12:30 PM
          0 responses
          548 views
          1 like
          Last Post Geovanny Suaza  
          Started by RFrosty, 01-28-2026, 06:49 PM
          0 responses
          548 views
          1 like
          Last Post RFrosty
          by RFrosty
           
          Working...
          X