I am currently using NT7.0.1000.10, because I read the warning about Interactive Brokers.
I have created a custom indicator. It's very simple, just a modification of StdDev that divides by n-1 instead of n. I use it in a custom strategy. Everything works fine on my development machine that has access to all the source.
I export the strategy as a compiled assembly, which forces the inclusion of my custom indicator. I import the assembly on another machine, which doesn't possess all the source code. This all works fine.
Then I run a backtest on the second machine, which appears to work OK but a message appears telling me words to the effect of:
"Unable to create instance of indicator 'NinjaTrader.Indicator.SMA'. Most likely the implementation no longer exists, or there is no default constructor defined, or the default constructor does not work correctly: System.TypeInitializationException: The type initializer for 'NinjaTrader.Indicator.Indicator' threw an exception. ---> System.TypeLoadException: Could not load type 'NinjaTrader.Indicator.GuruStdDev' from assembly 'GuruTrader, Version=1.0.0.4,"
1. Can anyone suggest what's going wrong?
2. The exported ZIP file includes the source for my custom indicator. Whilst this is a not a problem in this case, it might be in the future should I develop a particularly cunning custom indicator. Is there any way around this potential problem?
Comment