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 Hwop38, 05-04-2026, 07:02 PM
          0 responses
          164 views
          0 likes
          Last Post Hwop38
          by Hwop38
           
          Started by CaptainJack, 04-24-2026, 11:07 PM
          0 responses
          318 views
          0 likes
          Last Post CaptainJack  
          Started by Mindset, 04-21-2026, 06:46 AM
          0 responses
          246 views
          0 likes
          Last Post Mindset
          by Mindset
           
          Started by M4ndoo, 04-20-2026, 05:21 PM
          0 responses
          350 views
          0 likes
          Last Post M4ndoo
          by M4ndoo
           
          Started by M4ndoo, 04-19-2026, 05:54 PM
          0 responses
          179 views
          0 likes
          Last Post M4ndoo
          by M4ndoo
           
          Working...
          X