A1:=Ma(C,5);A2:=Ma(C,21);A3:=(A1+A2)/2;IF (A1>A2,A1,A3),Colorred,linethick2;IF (A1>A2,A2,A3),Colorred,linethick2;IF (A1<=A2,A1,A3),Color00ff00,linethick2;IF (A1<=A2,A2,A3),Color00ff00,linethick2;A3,colorwhite,linethick2;boll : MA(CLOSE,26),POINTDOT,COLORWHITE,LINETHICK2;上: BOLL +2*STD(CLOSE,26),POINTDOT,COLORGREEN,LINETHICK2;下: BOLL -2*STD(CLOSE,26),POINTDOT,COLORRED,LINETHICK2;var31:=hhvbars(zig(3, 19)>ref(zig(3,19),1)and ref(zig(3,19), 1)