Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Error in log on running simple volume check

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

    Error in log on running simple volume check

    I am trying to create some simple volume based indicators. When I create a new indicator and use the following code:

    if (Volume[0] >= Volume[1] * 1.10)
    DrawDiamond("Volume Spike" + CurrentBar, 0, Low[0] - TickSize, Color.Red);

    it compiles fine but when I apply it nothing shows up on the screen and I get the following error message in the log:

    Error on calling the 'OnBarUpdate' method for indicator 'AAATest' on bar 0: Index was out of range. Must be non-negative and less than the size of the collection.

    Any ideas on what the problem might be? I am running 6.0.1000.9.

    Thanks

    #2
    The following tip will answer your question -

    RayNinjaTrader Customer Service

    Comment


      #3
      The devil is in the detail Thanks for the incredibly fast answer.....

      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
      331 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
      549 views
      1 like
      Last Post Geovanny Suaza  
      Started by RFrosty, 01-28-2026, 06:49 PM
      0 responses
      549 views
      1 like
      Last Post RFrosty
      by RFrosty
       
      Working...
      X