M:=20;
N:=20;
N1:=25;
M1:=6;
M2:=6;
boll:=MA(CLOSE,M);
UB:=BOLL+2*STD(CLOSE,M);
LB:=BOLL-2*STD(CLOSE,M);
MID := MA(CLOSE,N);
X1:=crOSS(CLOSE,UB);
UPPER:=(1+M1/100)*MA(CLOSE,N1);
LOWER:=(1-M2/100)*MA(CLOSE,N1);
ene:=(UPPER+LOWER)/2;
X2:=CROSS(CLOSE,UPPER);
GG:X1 AND X2;