股民大家庭

 找回密码
 立即注册

扫一扫,访问微社区

搜索
查看: 13581|回复: 0
打印 上一主题 下一主题

[通达信]通达信 精华组合,kdj源码公式

[复制链接]
跳转到指定楼层
1
发表于 2010-05-30 19:06:20 | 只看该作者 |只看大图 回帖奖励 |倒序浏览 |阅读模式
通达信 精华组合,kdj源码公式:
RSV:=(CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100;
K:SMA(RSV,M1,1),COLOR9FA1A1;
D:SMA(K,M2,1),COLOR00A13C;
J:3*K-2*D,COLOR0089FF,LINETHICK2;
OBV:=K;      
P:=5;
A1:=REF(OBV,P)=HHV(OBV,2*P+1);
B1:=FILTER(A1,P);
C1:=BACKSET(B1,P+1);
D1:=FILTER(C1,P);{高点}
A2:=REF(OBV,P)=LLV(OBV,2*P+1);
B2:=FILTER(A2,P);
C2:=BACKSET(B2,P+1);
D2:=FILTER(C2,P);{低点}
上:REF(OBV,BARSLAST(D1)),COLORFF00FF,NODRAW;
下:REF(OBV,BARSLAST(D2)),COLOR00FF00,NODRAW;
向上:CROSS(OBV,上*1.01),NODRAW;
相对能量:(OBV-下)/(上-下)*100,COLORYELLOW,NODRAW;
R11:=BACKSET(ISLASTBAR,BARSLAST(D1)+1);
S11:=R11>REF(R11,1);
DRAWLINE(D1,OBV,S11,OBV,1),COLOR0000FF;
T11:=BACKSET(ISLASTBAR,BARSLAST(D2)+1);
U11:=T11>REF(T11,1);
DRAWLINE(D2,OBV,U11,OBV,1),COLORFFFF00;
STICKLINE(C>0,下,下,1,0),COLOR00FF00;
STICKLINE(C>0,上,上,1,0),COLORFF00FF;
DRAWTEXT(CROSS(OBV,上*1.01),上,'上'),COLORFFFFFF;
DRAWTEXT(CROSS(下*0.99,OBV),下,'下'),COLORFFFFFF;

{主升波段显示}
BBI:=(EMA(CLOSE,3)+EMA(CLOSE,6)+EMA(CLOSE,12)+EMA(CLOSE,24))/4;
EBBI:=(EMA(C,6)+EMA(C,18)+EMA(C,54)+EMA(C,162))/4;
FF1:=EMA(C,3)>EMA(C,7) AND EMA(C,7)>EMA(C,21) AND EMA(C,21)>EMA(C,54);
DIFF:=EMA(CLOSE,12)-EMA(CLOSE,26);
DEA:=EMA(DIFF,9);
主升浪:IF(BBI>EBBI AND FF1 AND DIFF>DEA,10,0),COLORYELLOW,POINTDOT;
STICKLINE(主升浪,10,0,1,1),COLORYELLOW;
DRAWICON(CROSS(K,D) AND CROSS(J,D),10,1);{1号图标显示红箭头};
DRAWICON(D1,OBV,27);
DRAWICON(D2,OBV,25);

{金叉共振}
VAR0004:="KDJ.K#WEEK"(9,3,3);
VAR0005:="KDJ.D#WEEK"(9,3,3);
VAR0006:="KDJ.K#MONTH"(9,3,3);
VAR0007:="KDJ.D#MONTH"(9,3,3);
周金叉:IF(CROSS(VAR0004,VAR0005),15,0)LINESTICK, COLORRED;
月金叉:IF(CROSS(VAR0006,VAR0007),20,0)LINESTICK,COLORYELLOW;
DRAWTEXT(周金叉,16,'周金叉'),COLORRED;
DRAWTEXT(月金叉,20,'月金叉'),COLORYELLOW;

{抄底加仓}
抄底:IF(REF(COUNT(K<REF(K,1),5)>=5,1) AND COUNT(K<30,5)>=2  AND COUNT(J<0,3)>0 AND CROSS(J,0),60,50),COLOR00FFFF;
TJ00:=BARSLAST(REF(CROSS(K,D) AND REF(K,1)<35,1));
TJ11:=C<REF(C,TJ00+1)*1.1 AND REF(K,1)<60  AND (TJ00+1)<25   AND (TJ00+1)>5  AND  K>REF(K,TJ00+1) AND CROSS(K,D);
加仓:IF(TJ11,35,0),COLORGREEN;
A22:=BARSLAST(REF(CROSS("KDJ.K"(9,3,3),"KDJ.D"(9,3,3)),1)); 原文链接:http://www..com/viewthread.php?tid=3585876

1528569_2010-05-24_154409.jpg (177.31 KB, 下载次数: 0)

[通达信]通达信 精华组合,kdj源码公式

[通达信]通达信 精华组合,kdj源码公式

1528569_2010-05-24_154432.jpg (68.91 KB, 下载次数: 0)

[通达信]通达信 精华组合,kdj源码公式

[通达信]通达信 精华组合,kdj源码公式



上一篇:[大智慧]大智慧获利线源码公式
下一篇:[大智慧]大智慧多空红绿源码公式
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

今日股市|网站地图|股民学校|手机版|小黑屋|股民大家庭 |网站地图24小时在线客服

GMT+8, 2025-1-16 02:37 , Processed in 8.394193 second(s), 30 queries , Gzip On.

Powered by 股民大家庭

© 2007-2019 www.gupiao168.com


快速回复 返回顶部 返回列表