View Full Version : DeafultFillType
bmaltz
02-11-2007, 02:44 PM
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
NinjaTrader_Ray
02-11-2007, 02:55 PM
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
bmaltz
02-11-2007, 03:25 PM
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
NinjaTrader_Ray
02-11-2007, 04:23 PM
Strange.
Delete @DefaultlFillType.cs <<-- notice the extra "l' after "Default"
Ray
bmaltz
02-12-2007, 09:43 AM
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
NinjaTrader_Ray
02-12-2007, 10:31 AM
Delete the one with @DefaultFillType.cs
bmaltz
02-12-2007, 04:47 PM
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
NinjaTrader_Dierk
02-13-2007, 01:16 AM
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
Nathamus
03-04-2007, 08:33 PM
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