Connecting to Collective2
Previous Topic  Next Topic 

You can use NinjaTrader to automatically submit orders to your C2 (Collective2) account.



How does it work?

Real-time orders generated and submitted to any account (live brokerage or simulation) by NinjaTrader can be enabled to have a market order submitted to C2 servers.



* If your C2 system has paying subscribers, you MUST use the paid for NinjaTrader Multi-Broker Version otherwise you will NOT be able to send trade signals from NinjaTrader to your C2 account.



Review the following 12 steps to set up NinjaTrader to C2 integration.



Initial Set Up

You must set up an Account Group(s) to instruct NinjaTrader to submit market orders to C2 servers. An Account Group accomplishes the following:



  1. From the NinjaTrader Control Center window, select the menu Tools > Options to bring up the "Options" dialog window
  2. Within the "Options" dialog, select the "Misc" tab and press the "Account Groups" button to bring up the "Account Groups" dialog window
  3. Type in a name for the Account Group based on the strict naming convention outlined below
  4. Assign an account(s) from the list of available accounts
  5. Press the "Save" button to save the Account Group
  6. Press the "Close" button to close the "Account Groups" dialog window


Anytime you execute a real-time order into an account(s) assigned to a C2 Account Group from any order entry window, Automated Trading Interface or an automated NinjaScript strategy, a C2 order will be submitted for all C2 enabled the instruments.



Account Group Naming Conventions

The name of a C2 Account Group must be in the format below ensuring that you have semicolons (;) between parameters:


C2;Strategyid;YourPassword;QuantityMultiplier


"C2" in the above example MUST be in caps since it is case sensitive.


StrategyId

Your C2 strategy id used for tracking a C2 strategy.


YourPassword

Your C2 account password.


QuantityMultiplier (Optional)

A factor that will be multiplied by the order quantity to derive the quantity of the market order submitted to C2. For example: If you are trading 10 lots in your account and you specify a value of "0.5", the C2 order will be submitted at a quantity of 5. If the result is an uneven number, NinjaTrader will round up to the nearest whole number.


Example #1

StrategyId = 1982131
YourPassword = candle

No quantity multiplier



Example #2

StrategyId = 98761
YourPassword = jump

Quantity multiplier of 0.5




Enabling an Instrument

You must enable an instrument by 'tagging' the C2 symbol with an asterisk (*) prefix. This ensures that only orders for those instruments you have enabled will be routed to C2.


  1. From the NinjaTrader Control Center window, select the menu Tools > Instrument Manager to bring up the "Instrument Manager" window
  2. Search for the instrument you wish to enable, highlight it and pres the "Edit" button to bring up the "Instrument Editor"
  3. In the "Instrument Editor" window, select the "Misc" tab and scroll down to the "Symbol Map" section
  4. Next to "Collective2", add an asterisk (*) in front of the C2 symbol map name (MSFT would be *MSFT)
  5. Press the "OK" button
  6. Press the "OK"  button once more


The image below depicts the ES (S&P Emini) instrument currently disabled (there is no asterisk prefix)


The  image below depicts the ES (S&P Emini) instrument enabled (asterisk prefix)


You are now set for NinjaTrader to submit orders to C2. Keep in mind the following:




Synchronization

It is possible for various reasons that the communication between NinjaTrader and C2 can be disrupted resulting in the potential of unsubmitted orders. In this event (excluding an unexpected application or computer crash) a notification box will pop up. It is your responsibility to logon to your C2 account via (www.collective2.com) and manually synchronize your C2 account to your actual live trading account position size.