PDA

View Full Version : How to protect your source file


richard
05-30-2006, 01:06 AM
Hi.

I developed a new custom indicator and I want to give this to someone else to try but I don't want to give them the .cs file to compile. I tried giving them the bin\Custom\NinjaTrader.Custom.csproj and NinjaTrader.Custom.dll files, but that doesn't work. Which files contain the compiled versions of the custom indicators?



Thanks.

NinjaTrader_Ray
05-30-2006, 01:18 AM
Hi Richard,

From the folder C:\Program Files\NinjaTrader 5\bin\custom\indicator

- Remove any .cs files that you do not want to give him (leave system indicators there is fine)
- In NT, recompile any indicator which creates the DLL with all indicators represented by the folder above
- Make a copy of a C:\Program Files\NinjaTrader 5\bin\Custom\NinjaTrader.Custom.dll and rename it to something like Richard.dll
- Send your friend this DLL and have him save it to the same folder

When he starts up NT, Richard.DLL will be loaded and any custom indicators contained within this DLL will be available to him.

Ray

NinjaTrader_Ray
05-30-2006, 01:19 AM
Also, make sure he is using the same version of NT as you.