Indicators: MAMA

 

MAMA:

Mesa Adaptive Moving Average (MAMA) indicator.

The indicator is a moving average based on the EMA algorithm and adapted to a financial instrument current volatility.  The indicator consists of two averages - fast MAMA (green line) and slow FAMA (red line). Crossover of the averages provide signals for market entries and exits.

Two variants of the indicator are presented here: MAMA.mq5 and MAMA_Optim.mq5. Their only difference is that the second one is more optimized for computer resources saving and more preferable for using in Expert Advisors, while the first one has more clear code.

Author: Nikolay Kositsin

MAMA

 

Dear, you should correct a mistake, because it has been dragging on since MT4 version:

Q2[0] = Q1[0] + jI[0]; - this is the correct line.

 
igorad:

Dear, you should fix the error, because it is pulling from MT4 version:

Q2[0] = Q1[0] + jI[0]; - this is the correct line.

OK! Corrected! And the funny thing is that I checked the code with the Omega source! I still didn't see it.
 

How do I fix this? Thank you.

 
G001:

How do I fix this? Thank you.

It seems that the source code didn't take into account the possibility of an error when dividing by zero! I had to cut the code and sew the missing elements! Wait for the files to be updated!
 
GODZILLA:
It seems that the source code didn't take into account the possibility of an error when dividing by zero! I had to cut the code and sew the missing elements! Wait for the files to be updated!
Thank you very much, and thanks again for all your codes as well.
 

Hello

Can I use this with metatrader 4?

 
Flabby #: Can I use this with metatrader 4?
No, it's for MT5/MQL5. Search the codebase for a MT4/MQL4 version.
 

Thank you for answering.

Might you have a link which I could look at?

 
Flabby #: Thank you for answering. Might you have a link which I could look at?

Click on the CodeBase and search for MAMA. Is it that difficult? Show some effort!