![]() |
|
|||||||
| General Programming General NinjaScript programming questions. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#16 | |
|
Senior Member
Join Date: Apr 2010
Posts: 125
Thanks: 18
Thanked 3 times in 3 posts
|
Quote:
methods from the Indicator class partial class Indicator { public bool MyMethod() { // do something } } with code outside the class I just create an object to reference them? I was thinking public struct MyClass { public Indicator indicator; // create object if ( indicator.MyMethod() == true ) // do something } |
|
|
|
|
|
|
#17 |
|
NinjaTrader Customer Service
Join Date: Aug 2011
Location: Denver, CO, USA
Posts: 2,895
Thanks: 241
Thanked 375 times in 365 posts
|
ij001,
I am happy to assist you. That looks correct other than you will want to instantiate your object. public Indicator indicator = new Indicator(); Here is a more advanced example you may use to glean some knowledge from : http://www.ninjatrader.com/support/f...d=4&linkid=535 Please let me know if I may assist further.
Adam P.
NinjaTrader Customer Service |
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Best practice for programming efficient indicators for the NT Strategy Analyzer? | poseidon_sthlm | Indicator Development | 12 | 01-24-2013 03:00 AM |
| Visual Programming Plugin for NT - Seeking beta testers | Jeremytang | NinjaScript File Sharing Discussion | 0 | 02-24-2012 08:38 AM |
| Porting StrategyDesk Programming Code to NT | borland | General Programming | 3 | 09-20-2009 02:49 PM |
| NT object model | astrolobe | General Programming | 1 | 04-01-2009 07:58 AM |
| Need Help Programming Custom Indicator from TS to NT | stevestrading | Indicator Development | 4 | 06-20-2007 04:31 PM |