M:=20;
N:=480;
P1:=240;
P2:=30;
分时顶:HHV(H,N),COLORRED,LINETHICK2;
现价:C,COLORWHITE,LINETHICK2;
W1:=C=HHV(C,M);
W2:=BARSLAST(W1);
W3:=IF(W2>0,REF(C,W2),REF(C,W2));
W4:=crOSS(C,REF(W3,1));
均线5:MA(C,5),LINETHICK1,COLORCYAN;
均价线:SUM(现价*V,P1)/SUM(V,P1),COLORYELLOW;
分时压力:MA(REF(HHV(C,P2),1),2),COLORMAGENTA;
分时支撑:MA(REF(LLV(C,P2),1),2),COLORBLUE;
DRAWICON(W4 AND COUNT(W4,5)=1,分时压力,7);
STICKLINE(FILTER(CROSS(C,REF(分时顶,1)),10) AND C>REF(分时顶,1),C*0.99,C,4,0),COLORMAGENTA;