NAA:=REF((MAX(MA(C,1),MA(C,55))-MIN(MA(C,1),MA(C,55)))/MIN(MA(C,1),MA
(C,55))*1000<60,1) AND EMA((EMA(CLOSE,12)-EMA(CLOSE,26)),9)<REF(EMA
((EMA(CLOSE,12)-EMA(CLOSE,26)),9),1)AND (CLOSE-REF(CLOSE,1))/REF(CLOSE,1)*100>3 ;
NA1:=MIN(MA(C,5),MA(C,10))>MA(C,60) AND crOSS(MA(C,5),MA(C,10));
NA2:=MIN(MA(C,5),MA(C,10))/MA(C,60)<1.05;
NA3:=COUNT(V<MA(V,10),10)>6;
XG:NAA AND NA1 AND NA2 AND NA3,COLOR00FF00,LINETHICK2;
DRAWTEXT(XG ,0.8 , ' XG'),COLORRED;