The Moving Average Adaptive Q (MAAQ) was authored by Perry Kaufman in the Stocks and Commodities Magazine 06/1995. The MAAQ uses price, previous price and a prior price in a series of mathematical manoeuvres including feedback to arrive at its final form. The user may change the input (close) and the period length. This indicator’s definition is further expressed in the condensed code given in the calculation below.

Moving Average Adaptive Q may be used in conjunction with other indicators. No trading signals are given.

### How To Access in MotiveWave

or go to the top menu, choose Add Study, start typing in this study name until you see it appear in the list, click on the study name, click OK.

Important Disclaimer: The information provided on this page is strictly for informational purposes and is not to be construed as advice or solicitation to buy or sell any security. Please see our Risk Disclosure and Performance Disclaimer Statement.

### Calculation

//input = price, user defined, default is close
//period = user defined, default is 10
//prev = previous, abs = absolute value
//pow = power, index = current bar number
//lrv[0] = a in the line equasion y = a + mx

```fastest = 0.667;
slowest = 0.0645;
prevP = price[index-1];
diff = abs(price - prevP);
priorP = price[index-period];
priorDiff = abs(price - priorP);
sumPrev = sum(period, DIFF);
prevMaaq = ifNull(price, maa[1]);  //returns price on first try
temp = ((priorDiff / sumPrev) * fastest) + slowest;
Plot: maaq = prevMaaq + pow(temp, 2) * (price - prevMaaq);
```