Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
UDMs ?
Collapse
X
-
-
Hello spottysallrite,
Thanks for your post.
NinjaTrader 7 used a "UserDefinedMethods" class to define methods to be used across multiple NinjaScript indicators or strategies. In NinjaTrader 8, these pre-built partial classes have been removed to reduce a number of issues which could result from users sharing their UserDefinedMethods.cs files, or overwriting their existing files with copies from a new vendor. Partial classes are now best built manually and saved in the C:\Users\<user>\Documents\NinjaTrader 8\bin\Custom\AddOns folder.
The 'MySharedMethods' reference sample shared by my colleague Chelsea on the forum thread linked below demonstrates how you could set up custom methods that could be accessed by custom indicators or strategies.
https://forum.ninjatrader.com/forum/...956#post733956
You could find information about partial classes and sample code on the 'Implementation changes overview' section of this help guide page below.
https://ninjatrader.com/support/helpGuides/nt8/index.html?code_breaking_changes.htm
Information about creating partial classes in C# could also be found on the forum thread linked below.
https://ninjatrader.com/support/foru...119#post758119<span class="name">Brandon H.</span><span class="title">NinjaTrader Customer Service</span><iframe name="sig" id="sigFrame" src="/support/forum/core/clientscript/Signature/signature.php" frameborder="0" border="0" cellspacing="0" style="border-style: none;width: 100%; height: 120px;"></iframe>
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by DannyP96, 05-18-2026, 02:38 PM
|
1 response
78 views
0 likes
|
Last Post
|
||
|
Started by CarlTrading, 05-11-2026, 05:56 AM
|
0 responses
131 views
0 likes
|
Last Post
by CarlTrading
05-11-2026, 05:56 AM
|
||
|
Started by CarlTrading, 05-10-2026, 08:12 PM
|
0 responses
79 views
0 likes
|
Last Post
by CarlTrading
05-10-2026, 08:12 PM
|
||
|
Started by Hwop38, 05-04-2026, 07:02 PM
|
0 responses
242 views
0 likes
|
Last Post
by Hwop38
05-04-2026, 07:02 PM
|
||
|
Started by Mindset, 04-21-2026, 06:46 AM
|
0 responses
330 views
0 likes
|
Last Post
by Mindset
04-21-2026, 06:46 AM
|

Comment