KDJ多周期金叉(KDJ月周日金叉)飞狐版本

2011-02-16 11:33:00来源:本站整理浏览:221

月K:"KDJ.K#MONTH",Color0080FF;
月D:"KDJ.D#MONTH",Color0080FF,linethick2;
周K:"KDJ.K#WEEK",colorred;
周D:"KDJ.D#WEEK",colorred,linethick2;
日K:"kd.k",COLORWHITE;
日D:"kd.d",COLORWHITE,linethick2;
周金叉:IF(CROSS(周K,周D),50,0),colorred;
DRAWTEXT(周金叉,50,'周金叉'),colorred;
月金叉:IF(CROSS(月K,月D),60,0),Color0080FF;

DRAWTEXT(月金叉,60,'月金叉'),coloryellow;
{KD在30以下多次金叉}
Jm:=CROSS("kd.k","kd.d");
JmCOUNT:=COUNT(Jm,BARSLAST("kd.d">=30));
Jmtj:=28*("kd.d"<30 and Count(JmCount=1,21)=1);
Drawtext(Jmtj,70,'①'),COLORWHITE;
Jmtj1:=28*("kd.d"<30 and Count(JmCount=2,21)=1);
Drawtext (Jmtj,70,'②'),COLORYELLOW;
Jmtj2:=28*("kd.d"<30 and Count(JmCount=3,21)=1);

Drawtext (Jmtj,70,'③'),COLORYELLOW;
Jmtj3:=28*("kd.d"<30 and Count(JmCount=4,21)=1);
Drawtext (Jmtj,70,'④'),COLORYELLOW;
Jmtj4:=28*("kd.d"<30 and Count(JmCount=5,21)=1);
Drawtext (Jmtj,70,'⑤'),COLORYELLOW;

股票公式栏目导航

精品指标推荐

最新热门

本类随机推荐

相关公式