Coding

Blogs

Recently, we had a request to show, in real time, how many contracts are available on the buy and sell side in the order book. This can be accomplished with a very simple study: DOM Ask Volume (DomAskVo) (and DomBidVo for Dom Bid Volume).

... more

Blogs

In this article, we will review a CQG indicator that has been available for many years and is still very relevant. It is possible to find divergence using the CQG formula toolbox, but it usually results in quite complicated and longwinded studies... more

Blogs

CQG's Formula Builder Toolbox gives you the ability to use parameters (variables) inside your CQG code in order to control studies, conditions, and trade systems externally without the need to edit the code anytime you want to change something.... more

Blogs

In this article we will look into different ways to use an event to set up a trading opportunity. We will review the differences between BarsSince, Happenedwithin, and Set/Reset.

The first example is very simple. We want to buy the... more

Blogs

After we looked into some time frame considerations in my last article, the next logical question is to ask if CQG can "optimize time." CQG Trade System Optimizer (TSO) does not allow us to optimize a trade system by answering the question on... more

Blogs

What is the right time frame for your trading?

Any data we analyze is more representative if we have a bigger number of samples. Asking ten people how the next elections will turn out will most likely give you a less accurate picture than... more

Blogs

One of my first backtesting tips featured a piece of code to limit a trading system only to one trade per day.

My colleague Doug came up with a smarter way to do this and even added the possibility to define how many trades he would allow... more

Blogs

One of the questions we received recently was if it is possible to trigger a trade in a certain market based on another trading system trading a different market. The answer is yes. Here is how to do it and some traps to watch out for.

... more

Blogs

In my previous article, Backtesting Tip: Parameters inside CQG Code, I discussed the different parameter types and how to use them. This is important for all backtesting users because only values created as a parameter (Parms) can be optimized... more

Blogs

Occasionally we receive requests from traders asking how to protect their own formulas from being viewed and modified by someone else. Here is a short guide detailing the steps.

The quick way is to select the Hide Formula when 'Deny Copy'... more