458
edits
No edit summary |
|||
(12 intermediate revisions by 5 users not shown) | |||
Line 10: | Line 10: | ||
Though there is choice between web-based (Online) and standalone version (Offline), standalone version is recommended for MultiCharts connection. To download Trader Workstation and Gateway, follow this link: | Though there is choice between web-based (Online) and standalone version (Offline), standalone version is recommended for MultiCharts connection. To download Trader Workstation and Gateway, follow this link: | ||
https://www.interactivebrokers.com/en/index.php?f=14099#tws-software | |||
For FOREX trade size should be equal to the amount of units, not trade lots. | For FOREX trade size should be equal to the amount of units, not trade lots. | ||
Line 31: | Line 31: | ||
Interactive Brokers Profile is already created when MultiCharts is installed. It is not necessary to reconfigure its settings if only one IB account is going to be used with no subaccounts, but it is Important to set up connection parameters in IB TWS. | Interactive Brokers Profile is already created when MultiCharts is installed. It is not necessary to reconfigure its settings if only one IB account is going to be used with no subaccounts, but it is Important to set up connection parameters in IB TWS. | ||
==Setting up | ==Setting up Interactive Brokers Trader WorkStation== | ||
The following configuration is required to establish connection between MultiCharts platform and IB TWS: | |||
# Click on '''Configure''' in main TWS window. | # Click on '''Configure''' in main TWS window. | ||
# Click on '''API''' section. Select '''Settings'''. | # Click on '''API''' section. Select '''Settings'''. | ||
Line 42: | Line 40: | ||
# Add '''127.0.0.1''' to '''Trusted IP Addresses''' or check the '''"Allow connections from localhost only"''' box (only if TWS is running on the same PC). If TWS is running on a remote PC - you should specify its IP address. | # Add '''127.0.0.1''' to '''Trusted IP Addresses''' or check the '''"Allow connections from localhost only"''' box (only if TWS is running on the same PC). If TWS is running on a remote PC - you should specify its IP address. | ||
==Setting up | ==Setting up Interactive Brokers Gateway== | ||
The following configuration is required to establish connection between MultiCharts platform and IB Gateway: | |||
'''IB API''' option should be selected when logging | # '''IB API''' option should be selected when logging into IB Gateway. | ||
# Click on '''Configure''' in main | # Click on '''Configure''' in main Gateway window. | ||
# Click on '''API''' section. Select '''Settings'''. | # Click on '''API''' section. Select '''Settings'''. | ||
# Uncheck '''Read-Only API''' box. | |||
<div style="background-color: #E3FBE5;">'''Note''': By default in IB Gateway '''Socket port''' number is '''4001'''. In IB data source in QuoteManager default '''Port''' ('''Socket port''') number is '''7497''' | # Set the Port (Socket port) number to the same value both in IB Gateway and IB Broker Profile in MultiCharts. <div style="background-color: #E3FBE5;">'''Note''': By default in IB Gateway '''Socket port''' number is '''4001'''. In IB data source in QuoteManager default '''Port''' ('''Socket port''') number is '''7497'''.</div> | ||
# Add '''127.0.0.1''' to '''Trusted IP Addresses''' or check the '''"Allow connections from localhost only"''' box (only if Gateway is running on the same PC). If Gateway is running on a remote PC - you should specify its IP address. | |||
==Setting up Interactive Brokers Profile== | ==Setting up Interactive Brokers Profile== | ||
Line 62: | Line 59: | ||
===General Settings section=== | ===General Settings section=== | ||
'''IP address''' and '''Port''' number | '''IP address''' and '''Port''' number | ||
'''ClientID'''. “0” by default. If there is another trading platform running on your computer that is connected to IB TWS, it is recommended to change the corresponding value in that piece of software. | '''ClientID'''. “0” by default. If there is another trading platform running on your computer that is connected to IB TWS, it is recommended to change the corresponding value in that piece of software.<br> | ||
<br>Starting from MultiCharts 11, IB TWS can be launched automatically by MultiCharts on attempt to connect IB broker profile. To enable this option check <b>Launch Trader Workstation</b> at start box. | |||
===Default Order Settings section=== | ===Default Order Settings section=== | ||
Line 68: | Line 66: | ||
* '''DAY''' | * '''DAY''' | ||
: Order is canceled if it is not executed by the close of the trading day. DAY is set as default; or: | : Order is canceled if it is not executed by the close of the trading day. DAY is set as default; or: | ||
* '''GTC''' (Good- | * '''GTC''' (Good-Til-Cancelled) | ||
: Order remains active until it is cancelled. | : Order remains active until it is cancelled. | ||
* '''IOC (Immediate-or-Cancel)''' | * '''IOC (Immediate-or-Cancel)''' | ||
Line 113: | Line 111: | ||
===Connection Settings section=== | ===Connection Settings section=== | ||
''' | '''Disconnect the broker profile (stop auto trading) in X seconds after IB TWS is logged off.''' | ||
In case of the connection loss | In case of the connection loss the broker profile will be disconnected after the specified period of time if the connection is not re-established, as the result the auto-trading will be turned off. | ||
===Financial Advisor Settings=== | ===Financial Advisor Settings=== | ||
Line 138: | Line 136: | ||
: '''Account:''' only 1 account of the group should be specified to send all the orders directly on this account. | : '''Account:''' only 1 account of the group should be specified to send all the orders directly on this account. | ||
<div style="background-color: #E3FBE5;">'''Note:''' Interactive Brokers do not provide Realized PnL for multi-accounts in 3rd party apps like MultiCharts due their API specific.</div> | |||
==How stop orders work== | ==How stop orders work== | ||
Line 161: | Line 161: | ||
<div style="background-color: #E3FBE5;">'''Note: On IB Live account you can send Stop orders directly to the exchange (green in TWS).''' | <div style="background-color: #E3FBE5;">'''Note: On IB Live account you can send Stop orders directly to the exchange (green in TWS).''' | ||
<br>Enable "Use outside RTH tag" to do that. In order to send multiple orders directly to the exchange "Use Native OCO Group" should also be disabled.</div> | <br>Enable "Use outside RTH tag" to do that. In order to send multiple orders directly to the exchange "Use Native OCO Group" should also be disabled.</div> | ||
<div style="background-color: #F0F8FF;">After the broker profile is set up, you can select it for trading, see the '''[[How to Select a Broker Account For Trading]]''' guide.</div> | |||
[[Category:Broker Profiles]] | [[Category:Broker Profiles]] |