3. 9. 2022

5 7

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.

 

 

Subscribe
Notify of
7 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
Emmanuel
7. 9. 2022 9:11 am

Excellent !!! Thank you Ivan !!!

Joey Oon
7. 9. 2022 3:50 pm

Seems to have errors during compile

tomas262
Admin
Reply to  Joey Oon
8. 9. 2022 5:49 pm

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

Joey Oon
Reply to  tomas262
9. 9. 2022 7:10 am

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

Philip Spencer-Walters
15. 9. 2022 5:56 pm

Hello

Hector Floria
Hector Floria
21. 11. 2023 1:48 pm

Pseudo Code not generated for this indicator, error “When calling macro “printInput””

MT4, MT5 & Easylanguage code are ok.

Please fix the indicator, it seems an interesting one.

Manos
Reply to  Hector Floria
27. 12. 2023 11:25 am

try adding “true” in the template (CMMA.tpl, in user\extend\Code\PseudoCode\blocks folder), not sure if it’s correct fix but the error seems to go away

CMMA (<@printInput block true />, <@printParam block "#Lookback#" />, <@printParam block "#ATRLength#" />)[<@printShift block shift />]