通常做出买卖的操盘决策时,一般会查看KDJ的月线、周线及日线的走势为依据做出正确的操盘策略。本指标就是从方便角度考虑,将上述的三个不同时期的KDJ指标通过变通显示在同一幅图中。画面分别:1在上部用信号灯群显示周KDJ的金叉情况,同时用柱状彩带显示周KDJ的指标线具体走势。2在下部也使用信号灯群显示月KDJ指标的金叉情况,并在图中用变色的彩带显示其走势。3为了保持图中显示的简明清晰,故省略了日KDJ指标的图形,只在图中的中部以信号灯和小圆圈组成的彩色带简要的表示日KDJ指标的金叉情况。
指标源码:
DRAWGBK(1,colorrgb(0,0,200),colorrgb(50,50,0),1);
RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
K:=SMA(RSV,3,1);
D:=SMA(K,3,1);
J:=3*K-2*D;
月K:= MA( KDJ.K#MONTH (9,3,3),20),COLORFF00FF;
月D:= MA( KDJ.D#MONTH (9,3,3),20),COLOR00FFFF;
月J:=MA( KDJ.J#MONTH (9,3,3),20);
FILLRGN(月K =月D,月K,月D),COLORFF00FF;
FILLRGN(月K 月D,月K,月D),COLOR888888;
DRAWICON(月K =月D,4,10);
DRAWICON(月K =月D,0,10);
DRAWICON(月K 月D,0,12);
周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),COLORFF00FF,LINETHICK3,POINTDOT;
PARTLINE(周J REF(周J,1),周J),COLOR00FF00,LINETHICK1,POINTDOT;
STICKLINE(周K =周D,周K,周D,6,0),COLOR0000FF;
STICKLINE(周K 周D,周K,周D,6,1),COLOR00FFFF;
DRAWICON(周K =周D,96,10);
DRAWICON(周K =周D,100,10);
DRAWICON(周K 周D,100,12);
DRAWICON(K =D,46,13);
DRAWICON(K =D,50,13);
DRAWICON(K =D,54,13);
DRAWICON(K D,48,12);
DRAWICON(K D,52,12);
DRAWTEXTEX(c,1,2,90,'周KDJ金叉 '),ColorFFFFFF;
DRAWTEXTEX(c,1,2,560,'日KDJ金叉 '),ColorFFFFFF;
DRAWTEXTEX(c,1,2,880,'月KDJ金叉 '),Color00FF00;