Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Assembly could not be exported.

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    #31
    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.

    Comment


      #32
      Hello iantriestrading,

      I understand that but the directions would be the same, to figure out why that's happening we need to know what specific code is the problem. To find that you need to use the comment method to isolate the code causing the issue.

      Comment


        #33
        Hi Jesse,

        So it couldn't be caused by a problem in the obfuscation?

        Comment


          #34
          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


            #35
            Is it allowed for indicator class names to contain underscores like "MyBrand_IndicatorName" ?

            Comment


              #36
              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


                #37
                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


                  #38
                  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 Geovanny Suaza  
                  Started by Geovanny Suaza, 02-11-2026, 05:51 PM
                  0 responses
                  359 views
                  1 like
                  Last Post Geovanny Suaza  
                  Started by Mindset, 02-09-2026, 11:44 AM
                  0 responses
                  105 views
                  0 likes
                  Last Post Mindset
                  by Mindset
                   
                  Started by Geovanny Suaza, 02-02-2026, 12:30 PM
                  0 responses
                  562 views
                  1 like
                  Last Post Geovanny Suaza  
                  Started by RFrosty, 01-28-2026, 06:49 PM
                  0 responses
                  566 views
                  1 like
                  Last Post RFrosty
                  by RFrosty
                   
                  Working...
                  X