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

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

                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 bmartz, 03-12-2024, 06:12 AM
                  4 responses
                  31 views
                  0 likes
                  Last Post bmartz
                  by bmartz
                   
                  Started by Aviram Y, Today, 05:29 AM
                  4 responses
                  12 views
                  0 likes
                  Last Post Aviram Y  
                  Started by algospoke, 04-17-2024, 06:40 PM
                  3 responses
                  28 views
                  0 likes
                  Last Post NinjaTrader_Jesse  
                  Started by gentlebenthebear, Today, 01:30 AM
                  1 response
                  8 views
                  0 likes
                  Last Post NinjaTrader_Jesse  
                  Started by cls71, Today, 04:45 AM
                  1 response
                  7 views
                  0 likes
                  Last Post NinjaTrader_ChelseaB  
                  Working...
                  X