A standard process for apply the obfuscator?

I’m applying an obfuscator (not Secure Team) to some of my projects. However, no matter which obfuscation method I use, NinjaTrader fails to recognize the script and removes the indicator from the list—even though I never included the indicator’s class name in the obfuscation list. The only workaround I’ve found so far is creating a separate DLL to make the indicator reappear in the list. Is there a specific technical adjustment or a ‘specific’ method I should use during the obfuscation phase? (I am currently proceeding via Visual Studio)."

NinjaTrader relies heavily on reflection to determine which classes are in the assembly and it must be able to see and access named methods like OnStateChange for instance in order to set up the indicator. So, you can’t be renaming those methods or the indicator class itself. That’s where I would start with this. I see you’ve written that you never included the indicator’s class name in the obfuscation list - one way of going about this would be to open up your own obfuscated assembly with .net reflector or a similar tool and see if you can see your indicator class, and see if you can see OnStateChange and the other methods NT would have to access to operate the machinery.

4 Likes