Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Null Reference Exeption on RenderTrades

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

    Null Reference Exeption on RenderTrades

    Hi,
    I just got this message:

    2021-05-03 14:20:48:507 Gui.Chart.Direct2DForm.RenderBackAll.ERROR: error on rendering background for 'NinjaTrader.NinjaScript.Strategies.KWBBTimeFrames .KWBBTimeFrameV210503' System.NullReferenceException: Object reference not set to an instance of an object.
    at NinjaTrader.Gui.Chart.Direct2DForm.RenderBackAll(R enderTarget renderTarget)
    2021-05-03 14:20:48:521 ERROR: Chart style 'Candlestick': Error on calling 'RenderTrades' method: System.NullReferenceException: Object reference not set to an instance of an object. at NinjaTrader.Gui.Chart.ChartControl.<GetStrategies> d__443.MoveNext() at NinjaTrader.NinjaScript.ChartStyles.ChartStyle.Ren derTrades(ChartControl chartControl, ChartScale chartScale, ChartBars chartBars) at NinjaTrader.NinjaScript.ChartStyles.ChartStyle.Ren der(RenderTarget pRenderTarget, ChartControl chartControl, ChartScale chartScale, ChartBars chartBars)

    This comes from core NT. I thought you might be interessted. The chart which the strategy runs on looks wired as you can see in the attachment.
    Thanks,
    Klaus
    Attached Files

    #2
    Hello klaus w,

    Thank you for your post.

    Please write into scriptingsupport[AT]ninjatrader.com and provide us with your Log and Trace files so we may investigate this further. In the email title, please 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 response so I may investigate this matter further.
    • Open your NinjaTrader folder under, "Documents" (sometimes called, "My Documents")
    • Right click on the 'log' and 'trace' folders and select Send To&gt; Compressed (zipped) Folder.
    • Send the 2 compressed folders as attachments to this email.
    • Once complete, you can delete these compressed folders.
    Also, please answer the following.
    • Was the KWBBTimeFrames strategy developed by you or was it made by a 3rd party developer?
    • Please provide the entire version number of NinjaTrader that you are using. This can be found under Help -> About (Example: 7.0.1000.? or 8.0.?.?)
    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
      Hi Brandon,
      I just send you the requested information. The script is developed by me and I am using the latest version of NT.
      Thanks,
      Klaus

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by argusthome, 03-08-2026, 10:06 AM
      0 responses
      71 views
      0 likes
      Last Post argusthome  
      Started by NabilKhattabi, 03-06-2026, 11:18 AM
      0 responses
      42 views
      0 likes
      Last Post NabilKhattabi  
      Started by Deep42, 03-06-2026, 12:28 AM
      0 responses
      25 views
      0 likes
      Last Post Deep42
      by Deep42
       
      Started by TheRealMorford, 03-05-2026, 06:15 PM
      0 responses
      28 views
      0 likes
      Last Post TheRealMorford  
      Started by Mindset, 02-28-2026, 06:16 AM
      0 responses
      56 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Working...
      X