View Full Version : Creating new objects?
08-20-2007, 01:48 PM
Is there a way to create and compile your own objects within NinjaTrader so that it's not a subclass of either the Indicator or the Strategy class?
08-20-2007, 01:51 PM
Yes you can, although this is outside the scope of what we provide support for.
Open any custom indicator and create your class in that file. Just declare your class outside the scope of the indicator partial class.
08-20-2007, 03:54 PM
Thank you Ray, I understand. I will play around with it then.
08-20-2007, 06:36 PM
From an architectural level, can there be a UserDefinedMethods class that both the Indicators and the Strategy inherit from? I believe I know the answer already, but I'd like some confirmation.
08-20-2007, 10:49 PM
Unfortunately no, since they are a partial class declaration of either Indicator or Strategy.