<< Click to Display Table of Contents >>

Navigation:  Operations > Automated Trading > Automated Trading Interface (ATI) >


Previous page Return to chapter overview Next page

If using the DLL based interface, it is important to understand how the ATI is initialized with respect to referencing account names. The ATI is initialized to the first account name used in the first calling function.


Some functions accept an account name as a parameter. In most if not all functions, these parameters can be left blank in which case the "Default" account will be used.  You can set the Default account by left mouse clicking on the Tools menu in the NinjaTrader Control Center and selecting the menu item Options, once in the Options window select the Automated trading interface category and select the account you want to use from the Default account menu.  If your default account is set to 'Sim101' and you call functions and leave the account parameter blank, the Sim101 account will be automatically used.




Default account = Sim101

A function call is made with "" empty string as the account name argument

Sim101 account is automatically used

Subsequent function calls must use empty string if you want to reference the Sim101 account

If you call a function and pass in the argument "Sim101", invalid information will be returned