Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Compilation error: The type or namespace name 'Data' does not exist...

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

    Compilation error: The type or namespace name 'Data' does not exist...

    Hello,

    I'm finally picking up again after the FXCM/Gain Capital transition. After a minor adjustment to my User Defined Method to handle lot sizing - which literally just involved adding some PrintWithTimeStamp commands to validate calculations - my strategies will not compile.

    The specific error message is as follows:

    NinjaScript File: Forex_DataDataSet.Designer.cs
    Error: The type or namespace name 'Data' does not exist in the namespace 'System' (are you missing an assembly reference?)
    Code: CS0234 - this points me to something about 3rd party DLLs, which does not appear to be pertinent.

    I'm running NT7 on Windows 10, if that means anything.

    I have not yet tried an uninstall/reinstall, and am hoping to avoid jumping through those particular hoops if possible. To my knowledge, I didn't change anything besides the account connections.

    Thank you.

    #2
    Hello Uglyhack,

    Thank you for your note.

    At the top of the file, under Using Declarations, can you confirm you have the following using reference?

    Code:
    using NinjaTrader.Data;
    I look forward to your reply.
    Alan P.NinjaTrader Customer Service

    Comment


      #3
      Hello Alan,

      Yes, all of my strategies have this.

      Comment


        #4
        Hello UglyHack,

        Without the files I'm unable to test on my end.

        If you'd like to send an email to platformsupport[at]ninjatrader[dot]com with Attn: Alan P in the Subject line. Also within the email please include a link to this thread, and attach the file which you can find in My Documents>NinjaTrader7>Bin>Custom>Indicator. UsderDefinedMethods.cs.

        I look forward to your reply.
        Alan P.NinjaTrader Customer Service

        Comment


          #5
          Resolution

          Resolution notes for anyone else trying to Google this:

          The problem was caused by compiler errors in the NT7 custom assembly. The offending script had to be removed from the assembly before the system would compile correctly.

          If you're searching for an easy do-it-yourself type of answer - it's probably best to ping support for this one.

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by jclose, Today, 09:37 PM
          0 responses
          4 views
          0 likes
          Last Post jclose
          by jclose
           
          Started by WeyldFalcon, 08-07-2020, 06:13 AM
          10 responses
          1,413 views
          0 likes
          Last Post Traderontheroad  
          Started by firefoxforum12, Today, 08:53 PM
          0 responses
          10 views
          0 likes
          Last Post firefoxforum12  
          Started by stafe, Today, 08:34 PM
          0 responses
          10 views
          0 likes
          Last Post stafe
          by stafe
           
          Started by sastrades, 01-31-2024, 10:19 PM
          11 responses
          169 views
          0 likes
          Last Post NinjaTrader_Manfred  
          Working...
          X