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);M:=1.15;XG:UPPER/LOWERMA(C,5); (M为收窄幅度,可自己调整。采用BOLL主图叠加指标)