View Full Version : Can't find file NinjaTrader.Vendor.cs
scjohn
05-23-2007, 10:16 AM
In your documentation for Distributing Custom Indicators - Distribution Step 3 - DLL Distribution (Vendor File) you reference the file name: NinjaTrader.Vendor.cs as an example. The docs say the file name is located in the folder - Backup. I have no such folder located under the Bin folder. Also I did a search for all files and folders under Ninja Trader 6 and still no luck.
IS the documentation out of date? Can you point me somewhere else?
Thanks
NinjaTrader_Ray
05-23-2007, 10:47 AM
Yes it is, I will update it. The correct folder is:
C:\Program Files\NinjaTrader 6\bin\Custom\Backup
scjohn
05-23-2007, 11:52 AM
I see the NinjaTrader.Vendor.dll file located in the Custom folder. But I have no sub folder named Backup . I have sub folders for Indicator, MarketAnalyzer, Tmp and Type.
NinjaTrader_Ray
05-23-2007, 12:22 PM
To double check...
Your are checking C:\Program Files\NinjaTrader 6\bin\Custom\Backup
and not
My Documents\NinjaTrader 6\bin\Custom
scjohn
05-23-2007, 02:22 PM
Opps. I was looking in My Documents. That is what the docs say:
"To create a vendor file follow these steps:
See the file: "My Documents\NinjaTrader 6\bin\Backup\NinjaTrader.Vendor.cs file for reference sample."
I do find the Backup folder under the Program Files set.
But this does bring up the question: Why two sets of folders? The set under Program Files and the set under My Documents. I know that any indicators/strategy/market analyzer code that I develop will be stored/edited and executed(??) from the My Documents set.
So for the Dll distribution file, which set of folders do I use: My Documents of Program Files?
Thanks
NinjaTrader_Ray
05-23-2007, 03:14 PM
Several things -
- If you plan to distribute custom NinjaScript files, in the next update we will include a process for distribution that exports everything for you in a complete package. If your NinjaScript files do not contain an external DLL references I suggest waiting a few weeks for this new update. It will make the process much easier
- The reason for two directories is because this is MSFT standard. Program files should be maintained in the Program Files folder and user data under My Documents
scjohn
05-23-2007, 06:17 PM
I am accessing a custom external dll file so it sounds like the update will not be helping me.
I need to have the indicators contained in the external dll available in your Wizards. It seems that the Vendor file is the way go. All though user defined methods might work it is not clear to me if these methods will appear in the Wizards.
NinjaTrader_Ray
05-23-2007, 06:45 PM
Yes, you will have to then create a vendor file which holds wrapper methods for your indicators so they will be visible within Intellisense and the Strategy Wizards' condition builder.
So what you need to do is follow the instructions for creating this file at the link below, and then either provide an installer or clear instructions for your users to install this vendor file in the folder listed below.
http://www.ninjatrader-support.com/HelpGuideV6/DistributionStep3.html
My Documents\NinjaTrader 6\bin\Custom
NinjaTrader_Ray
05-23-2007, 06:47 PM
In addition, you like have already seen this but here is a link to best practices for commercial indicator development. If you have a commercial website and will promote NinjaTrader we do offer a free vendor licensing service for user authentication using NinjaTrader servers. If interested, please send me an email at ray at ninjatrader dot com.