![]() |
This website will be down for maintenance from Friday May 24th at 6PM MDT until Sunday May 26th at 12PM MDT. We apologize for the inconvenience. If you need assistance during this time, please email sales@ninjatrader.com
|
|||||||
| Strategy Development Support for the development of custom automated trading strategies using NinjaScript. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Senior Member
Join Date: May 2012
Posts: 173
Thanks: 14
Thanked 7 times in 7 posts
|
Hi there,
I have written quite a bit of order management software, that I would like to package nicely so that it can be reused in various trading strategies. Can I package it in 1 class, derived from Strategy, and then derive my actual strategy classes from it? (I am actually trying to do that, but for whatever reason it doesn't seem to work at all) public class TradeManager : Strategy { // ... this class needs access to pretty much anything a regular strategy // needs access to, like High / Low / CurrentBar / Add() / ... } public class MyStrategy : TradeManager { // ...this class will implement the trading strategy, and call any methods from TradeManager for managing positions } Or what would you suggest ? |
|
|
|
|
|
#2 |
|
NinjaTrader Customer Service
Join Date: Dec 2011
Location: India
Posts: 3,286
Thanks: 580
Thanked 546 times in 541 posts
|
Hello dom993,
This is more of a C# query and beyond what we could support. You can however look into this post for further reference http://www.ninjatrader.com/support/f...04&postcount=1
Joydeep M.
NinjaTrader Customer Service |
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| 6.5 to 7.0 software transition | Praxxis | Miscellaneous Support | 1 | 05-25-2010 01:17 PM |
| Software Repair . | T2020 | Suggestions And Feedback | 7 | 05-25-2009 01:54 AM |
| Custom Software | bigbopper | Charting | 3 | 01-07-2009 06:34 AM |
| Structuring common code - Possible to use DLL from Visual Studio? | cunparis | General Programming | 2 | 10-26-2008 07:59 AM |
| Software Improvements | sully | Suggestions And Feedback | 0 | 12-08-2004 02:21 PM |