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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Adaptive Moving Average (AMA)<br />

Page 213<br />

The Adaptive Moving Average (AMA) study is similar to the exponential moving average (EMA),<br />

except the AMA uses a scalable constant instead of a fixed constant for smoothing the data.<br />

The formula for the exponential moving average is:<br />

EMA(today) = C*(price(today) – EMA(yesterday)) + EMA(yesterday)<br />

C is a smoothing constant where C = 2(N+1), <strong>and</strong> N is a number used to approximate a simple<br />

moving average. C ranges between 0 <strong>and</strong> 1. For example, to use an EMA with similar<br />

characteristics to a 10-bar simple moving average, use N= 10. Therefore, C = 2/(10+1) = 2/11<br />

= 0.1818.<br />

The formula for the AMA is:<br />

AMA(today) = SC*(price(today) – AMA(yesterday)) + AMA(yesterday)<br />

Where SC = Scalable Constant<br />

The AMA uses two constants based on a fast EMA (short look back period) <strong>and</strong> a slow EMA<br />

(long look back period). The scalable constant, which has a range between 0 <strong>and</strong> 1, weights the<br />

AMA calculation between the two exponential moving averages by adjusting the constant. This<br />

weighting is based on the degree of market direction relative to market volatility. The higher<br />

the degree of trending by the market, the more the weighting shifts to the fast exponential<br />

moving average constant. If the market is moving in congestion, then the weighting shifts to<br />

the slow exponential moving average constant.<br />

The scalable constant uses a market Efficiency Ratio to determine the degree of trend by the<br />

market. The ratio is direction relative to volatility.<br />

Direction is the difference between the current bar’s close <strong>and</strong> the close N bars back.<br />

Volatility is the difference between each close over N bars back. The absolute value of each<br />

difference is summed:<br />

ER =Abs(Direction/Volatility) where,<br />

Direction = Price(today) – Price(N bars back)<br />

<strong>and</strong><br />

Here, the volatility measurement is the sum of the absolute value of the one bar difference in<br />

closes over the look back period N. The default for N is 10 bars.<br />

If the direction <strong>and</strong> the volatility readings are similar (i.e., the market is trending), the ratio<br />

approaches 1. If the direction <strong>and</strong> the volatility readings are not similar (i.e., the market is in<br />

congestion), the ratio approaches 0.<br />

The Efficiency Ratio is used to scale between the two constants from the two exponential<br />

moving averages (fast <strong>and</strong> slow). The default values are 2-bar <strong>and</strong> 30-bar EMAs. Therefore, the<br />

default constants are as follows:<br />

Fast = 2/(2+1) <strong>and</strong> Slow = 2/(30+1)<br />

Fast = 0.6667 <strong>and</strong> Slow = 0.0645<br />

The formula for weighting or scaling the constant is as follows:<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!