In trying to export an indicator I've created, I'm trying to determine the best approach because it depends on another class in a separate file.
I've done all of this in the standard Custom project. The class is a simple basic class having nothing to do with NinjaTrader.
I don't see a way to include code unless it's a special NinjaTrader component like an Indicator or Strategy or unless it's a DLL reference.
Do I need to put my class in a separate project and reference the DLL in order to get exporting to work?
2) Is it possible to create ninjascript objects, like indicators and strategies, in a separate DLL that is then referenced in NinjaTrader?
Is this do-able so long as our separate project references all of the necessary NinjaTrader DLLs including NinjaTrader.Vendor.dll? Then when
we deploy the DLL to the custom folder we just copy the main DLL and not the references because they are, theoretically, already referenced
by NinjaTrader?
What is the primary purpose of the NinjaTrader.Vendor.dll?
What is the recommended location from which to reference those DLLs? The custom/bin area in MyDocs? Or the NinjaTrader
installation folder in Program Files, C:\Program Files (x86)\NinjaTrader 8\bin\Custom\Backup ?
3) What if the dependencies are not just plain old C# classes but are say, extensions for the NT Instrument class?
I have a lot of extensions to NT classes which I use in indicators and strategies. How can I include these in an export of an
indicator? Can they be added to that separate project? That project would require a reference to NinjaTrader.Core which contains the Instrument class. Would that work? Is that sufficient, recommended?
4) If I'm creating multiple indicators which all depend on some common classes, what is the best approach?
I could have a common DLL that is used by multiple indicators, but if I export each indicator individually they'll each depend on the same DLL.
Will there be problems if the indicators are imported separately, with that same DLL added to each .zip file? Will their common dependency be handled gracefully without trying to add multiple copies of the DLL?
Or, would it be best to export all indicators in a single export package?
Thanks,
Comment