The problem only happens on the obfuscated version. The unobfuscated version works fine. Does that yield any clues?
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Assembly could not be exported.
Collapse
X
-
Hi Jesse,
The problem only happens on the obfuscated version. The unobfuscated version works fine. Does that yield any clues?Last edited by iantriestrading; 11-26-2024, 10:27 AM.
-
-
Hello iantriestrading,
That would be unlikely, but we won't know until you find which part of the code is having a problem. Without knowing what specific line of code is failing it would just be a guess at what may be happening. The best way to trace errors is to first find the part of the code that is having a problem so we have context on how to troubleshoot.
Comment
-
Comment
-
Hello iantriestrading,
Technically that is possible but is frowned upon in C# naming guidelines and is not permitted when using the tools of NinjaTrader to create the script. Your strategy failed in OnStateChange, you may be able to add some prints into OnStateChange between your lines of code to get a general idea of which line, the alternative is to comment out the code and then figure out which line is required to see the problem.
Comment
-
I added many prints inside OnStateChange and each state inside it. None of them show in output/logs. It's like OnStateChange couldn't run at all.
Thanks for the heads up about the naming convention. I'm going to remove all underscores.
Comment
-
Jesse, I got a bit fed up with my inability to figure things out, so I just created internal-only versions of my custom indicators and have them bundled in the strategy DLL. No more errors.
Sending to vendor team for QA, finally.
Comment
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by Geovanny Suaza, 02-11-2026, 06:32 PM
|
0 responses
619 views
0 likes
|
Last Post
|
||
|
Started by Geovanny Suaza, 02-11-2026, 05:51 PM
|
0 responses
359 views
1 like
|
Last Post
|
||
|
Started by Mindset, 02-09-2026, 11:44 AM
|
0 responses
105 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
562 views
1 like
|
Last Post
|
||
|
Started by RFrosty, 01-28-2026, 06:49 PM
|
0 responses
566 views
1 like
|
Last Post
by RFrosty
01-28-2026, 06:49 PM
|

Comment