Gain Capital / Open ECry Trading Service
- What is Included
- Setup Instructions
- Solving Connection Problem
- Forex Trading
- Availability of Market Data and Trading Server
- Solving Gain Capital 'Invalid Account' Error
- Solving Gain Capital 'Data feed is not entitled' Error
- Using Account Allocation for Trade Orders
Sierra Chart supports the Gain Capital / Open ECry (OEC) Trading service. This Trading service provides Sierra Chart with real-time data from, historical Intraday data from, and futures and forex trading for primarily US and European exchanges.
When using Gain Capital, Historical Daily data, is provided by the Sierra Chart Historical Data Service.
The Sierra Chart trading functionality fully supports the Gain Capital Trading service. It is not necessary to have the Gain Capital Trader software running when using the trading features in Sierra Chart.
Sierra Chart provides enhanced historical Intraday data when using Gain Capital. This data is tick by tick and provides Bid Volume and Ask Volume. The data goes back to 2008 and the data downloading is very fast. The data is optimized for use with Sierra Chart. This data is provided for all of the popular futures contracts and all of the Forex pairs. For less common symbols, Sierra Chart uses the Gain Capital provided historical Intraday data.
In addition to being compatible with Sierra Chart, Gain Capital Trader is built on a private network designed for speed and reliability. Gain Capital Trader offers the latest in technology and functionality, including depth of market, streaming quotes and more. Gain Capital Trader's easy to use application handles all of the complexities associated with trading and order management. And our team of professionals provides premier customer service.
What is Included
- Streaming Real-Time Data: Yes.
- Historical Intraday Data: Yes. More data is available when using Sierra Chart compared to the OEC Trader. For current futures contract months historical tick by tick data is available. For expired futures contract months, the minimum time increment is 1 second. For tick by tick data you need to use the highest Sierra Chart service package, otherwise the increment is 1 second.
- Historical Daily Data: Yes. Provided by the Sierra Chart Historical Daily Data service.
- Historical Bid Volume and Ask Volume: Yes. (For popular futures markets and all Forex markets) Although the determination of Bid Volume and Ask Volume with the Gain Capital data feed for futures, in many cases is not accurate. This developed around the beginning of 2017 and has not yet been resolved by Gain Capital. If you require accurate Bid Volume and Ask Volume, you will need to use the Sierra Chart Exchange Data Feed which can still be used while trading with Gain Capital in Sierra Chart.
- Live Trading Services: Yes.
- Simulated Trading: Yes.
- Order Types Supported: All.
- Server Managed OCO (Order Cancels Order): Yes.
- Server Managed Bracket Orders: Yes. Requires Sierra Chart version 1314 or higher.
- Automated Trading (applies to Live or Simulated): Yes.
- A live or demo account is needed from Gain Capital or one of their introducing brokers.
Some brokers Supporting Gain Capital:
- Optimus Trading Group
- Stage 5 Trading Corp.
- Sweet Futures
- Global Futures
- Daniels Trading
- Cannon Trading
- Blue Line Futures
- Striker Securities, Inc.
- Foremost Trading
- TradePro Futures
- Go to Sierra Chart.
- Select Global Settings >> Data/Trade Service Settings on the menu.
- In the Service list box at the top of the window, select the Gain Capital/OEC or Open E Cry FIX service name from the list.
- Select the Production (prod.gainfutures.com) server or the Simulation (sim.gainfutures.com) server in the Server drop-down list box depending upon what server you want to use. You probably generally should use Production always, as long as you have a live account. For simulated trading, you can enable Trade >> Trade Simulation Mode On in Sierra Chart.
- Enter your Gain Capital account Username and Password in the corresponding boxes. For help with your Username and Password, contact Gain Capital.
- Enter your Gain Capital trading account identifier in the Trade Account box. If you have multiple accounts, enter each one separated by a comma (,). This is not the same as the Username. You can determine your trading account identifier from the OEC Trader software.
- Enable the Connect On Program Startup and the Reconnect on Failure options.
- Set the Time Zone setting to the time zone that you want times displayed in.
- Set the Intraday Data Storage Time Unit to what you require.
- Press OK to close the Data/Trade Service Settings window.
- Go to the Third-Party Software page on the Gain Capital Futures website. Make certain the Sierra Chart application is Enabled. If you require help with this, contact Gain Capital support. It is necessary for Sierra Chart to be enabled in order to connect Sierra Chart to the Gain Capital system.
If this option is not enabled, then when Sierra Chart connects to the Gain Capital system, you will receive one of these messages in the Sierra Chart Message Log:
Gain Capital FIX Trading: SoftwareNotPermittedGAIN Capital FIX Trading: Received a Logout message. Text = This software is not permitted to logon
- To connect to the data and trading servers, select File >> Connect to Data Feed on the menu.
- If the Message Log window opens and displays messages indicating there was an error connecting to or logging on to Gain Capital, then select File >> Disconnect to prevent further connection attempts. Refer to the Solving Gain Capital Connection Problem section for further instructions.
- To open an Intraday Chart, a Historical Chart, or a Trading DOM, select File >> Find Symbol on the menu. Select a futures or forex symbol and press the appropriate button. You can also manually type a symbol into the Symbol box. For the cash forex symbols, it is necessary to use the symbols listed in the Forex (For Trading) list only.
If you do not see the Futures symbols listed, then it is necessary to Update the Symbol Settings. This is essential. Otherwise, the complete and detailed historical data will not be received.
- Continue with step number 3 on the Getting Started documentation page.
Solving Connection Problem
When connecting to the Gain Capital FIX server, you may encounter a case where the FIX server disconnects Sierra Chart or sends a Logout message immediately after when Sierra Chart sends the FIX Logon message. There are various causes of this kind of issue.
Each of the sections below explains the various scenarios and the associated reasons and solutions.
Invalid Username and Password
You will see messages like the following in the Sierra Chart Message Log:
GainCapital FAST Data: Received a Logout message. Text = InvalidUserOrPassword
GainCapital FAST Data: Sending a Logout message. Text = Received Logout message.
These specific above messages indicate that the Username and Password entered in Global Settings >> Data/Trade Service Settings, are incorrect. Check them and correct them. Make sure that the Server setting is set correctly. It should be sim.gainfutures.com to connect to the simulation server or prod.gainfutures.com to connect to the production server. If you are not sure what they should be, then contact Gain Capital.
Server Not Available on Weekend
Gain Capital FIX Trading | Received a Logout message.
Gain Capital FIX Trading | Sending a Logout message. Text = Received Logout message.
Usually, but not always, these above messages indicate it is a weekend and it is before Sunday evening. The reason you will be logged out is because the FIX server is not accepting connections. For more information, refer to Availability of Market Data and Trading Server.
If it is not a weekend, refer to the information below for other reasons for not being able to connect to the Gain Capital FIX server.
Gain Capital FIX Trading | Received a Logout message. Text = Locked
This message from above Gain Capital FIX Trading | Received a Logout message. Text = Locked, means that access to your Gain Capital account has been has been locked due to too many failed login attempts. For help with this, contact Gain Capital. You will not be able to connect until Gain Capital or your introducing broker unlocks your account.
Connected from Another Location
The above message indicates that you have been logged out because you are connected to the Gain Capital FIX server in another copy of Sierra Chart. Only one connection is allowed at a time. If you have any questions about this, you must contact Gain Capital. Sierra Chart support cannot help with this.
Sierra Chart Software Not Allowed
The above error message indicates that the Sierra Chart software is not enabled on your Gain Capital account to connect to the Gain Capital system. To do this, go to the Third-Party Software page on the Gain Capital website. Make certain the Sierra Chart application is enabled. If you require help with this, contact Gain Capital support. It is necessary for Sierra Chart to be enabled in order to connect Sierra Chart to the Gain Capital system.
All Other Connection Issues
GAIN Capital FIX Trading socket (#) | Socket gracefully closed by remote side.
GAIN Capital FIX Trading | Connected to trading server.
GAIN Capital | Connecting to market data server prod.gainfutures.com:9301.
GAIN Capital FIX Trading | Received a Logout message.
These messages above indicate various other reasons you cannot connect. Follow the instructions below to resolve the connection problem.
- Select File >> Disconnect to prevent connection attempts.
- Make sure your computer's clock is set accurately. Refer to help topic 38 for instructions. However, it has been tested that even when a computer's clock off significantly, as much as 1 day, that this does not prevent Gain Capital from closing the connection. Therefore, this is unlikely the reason for the connection problem. Normally FIX servers require a computer clock to be accurate within 20 seconds since messages sent to the FIX server are timestamped using the local computer clock.
- Only a single copy of Sierra Chart can be connected to your Gain Capital account at the same time. Make sure there is no other copy/instance of Sierra Chart connected to your account. Consider the possibility that someone else is using your account if you gave them access? These specific messages do indicate that there is another connection but there can be other reasons as well for these messages.
GAIN Capital FIX Trading: Sending the Logon message.
GAIN Capital FIX Trading socket (7) | Received socket Close event
- Select Global Settings >> Data/Trade Service Settings.
- Verify the following settings:
Service Setting >> Server
Service Setting >> Username
Service Setting >> Password
Are all set correctly. We strongly recommend that you contact Gain Capital and confirm what Server, Username and Password you should be using to connect to the FIX server for your account. We have heard that some Usernames cannot connect to the FIX server. Let them know you are connecting to Gain Capital using FIX and Sierra Chart.
- Go to the Third-Party Software page on the Gain Capital website. Make certain the Sierra Chart application is Enabled. If you require help with this, contact Gain Capital support. It is necessary for Sierra Chart to be enabled in order to connect Sierra Chart to the Gain Capital system.
- Select File >> Connect to Data Feed to connect again. If you are still not able to connect to Gain Capital, then you will need to contact Gain Capital for help with this. Gain Capital will need to check their server logs to see why the connection is not succeeding. You will need to tell them what Server you have selected when connecting.
To find the available symbols to chart and trade, you need to select File >> Find Symbol on the menu.
Sierra Chart supports charting and trading exchange traded spread/strategy symbols when using Gain Capital. They will not be listed in File >> Find Symbol. You need to look up these symbols through the Gain Capital Trader software and manually type them into the Selected Symbol box on the Find Symbol window.
Trade Position data from Gain Capital is not reported for exchange traded spread/strategy symbols. Only the individual legs within the spreads are reported.
However, Sierra Chart will use its own internal Trade Position data to report the position for exchange traded spread/strategy symbols but this is not necessarily always accurate due to incomplete fill data.
Gain Capital Symbol Limitation
Currently Gain Capital has a limit of 5 symbols to receive real-time data on, unless the symbol limit has been increased for your account. This means you can only get tick by tick updates on up to 5 symbols at a time.
If you are tracking more symbols in Sierra Chart over this limit, charts for those symbols will not update in real-time.
When you have gone over the symbol limit, you will still see the price box on the right side of the chart move up and down, but the chart bars will not update.
You can determine how many symbol Sierra Chart is tracking by looking at the data feed status on the Control Bar the top of the program. After the ST: prefix, the number indicates the number of symbols being tracked.
Below is an example of the message you will see in the Window >> Message Log indicating the symbol limit has been exceeded/reached:
Contact Gain Capital and request that this symbol limit be increased for your Gain Capital account.
If you have gone over the 5 symbol limit, you need to reduce the number of symbols you are tracking by closing charts, reducing the number of symbols on Quote Boards, and deleting Quote Requests from Spreadsheets, if you have set up Quote Requests on Spreadsheets.
After reducing the number of symbols you are tracking, reconnect to the data feed with File >> Disconnect and then File >> Connect to Data Feed.
In the case when you have gone over the 5 symbol limit, what you see moving the price box on the right side is a throttled data feed which cannot be used for charting because it does not provide tick by tick data which would cause the charts to have incomplete data.
If you need to track more symbols beyond the Gain Capital symbol limit that has been set on your account, it is highly recommended that you use the Sierra Chart Real-Time and Historical Exchange Data Feed.
Sierra Chart fully supports Forex symbols and trading when using Gain Capital.
To trade Forex symbols when using Sierra Chart and Gain Capital, select Global Settings >> Data/Trade Service Settings on the menu.
In the Trade Account box enter your Forex Trade Account identifier if it is not already specified. Multiple accounts can be specified and separated by comma. Example: 1234, FX12345. So you can enter both your futures account and also FX account.
You will need to contact Gain Capital for your FX Trade Account identifier if you do not already have one.
To open a Forex chart or Trading DOM, select File >> Find Symbol and select one of the available Forex symbols. Sierra Chart charts the Bid and Ask average. All price bars and current price for the symbol are based upon this average.
Before performing trading, on the chart or Trade DOM, you need to select your FX account. Select Trade >> Open Trade Window for Chart to open the Trade Window. Refer to Selecting Trade Account.
An order quantity of 1 will equal 10,000 or 100,000 currency units based upon your account configuration. Check with Gain Capital to confirm how your account is configured.
If you see larger order quantities listed in the Trade Window Quantity box or on the Quantity buttons, then Update the Symbol Settings. After, select the Set tab on the Trade Window and press the Default Quantities button.
Availability of Market Data and Trading Server
The Gain Capital FIX server which Sierra Chart uses for trading and market data, is not available over the weekends. Therefore, Sierra Chart will fail to connect during the weekend. There will be error messages related to this in the Sierra Chart Message Log.
Be aware that the Gain Capital FIX server is a different server than the Gain Capital Trader software uses.
The server becomes available Sunday evening when the markets reopen for the next trading week.
To prevent connection attempts, select File >> Disconnect. To connect to the server Sunday evening or at any time, select File >> Connect to Data Feed.
Solving Gain Capital 'Invalid Account' Error
When using Gain Capital and submitting an order, and the following message is displayed in the Trade >> Trade Service Log, then follow the steps below.
- Select Global Settings >> Data/Trade Service Settings.
- In the Service Setting >> Account setting, enter your Gain Capital trading account ID. If you are not sure what this is, then contact Gain Capital. This is not your Gain Capital username. You should see the account ID within the Gain Capital Trader software.
- Press OK.
- Try submitting the order again.
Solving Gain Capital 'Data feed is not entitled' Error
When the following error is displayed in the Sierra Chart Message Log after Sierra Chart subscribes to market data for the symbol, contact Gain Capital and have them authorize the exchange the symbol trades on, for your Gain Capital account.
To open the Message Log, select Window >> Message Log.
A FIX reject reason: Data feed is not entitled error will also cause a Symbol is unknown message to be displayed on the chart for about 30 seconds.
Sierra Chart subscribes to market data for a symbol when it connects to the data feed ( File >> Connect to Data Feed) and a chart is open for the symbol or the symbol is on a Quote Board.
After your account is authorized for the exchange the symbol trades on, select File >> Disconnect and File >> Connect to Data Feed.
Using Account Allocation for Trade Orders
Sierra Chart supports the Gain Capital feature to submit an order from one account, in this documentation referred to as the main controlling account, and have that distributed to multiple subaccounts.
The main controlling account does not actually contain the orders or position but only distributes the orders to multiple subaccounts and reports the consolidated Order and Position.
Follow the instructions below to use this feature.
- Contact Gain Capital and have them add to your Gain Capital username, the main controlling account which will distribute the orders to multiple subaccounts. The terminology that Gain Capital uses for this account is going to be different than main controlling account. They may use the term "wash account".
- Select Global Settings >> Data/Trade Service Settings on the menu.
- In the Service Setting >> Account box, enter the main controlling account, and all of the subaccount identifiers as provided to you by Gain Capital. Each one separated by a comma. For example: 5000, 5001, 5002. There are going to be at least 3 account identifiers, the main controlling account and at least two subaccounts.
- Set the Service Setting >> Use Account Allocation for Orders setting to True.
- Set the Service Setting >> Account Allocation String setting. This is a text string consisting of comma separated Accounts and order quantities. The format is Account=Qty, Account=Qty, .... For example, if you enter an order with a quantity of 10 from the main controlling account (Account 5000) and want to distribute it to subaccounts 5001 and 5002, with a 50% distribution of the quantity to each account, then enter 5001=5, 5002=5.
- Set the Service Setting >> Allocation Method. The possible choices are: Lowest Price - Lowest Account, Lowest Price - Highest Account, Highest Price - Lowest Account, Highest Price - Highest Account, Average Price System. Contact Gain Capital or refer to the available Gain Capital documentation for more information about this setting.
- Press OK.
- Go to the Trade Window for the chart or Trade DOM you will be trading from. Set the Trade Account to the main controlling account. Refer to Selecting Trade Account.
- Submit the order as you normally would within Sierra Chart and it will be distributed to all the subaccounts.
- To disable use of the account allocation for orders feature, set Global Settings >> Data/Trade Service Settings >> Service Setting >> Use Account Allocation for Orders to False.
Disabling Use of Account Allocation for Orders
If you do not require the Account Allocation feature or your Gain Capital account does not use it, then select Global Settings >> Data/Trade Service Settings. In the service specific settings, set Service Setting >> Use Account Allocation for Orders to False/No.
This feature must be disabled if your Gain Capital account does not support it or it is not configured to use it. Otherwise, having it enabled prevents the proper functioning of order submission and management.
This is an example of the error message which will be received in the Trade >> Trade Service Log when this feature is not properly configured or supported on the Gain Capital account:
*Last modified Wednesday, 23rd August, 2017.