Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Strategy want run.

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

    Strategy want run.

    Hello . I have automated strategy which I can back test and its runs well on SIM but when I connect to real account its goes off and I getting this ___ The object was not in correct state .
    How can I fix this ?
    Attached Files

    #2
    Hello vit007,

    The error is a SharpDX error which is rendering in OnRender().

    Does the strategy override OnRender()?

    Is the strategy adding an indicator with AddChartIndicator() that renders in OnRender()?

    Are you reproducing the error with the latest release 8.0.27.1?
    Chelsea B.NinjaTrader Customer Service

    Comment


      #3
      Looks like the strategy goes off when its time to execute order , and its will take order on SIM but not on live account . were should I look for a solution . ??

      Comment


        #4
        Hello vit007,

        For SharpDX errors, look for logical errors in OnRender().

        Debug the script by using prints and / or comments and find the exact line of code causing the error.

        Below is a link to a forum post that demonstrates using prints to understand behavior.
        Chelsea B.NinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by Hwop38, 05-04-2026, 07:02 PM
        0 responses
        176 views
        0 likes
        Last Post Hwop38
        by Hwop38
         
        Started by CaptainJack, 04-24-2026, 11:07 PM
        0 responses
        331 views
        0 likes
        Last Post CaptainJack  
        Started by Mindset, 04-21-2026, 06:46 AM
        0 responses
        254 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Started by M4ndoo, 04-20-2026, 05:21 PM
        0 responses
        356 views
        0 likes
        Last Post M4ndoo
        by M4ndoo
         
        Started by M4ndoo, 04-19-2026, 05:54 PM
        0 responses
        184 views
        0 likes
        Last Post M4ndoo
        by M4ndoo
         
        Working...
        X