I tried placing my partial class in the AddOn directory and it crashed my NT8.
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Using Classes with NT8
Collapse
X
-
Hello r3n3v,
Custom classes that do not inherit from NinjaTrader classes are fine in custom namespaces.
The Addon directory would be the approach place.
Partial classes can also be used. Below is a link to an example.
Explanation: I wrote a base class Indicator class that I'm using to inherit all my other indicators from. So this baseclass is defined as: namespace NinjaTrader.NinjaScript.Indicators.AssistedTrades { public class ATBaseIndicator: Indicator { ... } } And any other indicator is defined as: namespace NinjaTrader.NinjaScrChelsea B.NinjaTrader Customer Service
-
Hello r3n3v,
I'm not sure that I understand.
The PartialClasssesIndicatorExample file has examples of partial classes for Indicators, PartialMethodCallsCustomInidcatorrExample is an indicator that uses those partial classes.
Can you clarify how this is not an example of partial classes?Chelsea B.NinjaTrader Customer Service
Comment
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by SalmaTrader, 07-07-2026, 10:26 PM
|
0 responses
54 views
0 likes
|
Last Post
by SalmaTrader
07-07-2026, 10:26 PM
|
||
|
Started by CarlTrading, 07-05-2026, 01:16 PM
|
0 responses
25 views
0 likes
|
Last Post
by CarlTrading
07-05-2026, 01:16 PM
|
||
|
Started by CaptainJack, 06-17-2026, 10:32 AM
|
0 responses
17 views
0 likes
|
Last Post
by CaptainJack
06-17-2026, 10:32 AM
|
||
|
Started by kinfxhk, 06-17-2026, 04:15 AM
|
0 responses
23 views
0 likes
|
Last Post
by kinfxhk
06-17-2026, 04:15 AM
|
||
|
Started by kinfxhk, 06-17-2026, 04:06 AM
|
0 responses
24 views
0 likes
|
Last Post
by kinfxhk
06-17-2026, 04:06 AM
|
Comment