N:=60;
M:=23;
N3:=125;
N4:=390;
MID:=MA(C,M);
VART1:=POW((C-MID),2);
VART2:=MA(VART1,M);
VART3:=SQRT(VART2);
UPPER:=MID+2*VART3;
LOWER:=MID-2*VART3;
布林线:=IF(CURRBARSCOUNT<=100,REF(MID,1),DRAWNULL);
日布:=REF(UPPER,1);
BOLL3:=MA(CLOSE,N3);
BOLL4:=MA(CLOSE,N4);
周布:=IF(CURRBARSCOUNT<=10000 AND ((BOLL3+2*STD(C,N3))-C)*100/C<20, BOLL3+2*STD(C,N3),DRAWNULL);
CROSS(C,日布) AND CROSS(C,周布);