REFLINE: 0, 20, 50;
MA1:EMA(CLOSE,7);
Y1:=CLOSE>MA1;
Y2:=REF(CLOSE,1)>REF(MA1,1);
Y3:=REF(CLOSE,2)>REF(MA1,2);
y4:=CLOSE/REF(CLOSE,1);
y5:=REF(CLOSE,1)/REF(CLOSE,2);
y6:=y4+y5;
y7:=y6<2.02;
y8:=y4<1.015;
y9:=y5<1.015;
XG:Y1 AND Y2 AND Y3 AND Y7 and y8 and y9;
DRAWTEXT(xg,xg+38,'1'),COLORGREEN;