Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Error In Code-Enter Trades On Replay but Not Live

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

    Error In Code-Enter Trades On Replay but Not Live

    2023-07-20 09:22:17:182|0|4|Unhandled exception: Unable to cast object of type 'System.Object' to type 'NinjaTrader.Gui.NinjaScript.StrategyRenderBase'.

    I have came across this error when I am now trying to run my code. Is this issue big enough to now allow the system to enter a trade when the conditions are met?
    My system has worked on market replay as intended but the last day or two it never signaled. Is this just an issue with how something is being displayed on the chart? Where would be the place to use the print function to see what is possibly causing the issue?

    As typing this I also did realize this current code has the ability to use multi data series. If I do have real-time data incoming to ES and NQ which are coded in but I do not have live data for EMD which is the third data series I can use, is this where the issue could be coming from for the strategy not processing the trade logic? The other series are not pulling any data for trades for ES at this time.

    #2
    Hello durdcash,

    Thanks for your post.

    Please write in to support[at]ninjatrader[dot]com and send us your log and trace files so that we may investigate this error message. In the subject of the email, include "ATTN: BrandonH" and in the body of the email, include a link to this forum thread.

    Follow the steps below to manually attach your log and trace files to your email so I may look into this further.
    • Open your NinjaTrader folder under, "Documents" (sometimes called, "My Documents")
    • Right click on the 'log' and 'trace' folders and select Send To> Compressed (zipped) Folder.
    • Send the 2 compressed folders as attachments to this email.
    • Once complete, you can delete these compressed folders.
    I look forward to assisting further.​
    <span class="name">Brandon H.</span><span class="title">NinjaTrader Customer Service</span><iframe name="sig" id="sigFrame" src="/support/forum/core/clientscript/Signature/signature.php" frameborder="0" border="0" cellspacing="0" style="border-style: none;width: 100%; height: 120px;"></iframe>

    Comment


      #3
      NinjaTrader_BrandonH I sent an email with the requested information. Let me know if it was received

      Comment


        #4
        Hello durdcash,

        Thanks for your note.

        Your email has been received.

        Please check your email for my reply to your inquiry.
        <span class="name">Brandon H.</span><span class="title">NinjaTrader Customer Service</span><iframe name="sig" id="sigFrame" src="/support/forum/core/clientscript/Signature/signature.php" frameborder="0" border="0" cellspacing="0" style="border-style: none;width: 100%; height: 120px;"></iframe>

        Comment


          #5
          NinjaTrader_BrandonH system took a live trade just now. Glad to find out it was just the expired contracts causing the issue! thanks for the help!

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by Mindset, 04-21-2026, 06:46 AM
          0 responses
          87 views
          0 likes
          Last Post Mindset
          by Mindset
           
          Started by M4ndoo, 04-20-2026, 05:21 PM
          0 responses
          132 views
          0 likes
          Last Post M4ndoo
          by M4ndoo
           
          Started by M4ndoo, 04-19-2026, 05:54 PM
          0 responses
          65 views
          0 likes
          Last Post M4ndoo
          by M4ndoo
           
          Started by cmoran13, 04-16-2026, 01:02 PM
          0 responses
          118 views
          0 likes
          Last Post cmoran13  
          Started by PaulMohn, 04-10-2026, 11:11 AM
          0 responses
          67 views
          0 likes
          Last Post PaulMohn  
          Working...
          X