股龙之水老师的金龙喜舞指标汇总---大智慧 TDX 的日图和分时用(附图 源码)
股龙之水老师的"金龙喜舞"深受理想同学的喜爱,在股龙老师的主题帖和回帖中,股龙老师和其他老师已有较多的讲解,我在这做个汇总。
不对之处,请老师指正,谢谢!
一、用于TDX日图的金龙喜舞
日时转换1:=IF(PERIOD=5,120,240);
日时转换2:=IF(PERIOD=5,5,30);
日时转换3:=IF(PERIOD=5,15,60);
日时转换4:=IF(PERIOD=5,2,5);
QZS:=(EMA(CLOSE,10)+EMA(CLOSE,32))/2;
VAR1:=(EMA(CLOSE,30)+EMA(CLOSE,72))/2;
VAR2:=(EMA(VOL,10)+EMA(VOL,32))/2;
VAR3:=(VAR1+VAR2)/2;
VAR4:=EMA(VAR3,日时转换2);
VAR5:=EMA(VAR3,日时转换3);
VAR6:=EVERY(VAR1>REF(VAR1,1),日时转换4) AND
EVERY(VAR4>REF(VAR4,1),日时转换4);
DRAWBAND(VAR1,RGB(150,30,30),EMA(VAR1,60),RGB(0,110,30));
牵引线:VAR1,COLORYELLOW,LINETHICK3;
强弱线:EMA(VAR1,日时转换1),COLORWHITE;
趋势关注:IF(CROSS(VAR1,EMA(VAR1,60)) AND VAR6,1,0),NODRAW,COLORRED;
量价关注:IF(CROSS(VAR3,VAR5) AND VAR6,1,0),NODRAW,COLORWHITE;
冲击量:IF(VAR3>VAR5 AND VAR6,1,0),NODRAW,COLORYELLOW;
强势区:IF(VAR1>强弱线,1,DRAWNULL),NODRAW,COLORRED;
止损区:IF(VAR1<强弱线,1,DRAWNULL),NODRAW,COLORGREEN;
STICKLINE(QZS>VAR1,QZS,VAR1,1,0),COLORFF00FF;
STICKLINE(冲击量=1,QZS,VAR1,1,0),COLORYELLOW;
DRAWICON(趋势关注=1,EMA(VAR1,60),13);
DRAWTEXT(趋势关注=1,EMA(VAR1,60),'转折'),COLORWHITE;
{DRAWTEXT(量价关注=1,EMA(VAR1,60),'L0V'),COLORWHITE;};
EMA30:=EMA(C,30),COLORFFCCCC;
EMA60:=EMA(C,60),COLORFF00FF;
EMA90:=EMA(C,90),COLORYELLOW;
EMA120:=EMA(C,120),COLORFFCC66;
EMA250:=EMA(C,250),COLORBLUE;
A1:=(EMA30+EMA60+EMA90+EMA120)/4;
A2:=ABS(EMA30-A1)+ABS(EMA60-A1)+ABS(EMA90-A1)+ABS(EMA120-A1);
{B1:=(EMA60+EMA90+EMA120+EMA120)/4;
B2:=ABS(EMA60-B1)+ABS(EMA90-B1)+ABS(EMA120-B1)+ABS(EMA250-B1);}
均:=(EMA30+EMA60+EMA90+EMA120)/4;
AA:=A2/A1;
DRAWTEXT(AA>=0 AND AA<=0.03 AND 均>REF(均,1), 强弱线*0.9,'粘'),COLORYELLOW;
二、用于TDX分时图的金龙喜舞
日时转换:=IF(PERIOD=5,120,240);
QZS:=(EMA(CLOSE,10)+EMA(CLOSE,32))/2;
VAR1:=(EMA(CLOSE,30)+EMA(CLOSE,72))/2;
VAR2:=(EMA(VOL,10)+EMA(VOL,32))/2;
VAR3:=(VAR1+VAR2)/2;
VAR4:=EMA(VAR3,30);
VAR5:=EMA(VAR3,60);
VAR6:=EVERY(VAR1>REF(VAR1,1),5) AND EVERY(VAR4>REF(VAR4,1),5);
DRAWBAND(VAR1,RGB(150,30,30),EMA(VAR1,60),RGB(0,110,30));
牵引线:VAR1,COLORYELLOW,LINETHICK3;
强弱线:EMA(VAR1,日时转换),COLORWHITE;
趋势关注:IF(CROSS(VAR1,EMA(VAR1,60)) AND VAR6,1,0),NODRAW,COLORRED;
量价关注:IF(CROSS(VAR3,VAR5) AND VAR6,1,0),NODRAW,COLORWHITE;
冲击量:IF(VAR3>VAR5 AND VAR6,1,0),NODRAW,COLORYELLOW;
强势区:IF(VAR1>强弱线,1,DRAWNULL),NODRAW,COLORRED;
止损区:IF(VAR1<强弱线,1,DRAWNULL),NODRAW,COLORGREEN;
STICKLINE(QZS>VAR1,QZS,VAR1,1,0),COLORFF00FF;
STICKLINE(冲击量=1,QZS,VAR1,1,0),COLORYELLOW;
{DRAWICON(趋势关注=1,EMA(VAR1,60),13);
DRAWTEXT(趋势关注=1,EMA(VAR1,60),'转折'),COLORWHITE;
DRAWTEXT(量价关注=1,EMA(VAR1,60),'L0V'),COLORWHITE;};
三、用于大智慧日图的金龙喜舞
日时转换1:=IF(DATATYPE=8,120,240);
日时转换2:=IF(DATATYPE=8,5,30);
日时转换3:=IF(DATATYPE=8,15,60);
日时转换4:=IF(DATATYPE=8,2,5);
QZS:=(EMA(CLOSE,10)+EMA(CLOSE,32))/2;
VAR1:=(EMA(CLOSE,30)+EMA(CLOSE,72))/2;
VAR2:=(EMA(VOL,10)+EMA(VOL,32))/2;
VAR3:=(VAR1+VAR2)/2;
VAR4:=EMA(VAR3,日时转换2);
VAR5:=EMA(VAR3,日时转换3);
VAR6:=ALL(VAR1>REF(VAR1,1),日时转换4) AND ALL(VAR4>REF(VAR4,1),日时转换4);
FILLRGN(VAR1,EMA(VAR1,60),VAR1>EMA(VAR1,60),RGB(150,30,30),VAR1<EMA(VAR1,60),RGB(0,110,30));
牵引线:VAR1,COLORYELLOW,LINETHICK3;
强弱线:EMA(VAR1,日时转换1),COLORWHITE;
趋势关注:IF(CROSS(VAR1,EMA(VAR1,60)) AND VAR6,1,0),LINETHICK0,COLORRED;
量价关注:IF(CROSS(VAR3,VAR5) AND VAR6,1,0),LINETHICK0,COLORWHITE;
冲击量:IF(VAR3>VAR5 AND VAR6,1,0),LINETHICK0,COLORYELLOW;
强势区:IF(VAR1>强弱线,1,0),LINETHICK0,COLORRED;
止损区:IF(VAR1<强弱线,1,0),LINETHICK0,COLORGREEN;
STICKLINE(QZS>VAR1,QZS,VAR1,1,0),COLORFF00FF;
STICKLINE(冲击量=1,QZS,VAR1,1,0),COLORYELLOW;
DRAWICON(趋势关注=1,EMA(VAR1,60),13);
DRAWTEXT(趋势关注=1,EMA(VAR1,60),'转折'),COLORWHITE;
{DRAWTEXT(量价关注=1,EMA(VAR1,60),'L0V'),COLORWHITE;};
三、用于大智慧分时图的金龙喜舞
日时转换:=IF(DATATYPE=8,120,240);
QZS:=(EMA(CLOSE,10)+EMA(CLOSE,32))/2;
VAR1:=(EMA(CLOSE,30)+EMA(CLOSE,72))/2;
VAR2:=(EMA(VOL,10)+EMA(VOL,32))/2;
VAR3:=(VAR1+VAR2)/2;
VAR4:=EMA(VAR3,30);
VAR5:=EMA(VAR3,60);
VAR6:=ALL(VAR1>REF(VAR1,1),5) AND ALL(VAR4>REF(VAR4,1),5);
FILLRGN(VAR1,EMA(VAR1,60),VAR1>EMA(VAR1,60),RGB(150,30,30),VAR1<EMA(VAR1,60),RGB(0,110,30));
牵引线:VAR1,COLORYELLOW;
强弱线:EMA(VAR1,日时转换),COLORWHITE;
趋势关注:IF(CROSS(VAR1,EMA(VAR1,60)) AND VAR6,1,0),LINETHICK0,COLORRED;
量价关注:IF(CROSS(VAR3,VAR5) AND VAR6,1,0),LINETHICK0,COLORWHITE;
冲击量:IF(VAR3>VAR5 AND VAR6,1,0),LINETHICK0,COLORYELLOW;
强势区:IF(VAR1>强弱线,1,0),LINETHICK0,COLORRED;
止损区:IF(VAR1<强弱线,1,0),LINETHICK0,COLORGREEN;
STICKLINE(QZS>VAR1,QZS,VAR1,3,0),COLORFF00FF;
STICKLINE(冲击量=1,QZS,VAR1,3,0),COLORYELLOW;
{DRAWICON(趋势关注=1,EMA(VAR1,60),13);
DRAWTEXT(量价关注=1,EMA(VAR1,60),'L0V'),COLORWHITE;};
|