N:=8;
wr:100-100*(HHV(HIGH,5*N)-CLOSE)/(HHV(HIGH,5*N)-LLV(LOW,5*N)),
COLORFFFFFF,LINETHICK3;
M18:EMA(WR,18),LINETHICK3;
强弱分界线:50,POINTDOT,COLORFFFFCC;
-15,COLOR00FFFF,LINETHICK2;0,COLORFFFF33;
20,POINTDOT,COLOR00FF00;
80,POINTDOT,COLOR00FF00;
100,COLORFFFF33;
113,COLOR00FFFF,LINETHICK2;
V1:=LLV(LOW,10);
V2:=HHV(H,25);
价位线:=EMA((C-V1)/(V2-V1)*4,4);
DRAWTEXT(crOSS(价位线,0.3),-1,'底部区'),COLOR33FF33;
DRAWTEXT(CROSS(3.5,价位线),111,'顶部区'),COLOR33FF33;
{HZL红主力}
D27:"kdj.D"(27,3,3),COLORFF99FF;
MM3:EMA(D27,3),COLORFFFFFF;
红主力:STICKLINE(D27>=REF(D27,1),D27,0,5,0),COLORRED;
DRAWICON(CROSS(85,D27),90,2);
顶: STICKLINE(CROSS(85,D27),100,50,5,0),COLORGREEN ;
底: STICKLINE(CROSS(D27,20),0,50,5,0),COLOR00FFFF ;
DRAWICON(CROSS(D27,20),10,1);
bias20:=(C-MA(C,20))/MA(C,20)*100,COLOR00FFFF,LINETHICK2;