09.12.2012 Views

Charting and Studies User Guide - CQG.com

Charting and Studies User Guide - CQG.com

Charting and Studies User Guide - CQG.com

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

The formula for calculating the ESMA is as follows:<br />

ESMA = pESMA - ( Smoothing Constant X ( pESMA - PRICE ) )<br />

In the above formula:<br />

ESMA is the new Exponentially Smoothed Moving Average.<br />

pESMA is the Previous ESMA value.<br />

PRICE is the value of the PRICE used for each bar, e.g. CLOSE<br />

Page 291<br />

Note: A decimal value Smoothing Constant equal to 0.0 stops the ESMA from being displayed,<br />

however, an ESMA will appear if the integer 0 is entered without the decimal point.<br />

Weighted Moving Average Calculation<br />

The <strong>CQG</strong> weighted moving average assigns weights linearly, assigning greater weights to more<br />

recent data points.<br />

Example:<br />

A 21 period weighted moving average would be calculated as follows:<br />

[21 * Close (0)] + [20 * Close (-1)] + [19 * Close (-2)] +…….[1 * Close (-20)]<br />

<strong>Charting</strong> <strong>and</strong> <strong>Studies</strong> <strong>User</strong> <strong>Guide</strong>

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!