I am currently using CQG for spread trading and have a spread trading strategy in CQG chart. I am trying to automate my spread trading strategy in CQG, but CQG told me to look at CQG API samples to build my own system or get third party software.

The CQG trade system doesn't allow you to automate your strategy in CQG IC. So, I need automated trading software to execute my strategy. CQG API should allow you to build your own execution system. Could you tell me which example in CQG API sample helps to start building a spread trading system? For example, buy A instrument and sell B instrument when the spread price goes below lower bollinger band, and put OCO limit order for stop loss and target exit. Would it be hard to make that kind of system using CQG's API?

  • 1
    $\begingroup$ What is your question exactly? "Have anyone built an execution system with CQG API"? This doesn't look like a real question at the moment. $\endgroup$ – Alexey Kalmykov Apr 4 '12 at 13:08
  • 1
    $\begingroup$ Agreed, this one needs edits. For now the answer is either yes or no. What do you really want to know? $\endgroup$ – Bob Jansen Apr 4 '12 at 17:25
  • $\begingroup$ Yes, I've been working with the CQG API for 1.5 years and designed a system in C# to execute orders and monitor positions. Ive made some prop entry/exit orders and batched orders across accounts which can't be done easily from the CQG IC. What do you want to know? $\endgroup$ – Filip Apr 5 '12 at 3:37
  • 2
    $\begingroup$ Has anyone with non-trivial rep ever heard of this thing? Is this a valid pro question? $\endgroup$ – Tal Fishman Aug 3 '12 at 14:41
  • $\begingroup$ This sort of thing is probably better automated with NinjaTrader, or perhaps Quantopian. Definitely it doesn't seem like a question for quant.SE? $\endgroup$ – experquisite Aug 3 '14 at 16:08

Based on the conditions you set forth this would be relatively simple in the CQG API. You can, for example, set up condition triggers in the IC. All you're really asking is for an API action following one of the triggers.

Pseudo code would be something like this:

Handles event trigger:
If (additional conditions) then
execute trade.

Are you just shopping for an API?


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.