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 CaptainJack, 05-29-2026, 05:09 AM
        0 responses
        232 views
        0 likes
        Last Post CaptainJack  
        Started by CaptainJack, 05-29-2026, 12:02 AM
        0 responses
        150 views
        0 likes
        Last Post CaptainJack  
        Started by charlesugo_1, 05-26-2026, 05:03 PM
        0 responses
        161 views
        1 like
        Last Post charlesugo_1  
        Started by DannyP96, 05-18-2026, 02:38 PM
        1 response
        243 views
        0 likes
        Last Post NinjaTrader_ChelseaB  
        Started by CarlTrading, 05-11-2026, 05:56 AM
        0 responses
        198 views
        0 likes
        Last Post CarlTrading  
        Working...
        X