afl-help

#1
Hi,
I want to write the following Afl code. please help if any body knows it.
Condition: buy = MA(55)>MA(200)AND Either MA(55) or MA(20) is moving up.

Thanks,
DHAVAL
 

johnnypareek

Well-Known Member
#2
Hi,
I want to write the following Afl code. please help if any body knows it.
Condition: buy = MA(55)>MA(200)AND Either MA(55) or MA(20) is moving up.

Thanks,
DHAVAL
HTML:
MA55=MA(C,55);
MA200=MA(C,200);
MA20=MA(C,20);

Condition=MA(C,55)>MA(C,200) AND MA55>Ref(MA55,-1) AND Ref(MA55,-1)>Ref(MA55,-2) OR MA20>Ref(MA20,-1) AND Ref(MA20,-1)>Ref(MA20,-2);
Buy=Condition;
this is scan. hope its what u want
 

Similar threads