Login Page - Create Account

CQG Trading Platform Service

CQG Logo

Introduction

Sierra Chart supports the CQG Trading platform service. With the CQG Trading platform service you are able to trade futures and futures spreads for many exchanges in the world.

Refer to the supported CQG exchange list for the exchanges that you can trade on.

The Sierra Chart trading features fully support the CQG trading platform service.

Sierra Chart supports the FIX connection and the CQG Web API connection for trading when using CQG. We recommend using the FIX connection as it is more reliable.

What is Included

  • Supported Exchanges: Refer to the supported CQG exchange list.
  • Streaming Real-Time Data: Yes.
  • Historical Intraday Data: Yes. At least 5 years of data is provided for all of the major futures markets. Historical Intraday data is tick by tick for current futures contracts. For expired futures contracts, historical Intraday data is provided from the Sierra Chart Historical Data Service and has a minimum time unit of 1 second when using Service Package 3 and 1 Tick when using Service Package 5.

    If you encounter a problem with missing historical Intraday data for a particular futures contract symbol, then contact Sierra Chart Support. We will make sure the necessary settings are correct for the data to be received and provide further instructions in case you need to obtain the data from CQG.
  • Historical Daily Data: Provided by the Sierra Chart Historical Data Service.
  • Historical BidVolume and AskVolume: Yes.
  • Market Depth Data: Yes.
  • Live Trading Services: Yes.
  • Simulated Trading: Yes. Only through Sierra Chart Trade Simulation Mode.
  • Order Types Supported: All except Market if Touched.
  • Server Managed OCO (Order Cancels Order): Yes when using the CQG FIX Trading or the CQG Web API Service if Global Settings >> General Trade Settings >> Use Server-Side OCO Orders is enabled.
  • Server Managed Bracket Orders: No. Support has been removed as of version 1819 due to unexpected behavior with this order type.
  • Automated Trading (applies to Live or Simulated): Yes.
  • Historical Order Fills from Trading Server: Yes. Current day only and clears at the end of the trading day.

Setup Instructions

  1. In order to use the CQG Trading platform you must have an account with one of these brokers or clearing firms supporting CQG:
  2. Your broker will provide you with the necessary CQG Username and Password. You will need that from them before you can proceed.
  3. Make sure your broker has configured your CQG account with the necessary Product Enablements. This is essential to be able to connect.
  4. Update Sierra Chart to the current version following the Fast Update instructions.
  5. Go to Sierra Chart. Select Global Settings >> Data/Trade Service Settings on the menu.
  6. Click on the Service list box at the top of the window. Select the CQG FIX Trading [trading] service name from the list.
  7. In the case of a CQG demo account or in the case where your broker has specified you need to use the CQG Web API, then select the CQG Web API [trading] service name from the Service list.
  8. In the Service Setting >> Server list box, select Live. Only select Demo if you are using a CQG demo account.
  9. In the Service Setting >> Username box enter your CQG trading account username. In the Service Setting >> Password box enter your CQG trading account password. These are case sensitive! Make certain you enter them exactly as provided by your broker/trading service.
  10. Make sure that Service Setting >> Connect to Market Data Server is True. However, if you will be using the Sierra Chart Exchange Data Feed exclusively for market data, then set this to False.
  11. Normally Service Setting >> Allow Server to Drop Data should be set to False. This is a CQG specific option. If this is set to True, then it tells the CQG server that when it detects the client-side is not processing data as fast as the server is sending the data, it will start dropping some market data and not send it through to the client. Set this option to True if you notice that the connection to CQG is frequently getting lost.
  12. Enable the Connect On Program Startup and the Reconnect on failure options.
  13. Set the Time Zone setting to the time zone that you want times displayed in.
  14. Set the Intraday Data Storage Time Unit to what you require.
  15. Press OK to close the Data/Trade Service Settings window.
  16. To connect to the data and trading servers, select File >> Connect to Data Feed on the menu.
    Connect
  17. If the Window >> Message Log window opens and displays messages indicating there was an error connecting to the CQG Trading service, then select File >> Disconnect to prevent further connection attempts. Carefully review the setup steps above again.

    Refer to the Common Error Messages section for help with what to do for each known error message.

    If there is some other message displayed in the Message Log, then in most cases it is a message from the CQG system. You need to read what it says and contact your broker/trading service about it. The message should be self-explanatory. If not, then have your broker/trading service contact CQG for interpretation of that particular message.

    After checking the connection settings in the Global Settings >> Data/Trade Service Settings window and your CQG account enablements through your Trading service, try connecting to the data and trading servers again by selecting File >> Connect to Data Feed on the menu.

    If there still is an error connecting, then review help topic 1.5.
  18. To open a Historical Chart, an Intraday Chart or a Trading DOM, select File >> Find Symbol on the menu. Locate the symbol in the lists and press the appropriate button. If you do not see the symbol that you need to use listed, contact Sierra Chart support so that we can add it for you.
    Find Symbol


    If you do not see any symbols listed in the Find Symbol window, then select Global Settings >> Symbol Settings >> Update From Server. Wait for the symbol list to update and then press OK and try opening the Find Symbol window again.
  19. For a complete list of CQG symbols, refer to the CQG Tradable Symbols XLSX.
  20. Note: When performing trading, the Trade Account in the list of accounts on the Trade Window, may be different than your actual Trade Account identifier. This is not unusual with CQG FIX.
  21. Continue with step number 3 on the Getting Started documentation page.

CQG Account Requirements

To use Sierra Chart with CQG requires that you have a CQG account which has the following enablements: The Sierra Chart Connection Mode with the SierraChartData private label. And the FIX Connection Connection Mode with the SierraChart private label. Refer to the screenshot below.

CQG charges for both of these. Check with your broker to find out the costs of these.

However, the FIX Connection is not required if your CQG account will only be used with the CQG Web API. The CQG Web API is required for the real-time market data. The FIX connection does not provide market data. FIX is optional and can be used for order routing if that is preferred over the CQG Web API. At this point in time, there is not a lot of advantage to using FIX other than support for Server Side Bracket orders.

If you will be using the Sierra Chart Exchange Data Feed exclusively for market data, then you do not require the Sierra Chart Connection Mode with the SierraChartData private label. In this particular case you will need to set Global Settings >> Data/Trade Service Settings >> Connection Details >> Connect to Market Data Server to False.

CQG only allows one connection to the CQG system per CQG username at a time. The solution to this is to use the DTC Server in Sierra Chart.

Market Data Authorizations for Symbols/Exchanges

To receive streaming real-time data from the CQG Trading Platform service for a particular symbol requires that your CQG Trading account is authorized for the exchange that the symbol trades on.

You will need to contact your Trading service and have them authorize your CQG account for the exchanges that you require.

An example message you will see in the Sierra Chart Window >> Message Log is the following which indicates your CQG trading account is not authorized for the particular exchange the symbol trades on:

CQG FIX Trading | Market data subscription for F.US.EPZ15 was unsuccessful. Text: Real-time data for instrument F.US.EP (corresponding to ID = 1) are not allowed.

You will also see Symbol is Unknown displayed on the chart for 30 seconds when a Symbol is not authorized on your CQG trading account.

Additionally, to receive market data, select Global Settings >> Data/Trade Service Settings. Set the Connection Details >> Connect to Market Data Server to True. This is necessary if you are using the CQG market data feed.

After your account has been authorized for the exchange or exchanges for the symbol or symbols that you want to follow, and you have set your correct CQG Username and Password in Global Settings >> Data/Trade Service Settings, then follow the procedure to reconnect to the data feed.

ICE Historical and Real-time Data: Unless you are paying the USD 110 exchange fee for the ICE exchange you will not receive any historical or real-time data for any ICE symbols. There is a separate USD 110 cost for both ICE US and ICE Europe.

Common Error Messages

This section lists common error messages you may receive in the Sierra Chart Message Log (Window >> Message Log) or Trade Service Log (Trade >> Trade Service Log) relating to CQG Trading.

  1. CQG FIX Trading | Market data logon unsuccessful. Server message: Logon failed: Trader is not enabled to use SierraChart client application. Please contact your FCM

    If you receive the above message in the Message Log, then contact your Trading service and refer them to the CQG Account Requirements section for what needs to be enabled on your CQG account in order to be able to connect.

  2. Trader is not enabled to use FIX connection. Contact your FCM.

    If you receive the above message in the Message Log, then contact your Trading service and refer them to the CQG Account Requirements section for what needs to be enabled on your CQG account in order to be able to connect.

  3. CQG WebAPI | Market data logon unsuccessful. Server message: Unknown client application.

    If you receive the above message in the Message Log, then contact your Trading service and refer them to the CQG Account Requirements section for what needs to be enabled on your CQG account in order to be able to connect.

  4. CQG WebAPI | Market data logon unsuccessful. Server message: Username or password is incorrect

    If you receive the above message in the Message Log, then check the Username and Password in Global Settings >> Data/Trade Service Settings >> Service Setting and make sure they are correct. These need to be set to your CQG provided Username and Password. Make sure the Service Setting >> Server is set to either Demo or Live depending upon whether you have a Demo or Live account through CQG.

    Contact your broker/trading service to find out what your CQG Username and Password are if you do not know. Sierra Chart support will not know what they are. These are different than your Sierra Chart Account Name and Password.

  5. CQG FIX: Received a Logout message. Text = UserName does not exist. Contact Customer Support for assistance.

    The above message, "UserName does not exist. Contact Customer Support for assistance." originates from the CQG system and indicates the Username you have specified in the CQG settings in Sierra Chart does not exist on the CQG FIX system.

    Select Global Settings >> Data/Trade Service Settings . Make sure the Service Setting >> Server is set to either Demo or Live depending upon whether you have a Demo or Live account through CQG. Press OK. Try connecting again with File >> Connect to Data Feed.

    If Sierra Chart is still not able to connect to CQG, then select Global Settings >> Data/Trade Service Setting. Set Service to CQG Web API. Press OK. Try connecting again with File >> Connect to Data Feed.

    For further details, refer to Setup Instructions.

    If there still is the same error message when connecting, contact your broker/trading service and find out what your correct CQG Username and Password are. When you have these, follow through the Setup Instructions again.

  6. CQG Trading FIX: Received a Logout message. Text = Too many logon attempts. Please contact your FCM.

    The above message, "Too many logon attempts. Please contact your FCM." means there have been too many connection attempts to the CQG FIX server and further connections are being blocked. Follow through the instructions at step 4 in the Setup Instructions and reenter your Username and Password to make sure they are correct. If you are not sure what they are, contact your broker and get your current CQG Username and Password and reenter them into Global Settings >> Data/Trade Service Settings.

    Connect again to the server with File >> Connect to Data Feed. If you continue to get the message "Too many logon attempts.", contact your broker and see if they need to unlock your account.

  7. CQG FIX Trading | Market data logon unsuccessful. Server message: Trader is not enabled to use SierraChartData. Please contact your FCM.

    The first step when encountering this message is to select Global Settings >> Data/Trade Service Settings. Make sure the Service Setting >> Server setting is set to Live or Demo based upon whether you want to connect to the live or demo server. Connect again to the server with File >> Connect to Data Feed.

    If you still encounter the above message, you need to contact your broker/trading service and have them enable the Sierra Chart Connection Mode with the SierraChartData private label to be able to connect to the CQG Web API. For additional details, refer to CQG Account Requirements.

  8. CQG FIX: Connecting to demo.cqgtrader.com. Port: 6912.
    CQG FIX: Sending the Logon message.
    CQG FIX: Received a Logout message. Text = Trader is not enabled to use SierraChart. Please contact your FCM.

    The above message means you need to contact your broker/trading service and have them enable your CQG account to allow the SierraChart client application to be able to connect to the CQG FIX server. For additional details, refer to CQG Account Requirements. As an alternative try setting Global Settings >> Data/Trade Service Settings >> Service to CQG Web API and try connecting using that Service.

  9. Text: Order Action rate exceeded. Order Modification failed. Please call CQG.

    A message containing the above text can be displayed in the Trade Service Log when there are too many order actions (new orders, order modifications, or order cancellations) occurring within too short of a time period. You need to contact CQG and have them increase the allowed order action rate for your account. This message comes from CQG.

CQG Symbol Format

The symbols passed to CQG FIX API are expected to be strictly formatted as shown below.

Refer to the CQG Tradable Symbols XLSX document for the available symbols.

Type Formula
Futures F.[commodity prefix].[instrument symbol][month code] [two-digit year code]
Relative Daily Future F.[commodity prefix].[instrument symbol]
Options [C or P].[commodity prefix].[instrument symbol][month code][twodigit year code][strike price]
Fixed Income T.[commodity prefix].[instrument symbol]
Cash and Currency X.[commodity prefix].[instrument symbol]
Exchange-Traded Spreads The [instrument symbol] should include the type of strategy and strategy leg gap without additional periods. See: http://www.cqg.com/Docs/ExchangeTradedStrategies.pdf

The commodity prefix is usually US. You can confirm the prefix using Symbol Search in CQG IC. Some exceptions are stocks on the Australian Stock Exchange (AU), the Bombay Stock Exchange (IN), and German Equities (DE), for example.

CQG Exchange Traded Strategies/Spreads Symbol Format

Sierra Chart supports CQG exchange traded strategy and spread symbols. It is necessary to use the standard CQG format for these.

The format is described in the Symbology for Exchange-Traded Strategies PDF document.

Once the correct symbol format is determined, add F.US. in front of it. Example: F.US.ZSES4N18. This is required.

The year is two digits. So you may need to change the year to two digits if necessary. For a particular strategy/spread contract, you must use a two digit year in the symbol and consistently use that symbol in the different charts, Trading DOMs, and Quote Boards. If for the particular strategy/spread contract, there is a symbol inconsistency in the different places you are using that symbol in Sierra Chart, there will be conflicts with symbol data mapping due to how the CQG system works. This is not related to Sierra Chart itself. If you have changed between a single digit year and a two digit year for a particular strategy/spread contract you must reconnect to the data feed.

To open a chart or Trade DOM for one of these strategy symbols, select File >> Find Symbol. In the Selected Symbol box, enter the complete symbol and press the appropriate button.

The strategy symbols listed in File >> Find Symbol >> Futures Spreads - * (SC Exchange Data) are only for when using the Sierra Chart Exchange Data Feed.

If you want to change the symbol of an existing chart or Trade DOM, refer to the Changing the Symbol of a Chart section.

Historical Price Data

To be able to receive historical price data for strategies/spreads, requires that your CQG account is authorized for historical price data. You will need to contact your broker or clearing firm and request this be done.

If it is not, you will see a message like the following in the Window >> Message Log.

Time and sales data for instrument F.US.EDAL12 (corresponding to ID = 21) is not allowed.

Even if you are using strategy symbols only with Trade DOMs, it still is necessary to have historical pprice data if you will be using the Volume by Price study on the Trade DOM or performing replays. Otherwise, it is not necessary to have access to this data.

If you want to trade exchange traded strategies/spreads, it is recommended use the CTS trading platform service instead of CQG. It is supported to automatically list the symbols in the same way it is supported with the Sierra Chart Exchange Data Feed.

CQG Options Symbol Format

Sierra Chart supports charting and trading options when using CQG.

Historical chart data for options is available from the CQG data feed if your CQG account is properly authorized for historical data. Also, any data received in real-time is stored by Sierra Chart for options symbols.

The option symbol format is as follows:

[Call or Put].US.[Base Symbol][Month Code][2 Digit Year][Strike Price]

  1. Update Sierra Chart to the current version with Help >> Download Current Version.
  2. To look up an option symbol, select File >> Find Symbol.
  3. Select a specific underlying futures contract in the Futures list.
  4. Press the Get Options button. The option symbols will be requested and listed under the futures contract. A large number of symbols can be returned. In some cases 20,000 or more.
  5. Select the option symbol you want and press the Historical Chart, Intraday Chart or Trading DOM button. Refer to the image below.

Solving CQG Market Data Feed Problems

When using CQG the following problems can be encountered with market data from CQG.

  • Symbol does not update in real time on a Chart, Trade DOM, or Quote Board.
    1. Make sure you are using the correct symbol format. Refer to CQG Symbol Format.
    2. Refer to the Market Data Authorizations for Symbols/Exchanges section to make sure your CQG trading account has the proper authorizations for the exchanges that you need data for.
  • Data is Lagging.
    1. Refer to help topic 4.
    2. Set Global Settings >> Data/Trade Service Settings >> Service Setting >> Allow Server to Drop Data to True. Select this option in the list and change the state of the checkbox below the list of settings.
    3. After changing the above setting, reconnect to the data feed.
    4. If this does not resolve the problem or if you notice missing data from your charts when this setting is set to True, then use the Sierra Chart Exchange Data Feed.
  • Data is Incomplete.
    1. Set Global Settings >> Data/Trade Service Settings >> Service Setting >> Allow Server to Drop Data to False. Select this option in the list and change the state of the checkbox below the list of settings.
    2. After changing the above setting, reconnect to the data feed.
    3. To re-download the existing Intraday data in an Intraday chart to recover any missing data, refer to Retrying the Download When There is Data in the Chart.
    4. If this does not resolve the problem, then use the Sierra Chart Exchange Data Feed.
  • Data Feed Stops.
    1. Reconnect to the data feed.
    2. If this problem is ongoing and you have to frequently reconnect, then use the Sierra Chart Exchange Data Feed.
  • Frequent Reconnections.

    If the data feed stops, there is a reconnection to the data feed and the following messages are listed in the Window >> Message Log at that time, then this indicates the CQG server has closed the connection for unknown reasons.
    CQG WebSocket socket (35) | Close event error. Windows error code 10053: An established connection was aborted by the software in your host machine.
    CQG WebSocket socket (35) | Socket gracefully closed by remote side.
    CQG WebSocket socket (35) | Received socket Close event.
    CQG WebSocket socket (35) | Initiating close of socket by core.
    CQG WebSocket | Network socket for WebSocket has been closed by remote side.

    Or
    CQG WebAPI | Websocket received OpCode Close. Received status code: 1000
    CQG FIX Trading | Websocket closed.
    Connection to the external service has been lost.
    If this problem is ongoing, then it is recommended you use the Sierra Chart Exchange Data Feed.

    If the problem has to do with market data not being received to your client-side quickly enough and the server is closing the connection for that reason, then the Sierra Chart Exchange Data Feed has a Low Bandwidth Option which may help.

Frequent Server Disconnections when Using CQG

If you have a problem where there are relatively frequent disconnections of Sierra Chart from the CQG server, the first thing to do is to make sure you are running the current version of Sierra Chart.

Update with Help >> Download Current Version. However, this will only potentially be a solution when updating from some older versions due to a problem with Open SSL which we have already resolved. If you are affected by the Open SSL error, you will see a message which contains the following text in the Message Log at the time of the disconnection: error:140E0197:SSL routines:SSL_shutdown:shutdown while in init. For the record, this particular issue is an old issue and is not applicable to any user any longer. It is only here for the historical record.

If you are running a current version of Sierra Chart and still run into frequent disconnections from the CQG server, this is going to be a CQG server problem, a network connectivity issue somewhere, or you have more than one connection to the same CQG username from either Sierra Chart or another program. Sierra Chart cannot help with these issues other than what is explained here.

As a matter of policy we will only refer to the documentation here. We no longer put any further effort into CQG connection problems because we cannot solve them and they are very common among some users for reasons which we do not know other than what we have explained here. We ourselves maintain a constant connection to CQG and do not notice ongoing connection issues.

If the problem is related to having more than one connection to CQG using the same username, then the Message Log will have messages like the following:

CQG WebAPI | Received LoggedOff message. Reason: Your session was closed due to a concurrent session.

In this case you need to disconnect all copies of Sierra Chart and other programs from your CQG username other than one.

If the connection issue is not related to having more than one simultaneous connection, then consider setting Global Settings >> Data/Trade Service Settings >> Service to CQG FIX Trading if you are not already using that connection. In version 1693 and higher, the FIX connection has more graceful, and therefore faster, automatic reconnecting when there is a disconnection from the server side.

Also, use the Sierra Chart Exchange Data Feed for market data instead of relying on CQG. This will remove the need for the CQG Web API for market data which removes a second CQG connection. After activating the Sierra Chart Exchange Data Feed for market data, you need to follow these steps to remove the use of the CQG Web API.

  1. Select File >> Disconnect.
  2. Select Global Settings >> Data/Trade Service Settings.
  3. Set Service Settings >> Connect to Market Data Server to False/unchecked.
  4. Press OK.
  5. Select File >> Connect to Data Feed.

Other than the above, there is no further help Sierra Chart support can provide with CQG connection problems.

For the record, Sierra Chart uses a very reliable and high-performance network communications foundation fully developed by Sierra Chart senior engineers which runs on a separate thread. There simply is no possibility this issue could be within Sierra Chart itself. This is the very same foundation and code, used throughout the entire Sierra Chart infrastructure which handles immense amounts of market data every day reliably including the market statistics data feed which many of you use and can see does not have a frequent disconnection problem.

Additionally Sierra Chart sets the operating system TCP No Delay flag for all network communications, so there is no delay when any data is sent out to the network by Sierra Chart. And the same dedicated background thread of execution and code handles multiple network connections including the CQG connection. So if this were a problem within Sierra Chart or at the operating system level, all of the network connections would be affected. They are not. Only the CQG connection gets lost. It is our best educated guess, that this issue is a CQG issue which has something to do with their network or a particular ISP they are using.

CQG Trading Account Numbers

When Sierra Chart connects to the CQG trading server whether this is the FIX server or the Web API server, it receives the account number or numbers assigned to your CQG username. You can select a particular Trade Account you want to use, on the Trade Window. Refer to Selecting Trade Account.

The correct account number should be properly assigned to your CQG username, however you need to check with your broker about this.

The account number that you actually see from the FIX server and listed on the Trade Window may be different than the account number you see on the account statements from your broker. The account number you see listed is the account number from FIX Tag 1. This is a valid account number.

Trust the account number received from the FIX server is the correct account number and maps to the correct account name that your broker may use. Your broker should be able to confirm this.


*Last modified Saturday, 17th November, 2018.