Jump to content

Recommended Posts

Posted

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.

Posted
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 

Posted

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.

 

 

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...