Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

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.
    Brandon H.NinjaTrader Customer Service

    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 adeelshahzad, Today, 03:54 AM
      5 responses
      32 views
      0 likes
      Last Post NinjaTrader_BrandonH  
      Started by stafe, 04-15-2024, 08:34 PM
      7 responses
      32 views
      0 likes
      Last Post NinjaTrader_ChelseaB  
      Started by merzo, 06-25-2023, 02:19 AM
      10 responses
      823 views
      1 like
      Last Post NinjaTrader_ChristopherJ  
      Started by frankthearm, Today, 09:08 AM
      5 responses
      20 views
      0 likes
      Last Post NinjaTrader_Clayton  
      Started by jeronymite, 04-12-2024, 04:26 PM
      3 responses
      43 views
      0 likes
      Last Post jeronymite  
      Working...
      X