N:=100;M:=1;P:=20;MAV:=(C*2+H+L)/4;SK := EMA(MAV,1) - EMA(MAV,40);SD := EMA(SK,5);B:=(SK-SD)*n;短线拉升:IF(B<-20,-20,IF(B>100,100,B)),colorred,linethick2;t:=(C-LLV(1.02*L,20))/(HHV(H,20)-LLV(L,20))*100;上涨量能:IF(t>100,100,IF(t<0,0,t)),colorff00ff,linethick1;A:=(HHV(HIGH,5)-CLOSE)/(HHV(HIGH,5)-LLV(LOW,5))*20;A1:=(3*A-2*SMA(A,3,1))*M;短线阻力:IF(A1>100,100,IF(A1<-5,-5,A1)),colorblue,linethick2;Q1:=(HHV(HIGH,13)-CLOSE)/(HHV(HIGH,13)-LLV(LOW,13))*120,color009900,linethick2;中线阻力:IF(Q1>100,100,Q1),color009900,linethick1;STICKLINE(短线阻力>短线拉升 ,短线拉升,短线阻力,1,0),colorblue;累计涨幅:SUM((CLOSE-REF(CLOSE,1))/REF(CLOSE,1)*100-(INDEXC-REF(INDEXC,1))/REF(INDEXC,1)*100,3),colorblack;累计振幅:SUM((HIGH-LOW)/LOW*100-(INDEXH-INDEXL)/INDEXL*100,3);Y:=FILTER(累计涨幅>=20 OR 累计涨幅<=-20 OR 累计振幅>=45,4);STICKLINE(Y,累计涨幅,累计涨幅+20,5,2),colorwhite;