RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
K:=SMA(RSV,3,1);
D:=SMA(K,3,1);
周K:=MA( KDJ.K#WEEK (9,3,3) ,5);
周D:=MA( KDJ.D#WEEK (9,3,3) ,5);
周J:=MA( KDJ.J#WEEK (9,3,3) ,5);
关注区:STICKLINE(周J =REF(周J,1) AND 周J 0,-50,50,5,0),COLORAA66CC;
STICKLINE(周J =REF(周J,1) AND 周J =0,50,150,5,0),COLORCC99CC;
AA:-BARSLAST(EMA(CLOSE,5) REF(EMA(CLOSE,5),1))*8+50,COLOR0000FF,LINETHICK4;
BB:BARSLAST(EMA(CLOSE,5) REF(EMA(CLOSE,5),1))*8+50,COLORFF0000,LINETHICK4;
DRAWBAND(REF(AA,1),RGB(200,105,255),AA,RGB(200,65,180));
DRAWBAND(50,RGB(0,200,150),AA,RGB(200,200,150));
DRAWBAND(BB,RGB(50,0,0),REF(BB,1),RGB(50,120,250));
DRAWBAND(BB,RGB(250,50,80),50,RGB(0,0,0));
STICKLINE(周K =周D,50,2*(周K-周D)+50,2,0),COLORCC0099;
STICKLINE(周K 周D,50,2*( 周K-周D)+50,2,0)*2,COLORCC0000;
STICKLINE(K =D,50,2*(K-D)+50,0.5,0)*2,COLORFF00FF;
STICKLINE(K D,50,2*(K-D)+50,0.5,0)*2,COLOR00FF00;
周J1:MA( KDJ.J#WEEK (9,3,3) ,5),COLORFF0000,LINETHICK2;
IF(周J1 =REF(周J1,1),周J1,DRAWNULL),COLOR00FFFF,LINETHICK2;
DRAWTEXT_FIX(1,0.0,0.0,0,'★★ 暗粉色为周J0以下拐点向上 关注★★ 淡粉色为周J0以上拐点向 买入★★红色三角 轻仓★★ 淡粉色区 红色三角 全仓★★绿色为 减仓★★★★ '),COLORFFFFFF;
DRAWTEXT_FIX(1,0.0,0.05,0,'★★ 红柱表示日KD金叉★★绿柱为KD死叉★★宽紫色为月KD金叉★★宽蓝色为周KD死叉★★'),COLORFFFFFF;
DRAWTEXT_FIX(1,0.0,0.1,0,'★★三角影子为变盘信号 ★★变色曲线为周J'),COLORFFFFFF;