MID:=MA(C,20),COLORCYAN;BBI:(MA(CLOSE,3)+MA(CLOSE,6)+MA(CLOSE,12)+MA(CLOSE,24))/4,COLORFF33CC,LINETHICK2;PARTLINE(BBI<MID,BBI),COLORGREEN,LINETHICK3;VAR1:=(100 - ((90 * (HHV(HIGH,20) - CLOSE)) / (HHV(HIGH,20) - LLV(LOW,20))));VAR3:=(100 - MA(((100 * (HHV(HIGH,5) - CLOSE)) / (HHV(HIGH,5) - LLV(LOW,5))),34));STICKLINE(C>MID AND C>O,H,L,0,0),color5050ff;STICKLINE(C>MID AND C>O,O,C,5,0),color5050ff;STICKLINE(C>MID AND C<=O,H,L,0,0),color5050ff;STICKLINE(C>MID AND C<=O ,O,C,5,0),color5050ff;STICKLINE(C<=MID AND C>O,H,L,0,0),COLORcyan;STICKLINE(C<=MID AND C>O,O,C,5,0),COLORcyan;STICKLINE(C<=MID AND C<=O ,H,L,0,0),COLORcyan;STICKLINE(C<=MID AND C<=O,O,C,5,0),COLORcyan;DIFF:=EMA(CLOSE,12) - EMA(CLOSE,26);DEA:=EMA(DIFF,9);MACD:=2*(DIFF-DEA),colorSTICK;macd1:=ema(macd,15),colorgray;STICKLINE(CROSS(MACD,MACD1),O,C,5,0),COLORred;STICKLINE(CROSS(MACD,MACD1),H,L,0,0),COLORred;STICKLINE(CROSS(MACD1,MACD),O,C,5,0),COLORgreen;STICKLINE(CROSS(MACD1,MACD),H,L,0,0),COLORgreen;EMA5 : EMA(CLOSE,5),colorwhite;EMA10 : EMA(CLOSE,10),coloryellow;EMA20 : EMA(CLOSE,20),COLOR4876FF;{ZIAZAG3段支撑压力}z1:=zig(3,1),LINETHICK2;z2:=zig(3,2),LINETHICK2;z5:=zig(3,5),LINETHICK2;TY:=z1;HD:=FILTER(BACKSET(FILTER(ref(TY,10)=HHV(TY,2*10+1),10),10+1),10);LD:=FILTER(BACKSET(FILTER(ref(TY,10)=LLV(TY,2*10+1),10),10+1),10);A:=ref(z1,BARSLAST(HD));B:=ref(z1,BARSLAST(LD));T1:=BARSLAST(HD)<BARSLAST(LD) AND NOT(HD) ;T2:=BARSLAST(HD)>BARSLAST(LD) AND NOT(LD);压力:if(T1,A,A),COLORwhite,POINTDOT,LINETHICK2;支撑:if(T2,B,B),COLORwhite,POINTDOT,LINETHICK2;TY2:=z2;HD2:=FILTER(BACKSET(FILTER(ref(TY2,10)=HHV(TY2,2*10+1),10),10+1),10);LD2:=FILTER(BACKSET(FILTER(ref(TY2,10)=LLV(TY2,2*10+1),10),10+1),10);A2:=ref(z2,BARSLAST(HD2));B2:=ref(z2,BARSLAST(LD2));T12:=BARSLAST(HD2)<BARSLAST(LD2) AND NOT(HD2) ;T22:=BARSLAST(HD2)>BARSLAST(LD2) AND NOT(LD2);压力2:if(T12,A2,A2),COLORyellow,POINTDOT,LINETHICK2;支撑2:if(T22,B2,B2),COLORyellow,POINTDOT,LINETHICK2;TY5:=z5;HD5:=FILTER(BACKSET(FILTER(ref(TY5,10)=HHV(TY5,2*10+1),10),10+1),10);LD5:=FILTER(BA