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);{www.9m8.cn 九毛八公式指标网}
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;