J0:=(HIGH+LOW)/2;QJ:=WMA(J0,3);
J1:=IF(CLOSE>QJ,VOL,0);J2:=IF(CLOSE<QJ,VOL,0);
RV:=(qj-LLV(qj,144))/(HHV(qj,144)-LLV(qj,144))*100;
统计:SUM(J1-J2,5),LINETHICK0;
差:EMA(统计,7)-EMA(统计,340),COLORFFFFFF;趋势:EMA(差,7),COLOR00FFFF;
结:2*(差-趋势),COLORSTICK;
GZ:=cross(差,趋势);
GG:=cross(趋势,差);
KZ:=COUNT(rv<15,3)>=1 and cross(RV,3);
KD:=COUNT(rv>80,3)>=1 and cross(98.5,RV);
DRAWICON(KZ,差,4);DRAWICON(KD,趋势,5);
DRAWICON(GZ,差,10);DRAWICON(GG,趋势,11);
DRAWTEXT(GZ and KZ,差,'底共振'),PXDN60,COLORYELLOW;
DRAWTEXT(GG and KD,趋势,'顶共振'),PXUP60,COLOR00FF00;
VERTLINE(GZ and KZ),COLORYELLOW,LINEDOT;
VERTLINE(GG and KD),COLOR00FF00,LINEDOT;