Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Chart Rendering Failed --??

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

    Chart Rendering Failed --??

    This is the first time I've seen this...no new code....been working fine without this problem a long time....




    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: The object was not in the correct state to process the method.


    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: The object was not in the correct state to process the method.

    #2
    Hello llanqui,

    May I confirm you are using 8.1.3.1?

    This often occurs with custom indicators that do rendering in OnRender() with improper logic (such as not re-creating brushes).

    Is this occurring with a specific indicator?

    If so, is this an indicator you have created or one you have imported?

    If this is an indicator you have created, what are the specific lines of code causing the error?

    (If you are uncertain you can comment out all code in OnRender() so the error stops, then uncomment code one line at a time until the error is reproduced. The last line uncommented is the likely line of code causing the error)
    Chelsea B.NinjaTrader Customer Service

    Comment


      #3
      It is my code. I'm not using Render.

      I don't know what line of code...there are many indicators...and no indication from Ninja what indicator or line of code is causing the problem.

      What I noticed was that when I change a custom button color on ChartTrader that the color of the button did not change and it seemed that further interaction with the chart was not possible. The color of the button did not change, but the code state of the button did,(on/off).

      It might have been that indicator.

      So, then I looked in the Log and Trace files. But neither told me a specific indicator or what line of code.

      This has only happened once in many hours on the chart.

      I'm at version 8.0.28.0 64-bit

      did not want to go to 8.1 because of the prior issues with no automatic login

      Comment


        #4
        Hello llanqui,

        You'll need to identify the specific line of code causing the error.

        If you are uncertain you can comment out all code in OnRender() so the error stops, then uncomment code one line at a time until the error is reproduced. The last line uncommented is the likely line of code causing the error.
        Chelsea B.NinjaTrader Customer Service

        Comment


          #5
          there is no code in "on render"

          Comment


            #6
            However I do use the Squarep, Dotp, etc...the larger draw versios of dot and square

            Comment


              #7
              Hello llanqui,

              These would have to be custom rendered in OnRender().

              Below is a link to an example of an indicator on the User App Share that custom renders larger shapes.
              These are duplicate chart markers to what comes with the platform except you can change the size of them. The existing chart markers will remain as well. This will allow you to create custom sized chart markers that you can create and save as default so that you can draw the markers as needed to […]
              Chelsea B.NinjaTrader Customer Service

              Comment


                #8
                yes, probably one of those failed the render...but it has only happened once

                though, had I been in a live trade it would have not been good

                Comment

                Latest Posts

                Collapse

                Topics Statistics Last Post
                Started by Geovanny Suaza, 02-11-2026, 06:32 PM
                0 responses
                602 views
                0 likes
                Last Post Geovanny Suaza  
                Started by Geovanny Suaza, 02-11-2026, 05:51 PM
                0 responses
                347 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
                559 views
                1 like
                Last Post Geovanny Suaza  
                Started by RFrosty, 01-28-2026, 06:49 PM
                0 responses
                558 views
                1 like
                Last Post RFrosty
                by RFrosty
                 
                Working...
                X