Build a Technical Studies Dashboard

Excel users with RTD links to both market and study data can design a real-time dashboard that can monitor a portfolio of instruments and the status of various studies. This is the topic of this post.

First, be careful regarding the number of instruments and studies being pulled from CQG to Excel using RTD formulas. Excel can cause a drag on the CPU due to the high volume of requests for updates especially at the time of an important economic release. One suggestion is to turn Excel's Formula Updates to Manual from Automatic to temporarily reduce any negative impacts on the CPU from Excel.

f1

This post uses the RTD formulas provided in the CQG RTD Toolkit (an Excel Add-in automatically installed with CQG IC or QTrader).

For access to other RTD calls for CQG studies a downloadable sample of most studies and bar types is found here.

For RTD calls for custom studies created in CQG this post details the steps to determining the RTD formula.

For RTD calls for market label data, such as seen in a CQG Quote Spreadsheet please review this post.

f2

To use the CQG RTD Add-in, first select the Add-in on the Excel ribbon and then click Studies. The studies are Moving Average, Bollinger Bands, Oscillator, Momentum, RSI, and the Parabolic Study.

f3

The default dialog is the Moving Average study, which is the first tab. The other studies are the next five tabs. In the downloadable sample spreadsheet, the symbol is in cell A2, and the time interval is 5-minutes.

The choice for moving average types includes:

  • Simple
  • Smoothed
  • Exponential
  • Weighted
  • Centered
  • Median
  • Trix
  • Exponential Hull

The Format offers two formats, decimal (True) or non-decimal (Display).

Clicking "Advanced..." opens an additional dialog where you can choose the sessions. To Equalize closes, use the custom BATS filter, and select the recalculation mode. For more information detailing the recalculation mode please view the Help file.

f4

For more information on the moving average study please review the Help file.

The RTD formula for the Moving Average Study:

=RTD("cqg.rtd",,"StudyData",A2,"MA","MAType=Sim,Period=21,InputChoice=Close","MA","5Min","0","all","","","False","T","ExcelInterval","")

The downloadable sample spreadsheet replaced "5Min" with cell reference B2 so the time interval for all of the RTD formulas can be changed on the fly from the Main tab. Select the spreadsheet and perform a "Find & Replace."

f5

=RTD("cqg.rtd",,"StudyData",A2,"MA","MAType=Sim,Period=21,InputChoice=Close","MA",B2,"0","all","","","False","T","ExcelInterval","")

An individual tab is used for each study. This is the Moving Average Tab:

f6

The three symbols and the Time Interval are inputs on the Main tab.

Here is the dialog for the Bollinger Bands study.

f7

For more information on the Bollinger Bands study please review the Help file.

This next image is the Bollinger Bands tab.

f8

Here is the dialog for the Oscillator study.

f9

For more information on the Oscillator study please review the Help file.

This next image is the Oscillator tab.

f10

Here is the dialog for the Momentum study.

f11

For more information on the Momentum study please review the Help file.

This next image is the Momentum tab.

f12

Here is the dialog for the RSI study.

f13

For more information on the RSI study please review the Help file.

This next image is the RSI tab.

f14

Here is the dialog for the Parabolic study.

f15

For more information on the Parabolic study please review the Help file.

This next image is the Parabolic tab.

f16

The Main Tab is pulling study values from the other tabs.

f17

You can change the symbol and the time interval. You may have to format prices to the appropriate number of decimals.

If the last trade is above the moving average then "Uptrend" appears next to the MA value, otherwise "Downtrend" appears.

The Bollinger Band values are the values from the previous bar. This will be fixed values until the current bar closes.

The Oscillator, Momentum, and RSI values are the current values and the maximum and minimum values for the past 20 values.

Finally, the Parabolic study indicates the current position is Long or Short and the trailing stop values.

Excel connecting to CQG using RTD formulas can provide a platform for customized dashboards suited to your requirements.

Requirements: CQG Integrated Client or QTrader, and Excel 2016 (locally installed, not in the Cloud) or more recent.

Downloads

Disclaimer

Trading and investment carry a high level of risk, and CQG, Inc. does not make any recommendations for buying or selling any financial instruments. We offer educational information on ways to use our sophisticated CQG trading tools, but it is up to our customers and other readers to make their own trading and investment decisions or to consult with a registered investment advisor. The opinions expressed here are solely those of the author and do not reflect the opinions of CQG, Inc. or its affiliates.