MA5:=MA(C,5);
MA10:=MA(C,10);
MA20:=MA(C,20);
V0:=MA(C,3)>REF(MA(C,3),1) AND MA(C,5)>REF(MA(C,5),1) AND C>MA(C,3)
AND MA(C,3)>MA(C,5) ;
JJMA5:=ATAN((MA5/REF(MA5,1)-1)*100)*180/3.1416;
JJMA10:=ATAN((MA10/REF(MA10,1)-1)*100)*180/3.1416;
JJMA20:=ATAN((MA20/REF(MA20,1)-1)*100)*180/3.1416;
XG:IF(JJMA5>45 AND JJMA10>55 AND JJMA20>30 ,1,0) AND C>O AND C<REF(C,1);