I would like to work with VisualStudio to develop indicator code. This works quite ok for me but I have problems to make NT reload the DLL after compilation.
The usual workflow to edit an indicator in the Custom.dll for me is like this:
1. Use the editor in NinjaTrader to edit code in the indicator
2. Compile inside the editor
3. Now I can press F5 in a parallel chart window (that displays the indicator) to refresh the UI using the updated code
-> Great, I can change/compile the code in one window and I can refresh the graphs while NT is running by just pressing F5 in the chart window
Now I would like to do the same using Visual Studio. So I created a VisualStudio project which contains all the cs-files from the custom.dll and also added references to NinjaTrader.Core.dll and WilsonORMapper.DLL.
I can compile the Custom.dll just fine now. But now I have to quit NT, copy my new DLL to "bin\Custom" and then restart NT. Then the code gets accepted and works fine.
But my question is: Is there any way to "inject" my (in VS) compiled DLL into NT without restarting it? I tried to replace the custom.DLL while NT is running but its not possible because the DLL is in use.
Big thanks in advance!
Comment