Looking for mql4 crossover moving average code for indicator

 

Hello

I am desperately looking for a simple piece of code that works just for moving average crossover.

All the mql4 code I find on the internet is crappy and not working.

Thanks

 
  1. “Doesn't work” is meaningless — just like saying the car doesn't work. Doesn't start, won't go in gear, no electrical, missing the key, flat tires — meaningless.
         How To Ask Questions The Smart Way. 2004
              When asking about code

  2. Look for a cross.

    double aPrev = …, aCurr = …,
           bPrev = …, bCurr = …;
    bool   wasUp = aPrev > bPrev,
            isUp = aCurr > bCurr,
           isCross = isUp != wasUp;

 
Indicator not displaying new alerts
Indicator not displaying new alerts
  • 2021.06.09
  • www.mql5.com
Hello, I found this piece of indicator on the net. Once installed it displays old alerts but not the new alerts...