VV:=EMA(C,5); EM:=EMA(C,10); EA:=EMA(C,20); EB:=EMA(C,30);
EC:=EMA(C,60); B1:=1000*EM/EC<=1015 AND 1000*EM/EC>=975;
B2:=1000*EA/EC<=1020 AND 1000*EA/EC>=980;
B3:=1000*EB/EC<=1015 AND 1000*EB/EC>=985;
B4:=B1 AND B2 AND B3 AND CROSS(VV,EM);
B5:=B1 AND B2 AND B3 AND CROSS(VV,EB);
Z1:=1000*EM/EB<=1010 AND 1000*EM/EB>=990;
Z2:=1000*EA/EB<=1010 AND 1000*EA/EB>=990;
Z3:=Z1 AND Z2 AND CROSS(VV,EM) OR B4;
Z4:=Z1 AND Z2 AND CROSS(VV,EB) OR B5;
BB:=REF(C,1)<REF(O,1) AND C>O;
BB1:=CROSS(MACD.macd,0) AND C>MA(C,5);
BB2:=REF(MA(V,3),1)AND C/REF(C,1)>1.03;
Z3 OR Z4 AND BB AND BB1 AND BB2;