Creating a workspace within TradeStation with the corrrect naming convention is critical to enabling TradeStation to properly communicate with NinjaTrader.
*You may have multiple charts/strategies running in a single workspace
Creating a New TradeStation Workspace
From within TradeStation, you can create a new workspace by selecting the menu File-->New-->Workspace. This will create an untitled workspace in TradeStation. You must then select the menu File-->Save Workspace As... and provide a workspace name following the naming conventions below.
Workspace Naming Convention Functions
The workspace name must contain "NinjaTrader;" without the quotations otherwise NinjaTrader will NOT process any trade signals received from TradeStation.
Account Name
You can optionally add your brokerage account name(s) to the workspace name to identify an account that NinjaTrader will route orders to. If the account name is missing NinjaTrader will route orders to the default account set in Tools-->Options, ATI, General tab. The account name must be specified as
"Account=YourAccount" without quotations and where YourAccount is the name/number of your brokerage account.
Multiple Accounts
You can add multiple accounts in the workspace name to inform NinjaTrader to replicate the TradeStation order across more than one account. Add a comma "," withough the quotations after each account name. For example; "Account=Account1,Account2"
Quantity Multiplier
You can optionally associate a quantity multiplier with each account that you have specified in the workspace name. This optional value will be multiplied by the TradeStation's strategy quantity amount. For example; if your TradeStation strategy has a quantity amount of 1 contract and you want to trade 2 contracts
and you do not want to modify this amount in the strategy itself you can add "=2" after the account name in the workspace which would multiple the strategy contract amount by a factor of 2. The text would look like "Account=YourAccount=2"
Aliases - Chart Instrument "A" --> Execute Orders in Instrument "B"
You can redirect orders to a different instrument than the instrument that your TradeStation strategy is actually running on. For example, you can run a strategy on $SPX.X but have orders actually placed to the S&P Emini contract. The text would look like "Map=$SPX.X,ESH07" where $SPX.X is the TradeStation chart instrument followed by a comma and then ESH07 which is the S&P Emini March 2007 contract which is the contract that will be traded. Since you can have multiple charts running in a workspace, you can add multiple mapping relationships. For example "Map=$SPX.X,ESH07,$COMPX,MSFT" would map the $SPX.X to ESHO7 and $COMPX would map to MSFT.
Workspace Name Examples
Following are samples of valid TradeStation workspace names. Remember, separate functions with a semi colon ";".
The following workspace name routes orders to the Default account specified under Tools --> Options --> ATI tab
NinjaTrader
The following workspace name routes orders to account # 1235
NinjaTrader;Account=1235
The following workspace name routes an order to account #7777 and another order to account #1311 with the original strategy quantity multiplied by a factor of 2
NinjaTrader;Account=7777,1311=2
The following workspace name routes orders to account #123 and maps trade signals generated by the $SPX.X chart to the S&P Emini March 2007 contract
NinjaTrader;Account=123;Map=$SPX.X,ESH07
Multiple Workspaces
You may create multiple workspaces provided that they each contain "NinjaTrader;" without the quotations in their name. For example, you could have two workspaces named
"NinjaTrader1;" and "NinjaTrader2;"