How to code MACD crossover?

 
How to code for the first MACD (Green) crossover only (if MACD second time crossover then it is consider as not valid signal)?
Files:
 
Sksoon :
How to code for the first MACD (Green) crossover only (if MACD second time crossover then it is consider as not valid signal)?

It is necessary to find the moment of the first upward crossing (the birth of 'Zone UP'). Then find intersections ('Signal').


 
Vladimir Karputov:

It is necessary to find the moment of the first upward crossing (the birth of 'Zone UP'). Then find intersections ('Signal').


I'm very appreciate your answer. But how to exectly use mql4 to code this signal? What is the code look like?

 
Sksoon :

I'm very appreciate your answer. But how to exectly use mql4 to code this signal? What is the code look like?

Why are you asking about the old terminal? You are on the MQL5 forum and you posted your question in the main thread. If you are using the old terminal - you should post your questions in a special thread - MQL4 and MetaTrader 4 . I will postpone your topic.

 
  1. Post in the correct place
  2. Don't double post! You already had this thread open.
              General rules and best pratices of the Forum. - General - MQL5 programming forum 2017.07.19

 
Sksoon:

I have deleted your duplicate topic.

 
If anyone has an answer to this question please post the code. I'm looking for the MQL5 code
Reason: