So it was like this:
NinjaTrader.BaseIndicator -> NinjaTrader.Indicator
public class FooIndicator : BaseIndicator
Simple but pretty ugly. My concern was that I wanted to be sure that BaseIndicator and also the faux indicator were being included during packaging. In a perfect world I would want to use utility or helper classes with methods which I can call from anywhere without code replication.
A good example is a function which determines whether or not an underlying symbol is a forex pair. What I need to do is to pass an instance of my chart or I guess the owner and then pass back whether or not it's a forex symbol. So two issues:
1) Whatever I use I want to make sure will be packaged if I create a zip file from Ninja.
2) I need to be able to pass instances of 'something' so that my method can pick up some context (i.e. symbol, interval, Time, etc.).
Perhaps you guys have already provided a mechanism to plug in external functionality. A regular DLL is possible of course and I have done that in the past. Or I could perhaps just develop in VS and add the classes I need there. My concern there is that those classes may be ignored by the NinjaScript editor/compiler.
I looked at PlugIns but I'm not certain they are designed for such a purpose. Any input/suggestion as to create a flexible and supportable architecture would be appreciated. I'll be porting a lot of code over and want to take this opportunity to refurbish some of the old ugliness.
Thanks in advance.
Comment