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 NullPointStrategies, Yesterday, 05:17 AM
          0 responses
          54 views
          0 likes
          Last Post NullPointStrategies  
          Started by argusthome, 03-08-2026, 10:06 AM
          0 responses
          131 views
          0 likes
          Last Post argusthome  
          Started by NabilKhattabi, 03-06-2026, 11:18 AM
          0 responses
          73 views
          0 likes
          Last Post NabilKhattabi  
          Started by Deep42, 03-06-2026, 12:28 AM
          0 responses
          44 views
          0 likes
          Last Post Deep42
          by Deep42
           
          Started by TheRealMorford, 03-05-2026, 06:15 PM
          0 responses
          49 views
          0 likes
          Last Post TheRealMorford  
          Working...
          X