IB Gateway Installation
Please download and install IB Gateway through the Download Link
Important! TWS should be installed.
In order to install Gateway please use the following steps:
- Please run gateway. In open Dialog activate checkbox IB API, enter your IB credentials, select Trading Mode and click the Login button.
- In the open window please go to Configure-> Settings.
- In APi->Settings please activate checkbox Read-Only API.
- After please create a new or edit existing IB connection in AgenaTrader. Please find IB connection guide on page Technology Provider: Interactive Brokers. Please configure your account in AgenaTrader as on picture below. For User name and Password in AgenaTrader please use same credentials as for Gateway login.
Important! First please run and login Ib Gateway and only then try to connect through the AgenaTrader. We have no ability to start Gateway automatically yet.
IB Financial Advisor Accounts
What are IB FA accounts and how can I use these in AgenaTrader?
FA Account = Financial Advisor Account
You need to open an account as a financial advisor with IB or an IB white label. You can establish the connection just as with a normal IB account. In AgenaTrader, you can now choose with which account you would like to enter a trade under “Default Trading Accounts”. You have the option to carry out a trade on all sub-accounts or just on selected individual accounts.
If you wish to carry out the trade in all sub-accounts, there are various options for the ratio in which the position size should be distributed amongst the sub-accounts.
Account Groups
When you create an account group, you can assign sub-accounts to it that you want to belong to this group. For this group, you can now select an assignment method. The following options are available:
- EqualQuantity: trades are distributed evenly amongst all accounts in the group.
Example: you buy 400 Apple shares; your account group consists of 4 sub-accounts. In each account, a buy order of 100 Apple shares is now carried out.
- NetLiq: trades are distributed based on the net liquidation value of each sub-account.
Example: Your account group consists of 3 sub-accounts, A, B and C with a net liquidation value of €25,000, €50,000 and €100,000. Based on these values, the system calculates a ratio of 1:2:4. If you now buy 700 Apple shares, then 100 shares are bought on account A, 200 on account B and 400 on account C.
- AvailableEquity: trades are distributed based on the available equity of the sub-accounts.
Example: your account group consists of 3 sub-accounts, A, B and C with an equity of €25,000, €50,000 and €100,000. Based on these values, the system calculates a ratio of 1:2:4. If you now buy 700 Apple shares, then 100 shares are bought on account A, 200 on account B and 400 on account C.
- PctChange: the order size is calculated purely by the system, you simply enter a percentage by which an existing order in the sub-accounts should be increased or reduced.
Example: currently, sub-account A has 100 Apple shares, B has 200 shares and C has 400 shares. You now want to reduce the stock of Apple shares by 50% in each sub-account. To do so, you open a short order and enter the value “50” into the percent field. Since you possess a total of 700 Apple shares, the system now calculates a total size of the short order of 350 shares and now correctly distributes this order amongst the sub-accounts (account A sell 50 shares, B sell 100 shares, C sell 200 shares).
You can find more information about the account groups here.
Assignment Profiles
Via an assignment profile, positions are assigned to all accounts in this profile based on a percentage, a certain ratio or an absolute number that you define. The following options are available:
- Percentages: the total number of instruments to be bought/sold is assigned to the respective sub-accounts based on the set percentages.
Example: you have 5 sub-accounts with a percentage of 20% each. If you now buy 1000 Apple shares, a buy order of 200 Apple shares is now carried out in each sub-account.
- Ratios: the total number of instruments to be bought/sold is assigned to the respective sub-accounts based on the entered ratios.
Example: you have 5 sub-accounts and have set a ratio of 1:2:3:4:5. If you now buy 1500 Apple shares, then 100, 200, 300, 400 and 500 shares are bought on the individual accounts respectively.
- Shares: here you can set an absolute number that is used for each account as the position size.
Example: you have 3 sub-accounts and set an absolute number of 10 for each account. If you now place an order in the market, the position size is automatically set to 30, and in each account, an order of 10 units is carried out.
You can find more information about the account groups here.
In AgenaTrader, you can access the account settings for FA accounts using the following button:
When you have established a connection to your IB FA account and have set the master account, you will find the option “Financial Advisor Profile” in the ActionBar in AgenaTrader. Here you can now select the profile that you would like to use for each trade.
Disclaimer:
Exchange transactions are associated with significant risks. Those who trade on the financial and commodity markets must familiarize themselves with these risks. Possible analyses, techniques and methods presented here are not an invitation to trade on the financial and commodity markets. They serve only for illustration, further education, and information purposes, and do not constitute investment advice or personal recommendations in any way. They are intended only to facilitate the customer’s investment decision and do not replace the advice of an investor or specific investment advice. The customer trades completely at his or her own risk.