X:=0.27*MA(C,3);
M:=0.57*REF(MA(C,50),1);
VMA:=X+M;
B1:=MA(VOL,5)*5;
B2:=MA(VOL,10)*10;
B3:=B2-B1;
XG:C VMA*0.97 AND COUNT(H=L AND C=O AND C REF(C,1),3) =0 AND B3
X:=0.27*MA(C,3);
M:=0.57*REF(MA(C,50),1);
VMA:=X+M;
B1:=MA(VOL,5)*5;
B2:=MA(VOL,10)*10;
B3:=B2-B1;
XG:C VMA*0.97 AND COUNT(H=L AND C=O AND C REF(C,1),3) =0 AND B3