Thanx,
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Callint method in another indicator
Collapse
X
-
Callint method in another indicator
I would like to reuse some code already written in another indicator. Can I call a method in another indicator? If so, how do I setup the calling structure? I tried NinjaTrader.Indicator.myIndicator.myMethod() but I get errors related to 'nonstatic reference' object.
Thanx,Last edited by monpere; 04-15-2008, 05:26 PM.Tags: None
-
Calling method in another indicator
Thanks, that worked, but I can't use 'Print' inside the 'public static' method. How do I print to the output window from inside a static method.
Originally posted by NinjaTrader_Ray View PostTry making the method "public static" instead of public etc...
Comment
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by Geovanny Suaza, 02-11-2026, 06:32 PM
|
0 responses
575 views
0 likes
|
Last Post
|
||
|
Started by Geovanny Suaza, 02-11-2026, 05:51 PM
|
0 responses
333 views
1 like
|
Last Post
|
||
|
Started by Mindset, 02-09-2026, 11:44 AM
|
0 responses
101 views
0 likes
|
Last Post
by Mindset
02-09-2026, 11:44 AM
|
||
|
Started by Geovanny Suaza, 02-02-2026, 12:30 PM
|
0 responses
553 views
1 like
|
Last Post
|
||
|
Started by RFrosty, 01-28-2026, 06:49 PM
|
0 responses
551 views
1 like
|
Last Post
by RFrosty
01-28-2026, 06:49 PM
|

Comment