GUA1:=(CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100;
GUA2:=(CLOSE-LLV(LOW,5))/(HHV(HIGH,5)-LLV(LOW,5))*100;
GUA3:=(HIGH+LOW)/2;
GUA4:=EMA(GUA3,3);
GUA5:=IF(CLOSE>GUA4,VOL,0);
GUA6:=IF(CLOSE<GUA4,VOL,0);
量能:IF(CAPITAL<1,MA(VOL,74),MA(SUM(GUA5-GUA6,22),3)),COLOR00DDDD,NODRAW;
趋势:IF(CAPITAL<1,EMA(量能,360),EMA(量能,21)),COLORRED,NODRAW;
GUP3:=(量能-趋势);
GUP4:=SMA(GUA1,3,1);
GUP5:=SMA(GUP4,3,1);
STICKLINE(GUP3>0,100,50,4,0),COLOR990099;
STICKLINE(GUP3<0,0,50,4,0),COLOR008800;
DRAWICON(CROSS(GUP4,GUP5) AND GUP5<30,2,1);
DRAWICON(CROSS(GUP5,GUP4) AND GUP5>30,97,2);
DRAWBAND(GUP5,RGB(0,22,224),GUP4,RGB(255,50,50));
GUK:EMA(SMA(GUA2,3,1),2),COLORFFFFFF;
GUD:SMA(GUK,3,1),COLOR00FFFF;
DRAWTEXT(CROSS(GUP4,GUP5) AND CROSS(GUK,GUD),10,'共振买'),COLOR00FFFF;
共振买:=(CROSS(GUP4,GUP5) AND CROSS(GUK,GUD));
STICKLINE(共振买>0,0,100,0,0),COLORYELLOW;