Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Bug: Exporting strategy does not work with UserDefinedMethods
Collapse
X
-
Hello,
Do your indicators and strategies currently compile or do you have compile errors?
Also User Defined Methods are not exportable. To export this you will need to create a new indicator and move the methods over to the indicator to export the method.
Let me know if I can be of further assistance.BrettNinjaTrader Product Management
-
Hello,
Reason is if you export that file and then import it on another PC that may have had a custom User Defined Methods file it would be overwritten thus breaking other indicators that may have used this file as well.
In this case if you look to distribute your code these methods need to be included in your original NinjaScript file or they need to be included in a named indicator file if you want to keep them out of your indicator or strategy file.
If you just looking to keep a backup of your code use the backup feature instead, File->Utiliies->Backup and this will backup your UserDefinedMethods when you select to backup NinjaScript.
Let me know if I can be of further assistance.BrettNinjaTrader Product Management
Comment
-
It is correct that exporting this file would cause problems. But when compiling a strategy it should just use this file as an include!
I mean the whole purpose is to simplify class development. If I now have to copy and rename all classes when compiling a strategy it is even more work!
So just include this file in compiler settings, shouldn't be that hard...
Comment
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by Geovanny Suaza, 02-11-2026, 06:32 PM
|
0 responses
600 views
0 likes
|
Last Post
|
||
|
Started by Geovanny Suaza, 02-11-2026, 05:51 PM
|
0 responses
346 views
1 like
|
Last Post
|
||
|
Started by Mindset, 02-09-2026, 11:44 AM
|
0 responses
103 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
558 views
1 like
|
Last Post
|
||
|
Started by RFrosty, 01-28-2026, 06:49 PM
|
0 responses
558 views
1 like
|
Last Post
by RFrosty
01-28-2026, 06:49 PM
|

Comment