Coding

Events That Set Up a Trade

Jul 31, 2014

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

Early-Onset Trend Indicator

Jul 07, 2014

For this month's Traders' Tips, we provide CQG code for the Early-Onset Trend Indicator, described in the August 2014 Stocks and Commodities Magazine article, The Quotient Transformation by John F. Ehlers.

... more

Optimizing Time

Jul 03, 2014

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

Time Frame Considerations

Jun 13, 2014

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

Number of Trades Per Day and "X" Events

May 28, 2014

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

Trades Based on a Different Trading System

May 14, 2014

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

Trade System Optimizer

May 06, 2014

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

Parameters inside CQG Code

Apr 30, 2014

We are getting a lot of questions about CQG parameters (Parms). In CQG, parameters are used for everything that needs to be controlled from the user interface and only Parms can be optimized.

The window above shows an example of a... more

Close vs. Open in Trading Systems

Apr 17, 2014

The Peak-Ahead Problem

For most people the quick and dirty method of building trading systems using the signal bar closing price is good enough to judge a trading system. (CQG's formula toolbox gives you the close as the... more

Heikin-Ashi Charts

Apr 14, 2014

In CQG 2014 we will introduce three new chart types plus sub-minute bars, such as ten-second bar charts. In the next few articles we will have a short look into each one of them, starting with Heikin-Ashi charts.

Heikin-... more