• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

The type or namespace name 'UniversalBase' could not be found

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

    The type or namespace name 'UniversalBase' could not be found

    @UniversalOptimizer.cs The type or namespace name 'UniversalBase' could not be found (are you missing a using directive or an assembly reference?) CS0246 1041 34
    I get this strange error, how can I fix this? I do not understand what could be causing it. I haven't modified @UniversalOptimizer.cs

    It is preventing me from compiling my other sources.(this is the only error)

    it refers to this line

    public sealed class Universal : UniversalBase

    #2
    In this particular case, the 'UnversalOptimizer.cs' file needs to be removed. Follow these steps:
    • Open Windows File Explorer (hotkey = Windows key + E)
    • Navigate to Documents > NinjaTrader 8 > bin > Custom > Optimizers folder
    • Delete '@UniversalOptimizer.cs'
    • In NinjaTrader, recompile
    Patrick G.NinjaTrader Customer Service

    Comment


      #3
      ok, will do - so this is a useless file?


      I don't need to optimize anything if that matters

      Comment


        #4
        It was inadvertently included in the 8.0.17.0 installer for a short time. In the future, it may be included in the installation without causing compile errors.
        Patrick G.NinjaTrader Customer Service

        Comment


          #5
          where can I download older versions of NT8? whatever was current around Christmas? or early january

          Comment


            #6
            We do not recommend using an older version of NinjaTrader. The current version is 8.0.17.2 and if any issues occur with this version, we should troubleshoot that.

            You can find the previously supported version on our website. Enter your email on the main page, select 'NinjaTrader 8' from the drop down list, then look for the 'prior version' link.
            Patrick G.NinjaTrader Customer Service

            Comment


              #7
              is it safe to delete @PathTool.cs it also has this problem and @DrawingToolTile.cs
              Last edited by NinjaCustomer; 02-22-2019, 12:21 PM.

              Comment


                #8
                Please include a screenshot of the actual compile errors from the NinjaScript Editor
                Patrick G.NinjaTrader Customer Service

                Comment


                  #9
                  they are gone now since I deleted those 3 files. They are the only 3 files that gave problems.

                  Comment


                    #10
                    The Namespace "UniversalBase" came back when I upgraded to the latest version of NinjaTrader Version 8.0.17.2 64-bit this week.
                    I removed it so I could compile after searching for the problem and finding this thread.
                    Is that still the recommend fix?

                    Thanks

                    Comment


                      #11
                      Yes, that should be fine. There was a brief time during which the public installer included some files still in development, so anyone experiencing this issue must have downloaded 8.0.17.0 during that time. Removal of the files is the solutions.
                      Patrick G.NinjaTrader Customer Service

                      Comment


                        #12
                        Thanks PatrickG

                        Comment

                        Latest Posts

                        Collapse

                        Topics Statistics Last Post
                        Started by aslane, Today, 02:31 PM
                        0 responses
                        8 views
                        0 likes
                        Last Post aslane
                        by aslane
                         
                        Started by stoner, 10-16-2019, 01:38 PM
                        5 responses
                        47 views
                        0 likes
                        Last Post sledge
                        by sledge
                         
                        Started by music_p13, Today, 12:04 PM
                        1 response
                        23 views
                        0 likes
                        Last Post NinjaTrader_Kate  
                        Started by zaro33, Today, 10:55 AM
                        1 response
                        7 views
                        0 likes
                        Last Post NinjaTrader_Heath  
                        Started by itrader46, Today, 10:16 AM
                        5 responses
                        11 views
                        0 likes
                        Last Post NinjaTrader_Jesse  
                        Working...
                        X