Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Plot - Index out-of-range Issue

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

    Plot - Index out-of-range Issue

    Dear Support,

    I am have a perplexing issue when trying to run an indicator I converted from NT7. In NT7 it worked fine. Please see .doc attachment for details.

    Thanks,

    G
    Attached Files

    #2
    Hello Griesha_uk,

    Thank you for your post.

    I will test further on my end and follow up with you on my findings.

    Comment


      #3
      Hello Griesha_uk,

      Thank you for your patience.

      Add the check for both the primary and secondary bar series at the beginning of OnBarUpdate(). For example:
      Code:
      		protected override void OnBarUpdate()
      		{
      			if (CurrentBars[0] <= ((nLongPeriod > nEmaLength && bShowHiLoEMAs) ? nLongPeriod + 1 : nEmaLength + 1)
      				|| CurrentBars[1] <= ((nLongPeriod > nEmaLength && bShowHiLoEMAs) ? nLongPeriod + 1 : nEmaLength + 1)) return;
      Please let me know if you have any questions.

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by Geovanny Suaza, 02-11-2026, 06:32 PM
      0 responses
      582 views
      0 likes
      Last Post Geovanny Suaza  
      Started by Geovanny Suaza, 02-11-2026, 05:51 PM
      0 responses
      338 views
      1 like
      Last Post Geovanny Suaza  
      Started by Mindset, 02-09-2026, 11:44 AM
      0 responses
      103 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Started by Geovanny Suaza, 02-02-2026, 12:30 PM
      0 responses
      554 views
      1 like
      Last Post Geovanny Suaza  
      Started by RFrosty, 01-28-2026, 06:49 PM
      0 responses
      552 views
      1 like
      Last Post RFrosty
      by RFrosty
       
      Working...
      X