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

Error: CotData does not contain a definition for 'GetCotReportName'

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

    Error: CotData does not contain a definition for 'GetCotReportName'

    In NinjaTrader8.0.23.2 64 bits
    it appeared this error on a system indicator @COT
    I wander why it appeared.
    How can I fix it?

    @COT.cs:
    'NinjaTrader.NinjaScript.CotData' does not contain a definition for 'GetCotReportName'
    CS0117 Line 69 Column 16

    The offending line is
    if (CotData.GetCotReportName(Instrument.MasterInstrum ent.Name) == string.Empty)
    and the column 16 is at the GetCotReportName

    Thank you.
    G
    Attached Files
    Last edited by giogio1; 08-06-2022, 12:30 AM.

    #2
    Hello giogio1,

    Please update to the latest release of NinjaTrader, 8.0.26.1, and then please for the issue once more.

    Updates to NinjaTrader will contain the latest security updates and bug fixes, as well as new instruments and rollover dates.

    To update NinjaTrader
    • Shutdown all programs including NinjaTrader *important
    • Download NinjaTrader from the public link below
      Click here to download NinjaTrader
    • Double click the downloaded file to execute it
    • Follow the on screen instructions
    • Restart NinjaTrader
    Chelsea B.NinjaTrader Customer Service

    Comment


      #3
      Thank you for your response.
      I noticed that the templates of my 8.0.23.2 platform do not work on another computer where I have the 8.0.26.1 installed.
      The error I get in the 26 is "unable to load chart template: the file name.xml was either designed of an earlier version...or not formatted correctly".
      I am surprised of such incompatibility with older work,
      If I upgrade from 23 to 26 will I lose access to them?
      Best

      Comment


        #4
        Hello giogio1,

        This would depend on what was in the template.

        You may need to recreate the template.

        On the computer with 8.0.23.2, open charts for each template and apply each template. Save the workspace.
        Update to the 8.0.26.1. Then re-save each template. This will update them to the latest version.
        Now you can transfer them to a new computer with 8.0.26.1.
        Chelsea B.NinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by StockTrader88, 03-06-2021, 08:58 AM
        45 responses
        3,991 views
        3 likes
        Last Post johntraderuser2  
        Started by TAJTrades, Today, 09:46 AM
        0 responses
        6 views
        0 likes
        Last Post TAJTrades  
        Started by rhyminkevin, Yesterday, 04:58 PM
        5 responses
        62 views
        0 likes
        Last Post dp8282
        by dp8282
         
        Started by realblubb, Today, 09:28 AM
        0 responses
        8 views
        0 likes
        Last Post realblubb  
        Started by AaronKoRn, Yesterday, 09:49 PM
        1 response
        19 views
        0 likes
        Last Post Rikazkhan007  
        Working...
        X