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 CarlTrading, 03-31-2026, 09:41 PM
        1 response
        156 views
        1 like
        Last Post NinjaTrader_ChelseaB  
        Started by CarlTrading, 04-01-2026, 02:41 AM
        0 responses
        90 views
        1 like
        Last Post CarlTrading  
        Started by CaptainJack, 03-31-2026, 11:44 PM
        0 responses
        140 views
        2 likes
        Last Post CaptainJack  
        Started by CarlTrading, 03-30-2026, 11:51 AM
        0 responses
        130 views
        1 like
        Last Post CarlTrading  
        Started by CarlTrading, 03-30-2026, 11:48 AM
        0 responses
        107 views
        0 likes
        Last Post CarlTrading  
        Working...
        X