Difference between revisions of "CQG Broker Plug-in"

From MultiCharts
Jump to navigation Jump to search
(Created page with "To connect MultiCharts to CQG data feed, it is necessary to have their software installed on the computer. CQG has 2 programs that can be used for connection MultiCharts to CQ...")
 
 
(7 intermediate revisions by 3 users not shown)
Line 1: Line 1:
To connect MultiCharts to CQG data feed, it is necessary to have their software installed on the computer. CQG has 2 programs that can be used for connection MultiCharts to CQG:
+
== General Information ==
# http://www.cqg.com/Support/Getting-Started/CQGT.aspx
 
# http://www.cqg.com/Products/CQG-API.aspx<br><div style="background-color: #E3FBE5;">'''Note''': CQG software and MultiCharts should not be launched simultaneously.</div>
 
  
Open position Profit/Loss is provided through CQG API.
+
Please make sure that your PC meets CQG requirements and technical specifications: http://www.cqg.com/Docs/CQGTraderSystemSpecs.pdf
  
Unrealized Profit/Loss for the account is provided through CQG API.
+
If you need '''data''' from CQG data source, make sure you have [[CQG|'''CQG data feed''']] set up.
 +
 
 +
It is possible to use different accounts for getting data and trading.
 +
 
 +
Indexes are supported only with Live CQG/AMP accounts.
 +
 
 +
Open position Profit/Loss is provided through CQG API. Unrealized Profit/Loss for the account is provided through CQG API.
  
 
If MultiCharts sends a stop order with the price equal to current market price or better (guaranteed to be executed) it will be rejected by the broker. Therefore, MultiCharts converts such stop orders into market orders.  
 
If MultiCharts sends a stop order with the price equal to current market price or better (guaranteed to be executed) it will be rejected by the broker. Therefore, MultiCharts converts such stop orders into market orders.  
<div style="background-color: #E3FBE5;">Note: If a stop order is adjusted manually or by your script to the price equal to current market price or better (guaranteed to be executed), the order won’t be converted into market order. It will be rolled back.</div>
+
<div style="background-color: #E3FBE5;">'''Note''': If a stop order is adjusted manually or by your script to the price equal to current market price or better (guaranteed to be executed), the order won’t be converted into market order. It will be rolled back.</div>
  
 
Stop-Limit orders: if at the moment an order is sent its stop level is met, then it will be converted into market order.
 
Stop-Limit orders: if at the moment an order is sent its stop level is met, then it will be converted into market order.
Line 14: Line 18:
 
Stop-Limit orders with stop and limit levels not overlapping each other are rejected by the broker.
 
Stop-Limit orders with stop and limit levels not overlapping each other are rejected by the broker.
  
When an orders is sent from MultiCharts to CQG broker to be executed on an expired contract, the broker will automatically redirect the order to the same symbol, but currently active contract.
+
When an order is sent from MultiCharts to CQG broker to be executed on an expired contract, the broker will automatically redirect the order to the same symbol, but currently active contract.
  
 
CQG does not support Native One-Cancels-Others group. In this case MultiCharts emulates OCO group on its end. Simulated OCO-group means that all OCO orders are sent to the broker, price is monitored by MultiCharts and once one of the orders is filled, other orders from this OCO group are cancelled by MultiCharts. When one of the OCO orders is filled, MultiCharts sends a command to cancel the second OCO order to broker.  Note that the second order may also be filled if price reaches its level before the cancellation is processed by the broker (see [[Trading Risks# OCO-Orders Risk|OCO-Orders Risk]]).
 
CQG does not support Native One-Cancels-Others group. In this case MultiCharts emulates OCO group on its end. Simulated OCO-group means that all OCO orders are sent to the broker, price is monitored by MultiCharts and once one of the orders is filled, other orders from this OCO group are cancelled by MultiCharts. When one of the OCO orders is filled, MultiCharts sends a command to cancel the second OCO order to broker.  Note that the second order may also be filled if price reaches its level before the cancellation is processed by the broker (see [[Trading Risks# OCO-Orders Risk|OCO-Orders Risk]]).
  
====Setting up CQG Broker Plug-in====
+
== Setting up CQG Broker Plug-in ==
 +
 
 +
In MultiCharts Main Menu go to Format and select Strategy Properties. Click Auto Trading tab and select CQG (see '''[[Auto Trading#Select Broker Plug-in|Auto trading settings]]''') then click Settings tab.<br>
 +
In the '''Properties CQG''' window enter the information provided by CQG:
 +
:* Authorization section.<br>Enter '''Login''' and '''Password'''.
 +
:* Connectivity section.<br>Make sure that the '''Server Name''' is correct.<br> From the drop-down list select '''Sim''' for a Demo account, '''Live''' for a Real account. <br>'''Custom''' should be selected only if you received specific settings and instructions from your broker.
 +
:*Default Order Settings section.<br> It is obligatory to specify an account in Account field to send orders to. Click '''Lookup''' button to get list of available accounts and select one of them.
  
In the '''Properties CQG''' window (see [[Broker Profiles Overview#Managing Broker Profiles|Managing Broker Profiles]]) enter the information provided by CQG:
+
Select one of the available '''Time In Force''' order parameters.
# Authority section. <br> Enter '''Login''' and '''Password'''.<br><div style="background-color: #E3FBE5;">'''Note''':By default demo mode is NOT turned on. Check the CQGT demo box to turn it on. Demo mode is '''required to be on''' for demo accounts. If you have real account, the box is '''required to be off'''</div>
+
:* '''DAY; or:''' <br> Order is canceled if it does not execute by the close of the trading day. Unless otherwise specified, every order is a Day order.
# Reconnection Settings section. <br/> Configure timer to reconnect if connection to CQG is lost.
+
:* '''GTC (Good-Til-Cancelled); or:''' <br>  Order will continue to work within the system and in the marketplace until it executes or is canceled.
# Default Order Settings section.<br><br> It is obligatory to specify an account in Account field to send orders to. Click Lookup button to get list of available accounts and select one of them.
+
:* '''FOK (Fill or Kill Orders); or:''' <br>Specifying that the order must execute immediately and in its entirety, or be canceled.
  
Select one of the four available Time In Force order parameters.
+
Enable '''Convert stop orders guaranteed to be executed to market orders''' checkbox if you want Stop orders to be converted into market when they are guaranteed to be executed.<br>
* '''DAY; or:''' <br> Order is canceled if it does not execute by the close of the trading day. Unless otherwise specified, every order is a Day order.
+
Enable '''Convert stop limit orders into limit orders if stop price is hit upon order placement''' checkbox if you want Stop-Limit orders to be converted into Limit when the stop price is reached when the order is placed.
* '''FOK (Fill or Kill Orders); or:''' <br>Specifying that the order must execute immediately and in its entirety, or be canceled.
 
* '''GTC (Good-Till-Canceled); or:''' <br>  Order will continue to work within the system and in the marketplace until it executes or is canceled.
 
* '''AON - All Or None; or:''' <br> A condition used on a buy or sell order to instruct the broker to fill the order completely or not at all.
 
Read more: http://www.investopedia.com/terms/a/aon.asp#ixzz22Dg5BBG7
 
* '''IOC (Immediate-or-Cancel)''' <br> Any portion of an order that is not filled as soon as it becomes available in the market is canceled.
 
  
 
[[Category:Broker Plug-ins]]
 
[[Category:Broker Plug-ins]]

Latest revision as of 12:52, 3 August 2021

General Information

Please make sure that your PC meets CQG requirements and technical specifications: http://www.cqg.com/Docs/CQGTraderSystemSpecs.pdf

If you need data from CQG data source, make sure you have CQG data feed set up.

It is possible to use different accounts for getting data and trading.

Indexes are supported only with Live CQG/AMP accounts.

Open position Profit/Loss is provided through CQG API. Unrealized Profit/Loss for the account is provided through CQG API.

If MultiCharts sends a stop order with the price equal to current market price or better (guaranteed to be executed) it will be rejected by the broker. Therefore, MultiCharts converts such stop orders into market orders.

Note: If a stop order is adjusted manually or by your script to the price equal to current market price or better (guaranteed to be executed), the order won’t be converted into market order. It will be rolled back.

Stop-Limit orders: if at the moment an order is sent its stop level is met, then it will be converted into market order.

Stop-Limit orders with stop and limit levels not overlapping each other are rejected by the broker.

When an order is sent from MultiCharts to CQG broker to be executed on an expired contract, the broker will automatically redirect the order to the same symbol, but currently active contract.

CQG does not support Native One-Cancels-Others group. In this case MultiCharts emulates OCO group on its end. Simulated OCO-group means that all OCO orders are sent to the broker, price is monitored by MultiCharts and once one of the orders is filled, other orders from this OCO group are cancelled by MultiCharts. When one of the OCO orders is filled, MultiCharts sends a command to cancel the second OCO order to broker. Note that the second order may also be filled if price reaches its level before the cancellation is processed by the broker (see OCO-Orders Risk).

Setting up CQG Broker Plug-in

In MultiCharts Main Menu go to Format and select Strategy Properties. Click Auto Trading tab and select CQG (see Auto trading settings) then click Settings tab.
In the Properties CQG window enter the information provided by CQG:

  • Authorization section.
    Enter Login and Password.
  • Connectivity section.
    Make sure that the Server Name is correct.
    From the drop-down list select Sim for a Demo account, Live for a Real account.
    Custom should be selected only if you received specific settings and instructions from your broker.
  • Default Order Settings section.
    It is obligatory to specify an account in Account field to send orders to. Click Lookup button to get list of available accounts and select one of them.

Select one of the available Time In Force order parameters.

  • DAY; or:
    Order is canceled if it does not execute by the close of the trading day. Unless otherwise specified, every order is a Day order.
  • GTC (Good-Til-Cancelled); or:
    Order will continue to work within the system and in the marketplace until it executes or is canceled.
  • FOK (Fill or Kill Orders); or:
    Specifying that the order must execute immediately and in its entirety, or be canceled.

Enable Convert stop orders guaranteed to be executed to market orders checkbox if you want Stop orders to be converted into market when they are guaranteed to be executed.
Enable Convert stop limit orders into limit orders if stop price is hit upon order placement checkbox if you want Stop-Limit orders to be converted into Limit when the stop price is reached when the order is placed.