Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

DeafultFillType

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

    DeafultFillType

    I have an indicator that was working fine in NT6 beta ver 6, but now in beta 7 I'm getting an error that says:

    The namespace 'NinjaTrader.Strategy' already contains a definition for 'DefaultFillType'

    The error occurs in the following line:


    public
    class DefaultFillType : FillType

    Any ideas on a fix?



    Thanks,

    Ben

    #2
    imported post

    Have you added a class with that name in a new file? Problem is that there is a file that hasthat has DefaultFillType as a class name in addition to the @DefaultFillType.cs located under /Custom/Types. I suspect you might even have this file duplicated under /Indicator folder?

    Ray
    RayNinjaTrader Customer Service

    Comment


      #3
      imported post

      I have 2 files with very similar names in my /bin/custom/type folder. these files are:

      @DefaultFillType.cs

      @DefaultlFillType.cs <<-- notice the extra "l' after "Default"

      Are both of these files supposed to be there?

      Also, I now get 2 error messages (the same one as before, just 2 of them now).

      When I double click on one of the errors at the bottom of the edit window for my indicator, the edit windows changes to the file: @DefaultFillType.cs

      If I click on the 2nd error, the edit windows changes to the file: @DefaultlFillType.cs

      As far as I can tell, these 2 files ( @DefaultFillType.cs and @DefaultlFillType.cs ) are the only files that have the term DefaultFillType in them. My indicator file does NOT have this word in it.

      Thanks,
      Ben

      Comment


        #4
        imported post

        Strange.

        Delete @DefaultlFillType.cs <<-- notice the extra "l' after "Default"

        Ray
        RayNinjaTrader Customer Service

        Comment


          #5
          imported post

          I think I tried that last night.After deleting the file, when I restarted NT6 the installation routine ran as if I were a new user of NT and it built the NT6 folders under "My Documents". The result of this was that the @DefaultlFillType.cs file got rebuilt.

          Ben

          Comment


            #6
            imported post

            Delete the one with @DefaultFillType.cs


            RayNinjaTrader Customer Service

            Comment


              #7
              imported post

              OK, I deleted @DefaultFillType.cs and left @DefaultlFillType.cs in the folder.

              Now I get numerous errors from a different indicator totally unrealted to my indicator file. (see attatched)

              What gives? why is this other file creating problems for MY file?

              Ben
              Attached Files

              Comment


                #8
                imported post

                I suggest starting from scratch since likely the installation now is screwed up:
                - copy your current <My documents>\NinjaTrader 6 folder to save it to a different name
                - uninstall NT6
                - manually remove the <My documents>\NinjaTrader 6 folder
                - reinstall NT6
                - copy any file you need from your saved folder to freshly created <My documents>\NinjaTrader 6 folder, but do not (!!) copy any file starting with "@"
                - restart NT
                DierkNinjaTrader Customer Service

                Comment


                  #9
                  imported post

                  I had the same problem after updating from NT6 Beta 7 to NT6 Beta 8 and I was able to solve it:

                  - go to [your own files]\NinjaTrader 6\bin\Custom\Type
                  - remove the older file @DefaultFillType.cs
                  - rename the newer file @DefaultlFillType.cs to @DefaultFillType.cs

                  without restarting NT6 everything was fine again.

                  Nathamus

                  Comment

                  Latest Posts

                  Collapse

                  Topics Statistics Last Post
                  Started by kuxosude, Today, 02:17 AM
                  0 responses
                  2 views
                  0 likes
                  Last Post kuxosude  
                  Started by PanicTrades, 05-10-2020, 08:45 AM
                  6 responses
                  69 views
                  0 likes
                  Last Post damon_achey  
                  Started by soon123, Yesterday, 11:44 PM
                  0 responses
                  9 views
                  0 likes
                  Last Post soon123
                  by soon123
                   
                  Started by Hyper, Yesterday, 11:10 PM
                  0 responses
                  5 views
                  0 likes
                  Last Post Hyper
                  by Hyper
                   
                  Started by soon123, Yesterday, 10:20 PM
                  0 responses
                  5 views
                  0 likes
                  Last Post soon123
                  by soon123
                   
                  Working...
                  X