KDJ全波段(副图指标 编辑思路 源码 贴图 )
指标功能:[B]国产软件[/B]
指标类型:简体中文
所需积分:0
推荐星级:
授权方式:共享版
公式大小:0 Bytes
更新时间:2011-09-29 08:17:00
公式简介:
KDJ全波段指标:本人独钟于用周KDJ的J拐点变化线来扑捉买卖机会,现试将月,周,日KDJ指标同显于一图中。其中月KD金叉与死叉主要用来判断长线趋势。周KDJ指标主要用J线的拐点变化分别来提示准备,买入,加仓及持币等几个阶段。日KDJ指标的金叉与死叉分别配合周J的变化在买入或加仓区中用于高抛低吸。图中的指示较明确,一看便知。(仅以此祝贺论坛的学友们国庆节快乐!!!)
源码:
ZJ1:=MA("KDJ.J#WEEK"(9,3,3) ,5);
STICKLINE(ZJ1>=0 AND ZJ1>=REF(ZJ1,1),0,100,4,0),COLORAA0077;
STICKLINE(ZJ1<0 ,0,50,4,0),COLOR060066;
STICKLINE(ZJ1<0 AND ZJ1>=REF(ZJ1,1),0,100,4,0),COLOR000088;
YK:=MA("KDJ.K#MONTH"(9,3,3),20);
YD:=MA("KDJ.D#MONTH"(9,3,3),20);
YJ:=MA("KDJ.J#MONTH"(9,3,3),20);
STICKLINE(YK>=YD,YK,YD,1,0),COLOR880088;
STICKLINE(YK<YD,YK,YD,1,1),COLORAAAAAA;
ZK:=MA("KDJ.K#WEEK"(9,3,3) ,5);
ZD:=MA("KDJ.D#WEEK"(9,3,3) ,5);
DRAWBAND(ZK,RGB(200,0,0),ZD,RGB(0,200,200));
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;
DRAWBAND(K,RGB(250,0,200),D,RGB(200,170,100));
日金叉:IF(CROSS(K,D),7,0),COLORMAGENTA,LINETHICK2;
DRAWBAND(日金叉,RGB(250,0,250),0,RGB(0,0,0));
日死叉: IF(CROSS(D,K),93,100), COLOR00FF00,LINETHICK2;
DRAWBAND(100,RGB(0,250,0),日死叉,RGB(0,0,0));
周金叉:IF(CROSS(ZK,ZD),12,0),COLORRED,LINETHICK2;
DRAWBAND(周金叉,RGB(250,0,0),0,RGB(0,0,0));
周死叉:IF(CROSS(ZD,ZK),87,100), COLORFFFF00,LINETHICK2;
DRAWBAND(100,RGB(0,250,250),周死叉,RGB(0,0,0));
月金叉:IF(CROSS(YK,YD),17,0),COLORYELLOW,LINETHICK2;
DRAWBAND(月金叉,RGB(250,250,0),0,RGB(0,0,0));
月死叉:IF(CROSS(YD,YK),82,100),COLORFF0000,LINETHICK2;
DRAWBAND(100,RGB(0,0,250),月死叉,RGB(0,0,0));
IF(ZJ1<=0,0,DRAWNULL),COLORRED,LINETHICK4;
IF(ZJ1>85,ZJ1,DRAWNULL),COLOR00FFFF,LINETHICK2;
IF(ZJ1>85,100,DRAWNULL),COLOR00FFFF,LINETHICK4;
AA:=IF(ZJ1<0 AND ZJ1<REF(ZJ1,1),-5,0),COLOR00FFFF;
BB:=IF(ZJ1<0 AND ZJ1>=REF(ZJ1,1),-8,0),COLOR000088;
DRAWBAND(0,RGB(150,200,0),AA,RGB(0,0,0));
DRAWBAND(0,RGB(200,50,150),BB,RGB(0,0,0));
ZJ:ZJ1,COLOR0000FF,LINETHICK2;
IF(ZJ<REF(ZJ,1),ZJ,DRAWNULL),COLORFFFF00,LINETHICK2;
IF(ZJ<0 AND ZJ<REF(ZJ,1),ZJ,DRAWNULL),COLORFF00FF,LINETHICK2;
IF(ZJ<0 AND ZJ=REF(ZJ,1),ZJ,DRAWNULL),COLOR0000FF,LINETHICK2;
STICKLINE(C>0,50,50,2,0),COLOR00FFFF;
DRAWTEXT_FIX(1,0.4,0.1,0,'★★ 深红色--提示准备★★暗红色--买入区★★紫粉色--加仓区★★顶部黄色--带风险提示★★'),COLORFFFFFF;
[url=http://www.goodgupiao.com/gupiaogongshi/15731.html][B]KDJ全波段(副图指标 编辑思路 源码 贴图 )[/B][/url]