《多周期KDJ攻略》副图指标----(简单说明 源码 贴图 )介绍
《多周期KDJ攻略》副图指标----(简单说明 源码 贴图 )
《多周期KDJ攻略》副图指标----(简单说明 源码 贴图 )
多周期KDJ攻略指标发帖以来,很多学友提出许多宝贵建议,为此特经过慎重思考,进行了优化,修改了部分不足之处,又增加了指标提示,请学友们支持!!!
修改后的《多周期KDJ攻略》源码如下:
(N:9; M1:3; M2:3;)
周J1:=MA("KDJ.J#WEEK"(N,M1,M2) ,5),COLORFFFF00,LINETHICK2;
关注区:STICKLINE(周J1>=REF(周J1,1),0,100,4,0),COLOR000077;
RSV:=(CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100;
K:=SMA(RSV,M1,1);
D:=SMA(K,M2,1);
月K:=MA("KDJ.K#MONTH"(N,M1,M2),5);
月D:=MA("KDJ.D#MONTH"(N,M1,M2),5);
周K:=MA("KDJ.K#WEEK"(N,M1,M2) ,5);
周D:=MA("KDJ.D#WEEK"(N,M1,M2) ,5);
DRAWBAND(周K,RGB(170,140,200),周D,RGB(100,100,100));
DRAWBAND(K,RGB(250,20,150),D,RGB(17,250,180));
STICKLINE(周K>=周D,50,(周K-周D)+50,2,0),COLORCC0099;
STICKLINE(周K<周D,50,( 周K-周D)+50,2,0),COLORAAAA00;
STICKLINE(K>=D,50,(K-D)+50,0.5,0),COLORRED;
STICKLINE(K<D,50,(K-D)+50,0.5,0),COLOR00FF00;
DRAWICON(K>=D,46,13);
DRAWICON(周K>=周D,50,23);
DRAWICON(月K>=月D,54,3);
100,COLORGREEN;
0,COLORYELLOW;
日金叉:IF(CROSS(K,D),5,0),COLORMAGENTA,LINETHICK2;
DRAWBAND(日金叉,RGB(250,0,250),0,RGB(0,0,0));
日死叉: IF(CROSS(D,K),95,100), COLOR00FF00,LINETHICK2;
DRAWBAND(100,RGB(0,250,0),日死叉,RGB(0,0,0));
周金叉:IF(CROSS(周K,周D),10,0),COLORRED,LINETHICK2;
DRAWBAND(周金叉,RGB(250,0,0),0,RGB(0,0,0));
周死叉:IF(CROSS(周D,周K),90,100), COLORFFFF00,LINETHICK2;
DRAWBAND(100,RGB(0,250,250),周死叉,RGB(0,0,0));
月金叉:IF(CROSS(月K,月D),15,0),COLORYELLOW,LINETHICK2;
DRAWBAND(月金叉,RGB(250,250,0),0,RGB(0,0,0));
月死叉:IF(CROSS(月D,月K),85,100),COLORFF0000,LINETHICK2;
DRAWBAND(100,RGB(0,0,250),月死叉,RGB(0,0,0));
周J:MA("KDJ.J#WEEK"(N,M1,M2) ,5),COLORFFFF00,LINETHICK2;
IF(周J<=0,0,DRAWNULL),COLORRED,LINETHICK4;
IF(周J>85,100,DRAWNULL),COLOR00FFFF,LINETHICK4;
IF(周J>=REF(周J,1),周J,DRAWNULL),COLORFF0000,LINETHICK2;
DRAWTEXT_FIX(1,0.0,0.0,0,'★★ 暗红色为周J拐点向上---操作区★★红球表示日KD金叉★★红十字球为周KD金叉★★笑脸为月KD金叉★★'),COLORFFFFFF;
gd15714