atljam Posted 9 hours ago Report Posted 9 hours ago Can anyone explain the process to modify a dll generated by Ninjatrader without having the original source code? I have a dll file that I can see the C# code using DotPeek or dnSpy, I want to modify a bit of that code then recompile the dll without having to take the cs file and re-engineering it back to ninjascript. There is no Agile protection in the code. What I found trying to take the decomplied cs file and trying to code it in ninjascript is a nightmare as so many things have to be coded in the ninjascript methods ie State = 2 , would be State == State.Configured, that's easy but many other lines are not translating easily. I think there is some kind of debug mode that lets you open in Visual Studio and has all the resources of Ninjatrader but haven't got that figured out. Quote
kimsam Posted 8 hours ago Report Posted 8 hours ago 1 hour ago, atljam said: Can anyone explain the process to modify a dll generated by Ninjatrader without having the original source code? I have a dll file that I can see the C# code using DotPeek or dnSpy, I want to modify a bit of that code then recompile the dll without having to take the cs file and re-engineering it back to ninjascript. There is no Agile protection in the code. What I found trying to take the decomplied cs file and trying to code it in ninjascript is a nightmare as so many things have to be coded in the ninjascript methods ie State = 2 , would be State == State.Configured, that's easy but many other lines are not translating easily. I think there is some kind of debug mode that lets you open in Visual Studio and has all the resources of Ninjatrader but haven't got that figured out. You need the source code Quote
atljam Posted 3 hours ago Author Report Posted 3 hours ago well looks lke dnspy did a closer to ninjascript, of converting the cs file so was able to get that one working. but still would like to know how to do that in dnspy as when i went to edit the strategy cs it had a boatload of compile errors. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.