![]() |
This website will be down for maintenance from Friday May 24th at 6PM MDT until Saturday May 25th at 11AM MDT. We apologize for the inconvenience. If you need assistance during this time, please email sales@ninjatrader.com
|
|||||||
| General Programming General NinjaScript programming questions. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Senior Member
Join Date: Jun 2007
Posts: 112
Thanks: 0
Thanked 0 times in 0 posts
|
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?
|
|
|
|
|
|
#2 |
|
Administrator
Join Date: Nov 2004
Location: Denver, CO, USA
Posts: 11,163
Thanks: 6
Thanked 45 times in 32 posts
|
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.
Ray
NinjaTrader Customer Service |
|
|
|
|
|
#3 |
|
Senior Member
Join Date: Jun 2007
Posts: 112
Thanks: 0
Thanked 0 times in 0 posts
|
Thank you Ray, I understand. I will play around with it then.
Thanks |
|
|
|
|
|
#4 |
|
Senior Member
Join Date: Jun 2007
Posts: 112
Thanks: 0
Thanked 0 times in 0 posts
|
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.
Thanks |
|
|
|
|
|
#5 |
|
Administrator
Join Date: Mar 2005
Location: Bamberg, Germany
Posts: 9,994
Thanks: 0
Thanked 6 times in 6 posts
|
Unfortunately no, since they are a partial class declaration of either Indicator or Strategy.
Dierk
NinjaTrader Customer Service |
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Drawing objects and memory | mazachan | General Programming | 2 | 08-16-2007 06:58 PM |
| Drawing Objects Disappear with Reload NinjaScript | Bruce_Medford_OR | Charting | 5 | 05-31-2007 09:07 AM |
| Indicator disappears after Remove All Draw Objects | rtrader | General Programming | 3 | 04-13-2007 06:23 AM |
| Positioning of Manually Drawn Objects | whitmark | Charting | 1 | 03-27-2007 05:59 AM |
| Creating a Setup | Albenus | Automated Trading | 1 | 08-13-2006 06:35 AM |