不准确呀老师,0轴上的相对好些,0轴下的指标滞后了
追答N:=20;
MID:=MA(C,N);
VART1:=POW((C-MID),2);
VART2:=MA(VART1,N);
VART3:=SQRT(VART2);
UPPER:=MID+2*VART3;
LOWER:=MID-2*VART3;
BOLL:=REF(MID,1);
UB:=REF(UPPER,1);
LB:=REF(LOWER,1);
LOWER1:=MID-VART3;
LB1:=REF(LOWER1,1);
BB:=(C-LB1)/(UB-LB)*100;
MA6:=MA(BB,6);
XG:CROSS(BB,MA6) and bb<0 and ma6<0;