Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Errors

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

    Errors

    Hi Everyone,

    I got these errors on the log while viewing a indicator on chart.Anyone help me to resolve these errors.

    NinjaScript Chart rendering failed. There is likely a problem with a chart object's OnRender method. D2D error = 'Index was out of range. Must be non-negative and less than the size of the collection. Parameter name: index'

    Default A direct X error has occurred while rendering the chart: HRESULT: [0x88990001], Module: [SharpDX.Direct2D1], ApiCode: [D2DERR_WRONG_STATE/WrongState], Message: Unknown

    NinjaScript Chart rendering failed. There is likely a problem with a chart object's OnRender method. D2D error = 'HRESULT: [0x88990001], Module: [SharpDX.Direct2D1], ApiCode: [D2DERR_WRONG_STATE/WrongState], Message: Unknown'

    #2
    Hello,

    Thanks for opening the thread.

    I would first advise to start troubleshooting by commenting out any NinjaTrader drawing tools so you can focus on your rendering code. If the issue goes away after commenting out the drawing tools, we will want to look into this further on our end, so please let us know if that is the case.

    NinjaScript Chart rendering failed. There is likely a problem with a chart object's OnRender method. D2D error = 'Index was out of range. Must be non-negative and less than the size of the collection. Parameter name: index'
    These referencing errors are similar to the referencing errors that can be received in OnBarUpdate(). When referencing Series objects in OnRender(), it is advised to use the GetValueAt() and IsValidDataPointAt() methods to properly reference the Series. This is advised because OnRender() and OnBarUpdate() are not synchronized and direct references would not be guaranteed.

    Default A direct X error has occurred while rendering the chart: HRESULT: [0x88990001], Module: [SharpDX.Direct2D1], ApiCode: [D2DERR_WRONG_STATE/WrongState], Message: Unknown

    NinjaScript Chart rendering failed. There is likely a problem with a chart object's OnRender method. D2D error = 'HRESULT: [0x88990001], Module: [SharpDX.Direct2D1], ApiCode: [D2DERR_WRONG_STATE/WrongState], Message: Unknown'
    These errors are related to DirectX programming errors where the Chart fails to render. They typically have to do with calling SharpDX methods out of order or improperly. I would advise to simplify and double check your rendering implementation to troubleshoot further.

    As these errors are to do with DirectX implementations through SharpDX, the MSDN resources for DirectX rendering may prove to be valuable resources for Development and debugging.

    Error codes: https://msdn.microsoft.com/en-us/lib...(v=vs.85).aspx

    DirectX programming guide: https://msdn.microsoft.com/en-us/lib...(v=vs.85).aspx

    Best practices for SharpDX rendering can be found here: http://ninjatrader.com/support/helpG...arpDXResources

    Please let me know if I may be of further assistance.
    Last edited by NinjaTrader_Jim; 08-17-2017, 08:22 AM.

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Geovanny Suaza, 02-11-2026, 06:32 PM
    0 responses
    572 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
    550 views
    1 like
    Last Post RFrosty
    by RFrosty
     
    Working...
    X