RV:=(CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100;
RG:=(CLOSE-LLV(LOW,5))/(HHV(HIGH,5)-LLV(LOW,5))*100;
J0:=(HIGH+LOW)/2;
QJ:=EMA(J0,3);J1:=IF(CLOSE>QJ,VOL,0);
J2:=IF(CLOSE<QJ,VOL,0);
量能:=IF(CAPITAL<1,MA(VOL,74),MA(SUM(J1-J2,22),3));
趋势:=IF(CAPITAL<1,WMA(量能,360),WMA(量能,21));
var3:=(量能-趋势);var4:=SMA(RV,3,1);
var5:=SMA(var4,3,1);
DRAWICON(CROSS(var4,var5) and var5<30,20,8);
DRAWICON(CROSS(var5,var4) and var5>30,92,9);
FILLRGN(var4<var5,var5,var4),COLORFF8800;
FILLRGN(var4>var5,var4,var5),COLOR0000BB;
KK:EMA(SMA(RG,3,1),2),COLORFFFFFF;
DD:SMA(KK,3,1),COLOR00FFFF;
VERTLINE(CROSS(var4,var5) and CROSS(KK,DD)),LINEDOT,COLOR00FFFF;
DRAWICON(var3<0,100,11);
DRAWICON(var3>0,100,10);