September 3, 2022

5 5

Close Minus Moving Average – CMMA

Note: Please install before CMMA Log ATR indicator.


The idea for this indicator came from Timothy Masters, author of the book Statistically Sound Indicator For Financial Market Prediction.

We simply compute the moving average of log closing prices over a look-back period that does not include the current case and subtract it from the log value of the current closing price. The normalization of this indicator is composed of three components. The most important one is divided by the actual range of log prices with ATR, which includes the current bar. This scaling compensates for both regimes and markets with different inherent volatility. A second normalization is that we divide by the square root of one plus the lookback.

Source: Statistically Sound Indicators For Financial Market Prediction: Algorithms in C++


The indicator has one line:

  1. CMMA

 We have added these conditions as custom blocks:

  • CMMA is above/below Level
  • CMMA is rising/falling
  • CMMA crosses above/below Level


Indicator is implemented for: MT4/MT5/Tradestation/ Multicharts.

You can download the indicator and conditions here.



Newest Most Voted
Inline Feedbacks
View all comments
September 7, 2022 9:11 am

Excellent !!! Thank you Ivan !!!

Joey Oon
Joey Oon
September 7, 2022 3:50 pm

Seems to have errors during compile

Reply to  Joey Oon
September 8, 2022 5:49 pm

Can you please send us a strategy affected by this? Please send to email

Joey Oon
Joey Oon
Reply to  tomas262
September 9, 2022 7:10 am

Figured it out, need to import LogATR first before CMMA. Thanks.

Philip Spencer-Walters
Philip Spencer-Walters
September 15, 2022 5:56 pm