Stupid translate from AFL to MQ4

 

I have this code in AFL:

TH =IIf(Ref(C,-1) > H,Ref(C,-1),H);
TL=IIf(Ref(C,-1) < L,Ref(C,-1),L);

Is It equivalent Ref(C,-1) - yesterday CLOSE in MQ4?


Reason: