MACD + trigger line crosses for EA ?

 
I have been using the MT4 MACD visually and manually to trade MACD and trigger line crosses.

Visually the MT4 MACD histogram and red line cross at similar to typical MACD crossing lines. However, the MT4 does not provide any code to make use of the 3 element MACD for crosses which I was unaware of. 

MQL4 reference literally says this: 

NOTE:
"In some systems it is called MACD Histogram and plotted as two lines. In MetaTrader 4 client terminal MACD is plotted as histogram."
 

The MQL reference manual has this text but the histogram is really not coordinating with the crosses that most other MACD indicators have traditionally shown. 
I wrongfully assumed that (0-MODE_MAIN, 1-MODE_SIGNAL) would be the crosses of MACD and triggers lines like traditional MACD's but it's not.

Anyhow, now what ?
I want to code the EA with MACD and trigger line crosses.

What do others do for this ? 
Thanks
Documentation on MQL5: Technical Indicators / iCustom
Documentation on MQL5: Technical Indicators / iCustom
  • www.mql5.com
[in]  Custom indicator name. If the name starts with the reverse slash '\', the EX5 indicator file is searched for relative to the MQL5\Indicators indicator root directory. Thus, when calling FirstIndicator"...), the indicator is downloaded as MQL5\Indicators\FirstIndicator.ex5. If the path contains no file, the error 4802...
 

Don't double post! You already had another thread open.

          General rules and best pratices of the Forum. - General - MQL5 programming forum 2017.07.19
 
William Roeder:

Don't double post! You already had another thread open.

          General rules and best pratices of the Forum. - General - MQL5 programming forum 2017.07.19

The other post was regarding why my EA didn't close position.
You answer that post already where you revealed that MT4 MACD does not provide a code method to trade the MACD and trigger line crosses but only allows for histogram zero line cross. You revealed that this is completely different then the MACD and trigger line crosses and thus the EA did not close position because I was expecting these crosses for the code but in reality it was not the correct code for MACD and trigger line crosses.

This raised the new question about what method to use in order to create an EA that would make use of MACD and trigger line crosses where MT4 MACD does not allow.

2 different questions is it not ?  Relevant maybe but not really the same question at all. 

 
"Other post was regarding why your EA didn't close position," using MACD. This post is about MACD. Same topic.
Reason: