(req) conversion 5 lines from afl to mql4

To add comments, please log in or register

hello please i want to convert this code to mq4

Hld = IIf(C > Ref(MA(H, 3), -1), 1, IIf(C < Ref(MA(L, 3), -1), -1, 0));
Hlv = ValueWhen(Hld != 0, Hld, 1);
Hilo = IIf(Hlv == -1, MA(H, 3), MA(L, 3));
Trigger = IIf(C>Hilo, colorGreen, colorRed);

thanks in advance

William Roeder
William Roeder  
hakona: i want 
  1. Get the MA(Length=3, Price=High) and MA(Low). Draw an arrow when Close is above the first, or below the latter.
  2. You stated a want. Show us your attempt (using the CODE button) and state the nature of your problem.
              No free help 2017.04.21

    Or pay someone. Top of every page is the link Freelance.
              Hiring to write script - General - MQL5 programming forum 2018.05.12

To add comments, please log in or register