I looked around and found the log. It says:
1/28/2011 7:00:31 PM|2|4|Error compiling export sources: c:\Documents and Settings\MountainVoyageur\My Documents\NinjaTrader 7\bin\Custom\Indicator\RwbMA2.cs(100,7) : error CS0246: The type or namespace name 'Rwb' could not be found (are you missing a using directive or an assembly reference?) 1/28/2011 7:00:31 PM|2|4|Error compiling export sources: c:\Documents and Settings\MountainVoyageur\My Documents\NinjaTrader 7\bin\Custom\Indicator\RwbMA2.cs(1810,139) : error CS0246: The type or namespace name 'IndicatorType' could not be found (are you missing a using directive or an assembly reference?) 1/28/2011 7:00:31 PM|2|4|Error compiling export sources: c:\Documents and Settings\MountainVoyageur\My Documents\NinjaTrader 7\bin\Custom\Indicator\RwbMA2.cs(1810,302) : error CS0246: The type or namespace name 'SmoothType' could not be found (are you missing a using directive or an assembly reference?) 1/28/2011 7:00:31 PM|2|4|Error compiling export sources: c:\Documents and Settings\MountainVoyageur\My Documents\NinjaTrader 7\bin\Custom\Indicator\RwbMA2.cs(1810,848) : error CS0246: The type or namespace name 'IndicatorType' could not be found (are you missing a using directive or an assembly reference?) 1/28/2011 7:00:31 PM|2|4|Error compiling export sources: c:\Documents and Settings\MountainVoyageur\My Documents\NinjaTrader 7\bin\Custom\Indicator\RwbMA2.cs(1810,1011) : error CS0246: The type or namespace name 'SmoothType' could not be found (are you missing a using directive or an assembly reference?) 1/28/2011 7:00:31 PM|2|4|See Help Guide section 'Export Problems' (http://www.ninjatrader-support.com/HelpGuideV6/ExportProblems.html) for additional instructions
As to the errors -- as I said above, none exist in a hand compile. Responding to them specifically, in order:
- The type or namespace name 'Rwb' could not be found -- it is a namespace in a separate file RwbLibrary
- The type or namespace name 'IndicatorType' could not be found -- it is an enum in Rwb in a separate file RwbLibrary
- The type or namespace name 'SmoothType' could not be found -- it is an enum in Rwb in a separate file RwbLibrary
It would seem that the basic problem is that hand compiling finds the namespace Rwb, in the other file, just fine. Exporting fails to find it.
How do I fix that problem? What is the difference between the compile for export and compiling by hand?
--EV
P.S. as a hack to get going, one of the things I tried was taking the namespace out of the several files that use it, but now I have global namespace pollution problems / conflicts. I could obviously fix it with enough work, but let's start by understanding why I can compile fine by hand, but not for export.
I also tried manually adding the indicator with the missing information to the exports, but that did not help.
Comment