Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

OnRender method

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

    OnRender method

    I have made an attachment of OnRender()

    I have errors in it.

    Can anyone help me to resolve those errors.

    Error Message:
    Indicator 'DTPVolumeProfileSuit2': Error on calling 'OnRender' method on bar 0: You are accessing an index with a value that is invalid since it is out-of-range. I.E. accessing a series [barsAgo] with a value of 5 when there are only 4 bars on the chart.
    Attached Files
    Last edited by [email protected]; 08-09-2017, 10:39 PM.

    #2
    Hello,

    Thank you for the post.

    Would you be able to instead provide a sample script that includes variable names and using declarations?

    In this sample, you have missing variables and also namespaces that are not present in a standard indicator (likely sharpdx). If you could instead provide a complete sample I could review it to see what errors are being listed.

    Alternatively, because you already have this on your end in a complete version, if you can provide the specific errors you are stuck on that go with this syntax, that would also be helpful.

    I look forward to being of further assistance.

    Comment


      #3
      Thank You for your reply
      Can you please give your mail Id.So that I can share my code to your mail

      Comment


        #4
        Hello,

        You can email our platform support [at] ninjatrader.com address in reference to this post. If you could include a link to this post in your email that would be helpful as well.

        Please let me know if I may be of further assistance.

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by Mindset, 04-21-2026, 06:46 AM
        0 responses
        49 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Started by M4ndoo, 04-20-2026, 05:21 PM
        0 responses
        69 views
        0 likes
        Last Post M4ndoo
        by M4ndoo
         
        Started by M4ndoo, 04-19-2026, 05:54 PM
        0 responses
        36 views
        0 likes
        Last Post M4ndoo
        by M4ndoo
         
        Started by cmoran13, 04-16-2026, 01:02 PM
        0 responses
        95 views
        0 likes
        Last Post cmoran13  
        Started by PaulMohn, 04-10-2026, 11:11 AM
        0 responses
        59 views
        0 likes
        Last Post PaulMohn  
        Working...
        X