以下是通达信极品MACD 添加N多信息

DIF:=EMA(CLOSE,12)-EMA(CLOSE,26);
 DEA:=EMA(DIF,9);
 MACD:”MACD.MACD”,NODRAW;
 W1:STICKLINE(MACD>0,MACD,0,3,1),COLORRED;
 W2:STICKLINE(MACD<0,MACD,0,3,1),COLORCYAN;
 VA1:=HHVBARS(MACD,BARSLAST(MACD<0)+1);
 VA2:=CROSS(BACKSET(CROSS(0,MACD),REF(VA1,1)+2),0.5);
 QG:=CROSS(BACKSET(CROSS(0,MACD) OR (ISLASTBAR AND MACD>0),REF(VA1,1)+2),0.5);
前高:DRAWLINE(VA2,MACD,REF(VA2,1),REF(MACD,1),1),COLORMAGENTA;
 VA3:=LLVBARS(MACD,BARSLAST(MACD>0)+1);
 VA4:=CROSS(BACKSET(CROSS(MACD,0),REF(VA3,1)+2),0.5);
 BD:=BARSLAST(FILTERX(CROSS(0,MACD),BARSCOUNT(C)));
前低:DRAWLINE(VA4,MACD,REF(VA4,1),REF(MACD,1),1);
 BDTJ:=IF(MACD<0,FILTERX(MACD=LLV(MACD,BARSLAST(MACD>0)),
 BARSCOUNT(C)),DRAWNULL);
 TSBDTJ:=BARSLAST(BDTJ);
 BDZH:=FILTERX(MACD<CONST(LLV(MACD,BD+1)),BARSCOUNT(C));
 BDTS:=BARSLAST(BDZH);
本低:IF(BD+1>=1,CONST(LLV(MACD,BD+1)),DRAWNULL);
 BDCL:=CROSS(COUNT(CROSS(MACD>本低/2 AND MACD<0,0.5),TSBDTJ)=1,0.5) AND TSBDTJ>=0;
终点:=IF(ISLASTBAR AND MACD>0 AND MACD=HHV(MACD,BARSLAST(MACD<0)),1,
 IF(FILTERX(QG,BARSCOUNT(C)),2,DRAWNULL));
 UU:=(终点=1 OR 终点=2) AND MACD>0;
 ZZ:=FILTERX(UU,BARSCOUNT(C));
本高:DRAWLINE(ZZ,MACD,REF(ZZ,1),REF(MACD,1),1),COLORWHITE;
横线:=CONST(REF(MACD,BARSLAST(ZZ)));
 WW:=MACD>横线;
起始点:=FILTERX(REFX(BARSLAST(WW),1)=1,BARSCOUNT(C));
天数:BARSLAST(起始点),COLORYELLOW,NODRAW;
上横线:DRAWLINE(起始点,横线,ZZ,横线,0),COLORGREEN,DOTLINE;
下横线:DRAWLINE(BDZH,CONST(LLV(MACD,BD+1)),BDTJ=1,MACD,0),COLOR8080FF,DOTLINE;
 DRAWNUMBER(BDTJ,CONST(LLV(MACD,BD+1))*0.9,BDTS);
 DRAWNUMBER(ZZ,上横线*1.1,天数);
TJ:=IF(起始点,BARSNEXT(ZZ),DRAWNULL);
红柱数量:IF(天数>0 AND 天数<=REF(TJ,天数),SUM(MACD>0,天数),DRAWNULL),COLORWHITE,NODRAW;
横线起始价:REF(C,天数),NODRAW;
空间评估:(横线起始价-C)/C*100,NODRAW;
 TT:=BARSLAST(ZZ);
 WQG:=CROSS(COUNT(CROSS(MACD<本高/2 AND MACD>0,0.5),ZZ)=1,0.5) AND ZZ>=0;
 STICKLINE(MACD>前高 AND 本高>前高 AND BARSLAST(CROSS(MACD<本高/2,0.5))>0 AND
 MACD>(前高+本高)/2,MACD,前高,1,0),COLORYELLOW;
前高本高二分位:IF(MACD>0 AND 本高!=前高,DRAWLINE(WQG,(前高+本高)/2,REF(WQG,1),REF((前高+本高)/2,1),1)
 ,DRAWNULL),COLORC0C000,DOTLINE;
 AA:=STRCAT(STRCAT(STRCAT(‘〖’,’上升空间’),’〗’),CON2STR(IF(空间评估,空间评估,
DRAWNULL),2));
 DRAWTEXT(WQG,MACD*1.1,’本高成立’),COLORWHITE;
 DRAWTEXT(BDCL,MACD*1.1,’本低成立’),COLORWHITE;
 STICKLINE(MACD>前高,MACD,前高,1,0),COLORYELLOW;
 STICKLINE(WQG,MACD,0,1,0),COLORGREEN;
 STICKLINE(MACD<0 AND MACD<前低 AND 前低<0,MACD,前低,1,0),COLORBLUE;
 B1:=IF(CROSS(MACD<0,0.5),BARSNEXT(BDTJ),DRAWNULL);
 TSB1:=BARSLAST(MACD>0)-1;
 STICKLINE(BARSLAST(BDCL)>=0 AND MACD<前低 AND MACD<0,MACD,前低,1,0),COLORGREEN;
 STICKLINE(BDCL,MACD,0,1,0),COLORWHITE;
 STICKLINE(MACD>前高 AND 本高>前高 AND BARSLAST(WQG)>0,MACD,前高,1,0),COLORRED;
 DIFX:DIF,LINETHICK2;
 DEAX:DEA,LINETHICK2;
 DRAWTEXT(VA2 AND VA2!=UU,(MACD/10)*9,’前’);
DRAWTEXT(VA2 AND VA2!=UU,MACD/10,’高’);
DRAWTEXT(ZZ,(MACD/10)*9,’本’),COLORWHITE;
 DRAWTEXT(ZZ,MACD/10,’高’),COLORWHITE;
 DRAWTEXT(BDTJ,(MACD/10)*9,’低’),COLORRED;
 DRAWTEXT(BDTJ,MACD/10,’本’),COLORRED;
 IF(BARSLAST(BDCL)>=0,本低/2,DRAWNULL),COLORRED,DOTLINE;
 DRAWTEXT_FIX(1,0.05,0.04,0,’【黑码拉升由两个阶段构成:同步上涨阶段(黄芯柱)
 和惯性上涨阶段(背离阶段、红芯柱)】’),COLORFFFF00;

{MACD KDJ共振}
 {MK月金叉共振选股附图}
DIFC:=”MACD.DIF#MONTH”(6,13,5);
 DEC:=”MACD.DEA#MONTH”(6,13,5);
 CK:=”KDJ.K#MONTH”(9,3,3);
 CD:=”KDJ.J#MONTH”(9,3,3);
月金叉:=CROSS(DIFC,DEC) AND CROSS(CD,CK);
月金叉共振:IF(月金叉,0.5,0),LINETHICK6,COLORFF00FF;
 DRAWTEXT(月金叉共振,0.32,’月金叉共振’), COLORYELLOW;

{MK周金叉共振选股附图}
DIFB:=”MACD.DIF#WEEK”(6,13,5);
 DEB:=”MACD.DEA#WEEK”(6,13,5);
 BK:=”KDJ.K#WEEK”(9,3,3);
 BDW:=”KDJ.J#WEEK”(9,3,3);
周金叉:=CROSS(DIFB,DEB) AND CROSS(BDW,BK);
周金叉共振:IF(周金叉,0.4,0),LINETHICK3,COLORRED;

{M.K日金叉共振选股附图}
DIFA:=EMA(CLOSE,6)-EMA(CLOSE,13);
 DEAG:=EMA(DIFA,5);
 RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
 K:=SMA(RSV,3,1);
 D:=SMA(K,3,1);
日金叉:=CROSS(DIFA,DEAG) AND CROSS(K,D);
日金叉共振:IF(日金叉,0.2,0),LINETHICK2,COLORYELLOW;{COLOR0066FF;};

{抄底黄金坑附图}
RR8:=MA(CLOSE,27);
 RR9:=(CLOSE-RR8)/RR8*100;
 RRA:=MA(RR9,2);
 RRB:=BARSLAST(CROSS(-10,RRA)=1);
 RRD:=RRA<-10 AND RRB>3;
【黄金坑】:IF(RRD,-0.05,0),COLORYELLOW,LINETHICK3;
 DRAWICON(RRD,-0.055,3);
 VAR1:=MA(CLOSE,27);
 VAR2:=(CLOSE-VAR1)/VAR1*100;
 VAR3:=MA(VAR2,2);
 VAR4:=BARSLAST(CROSS(-10,VAR3)=1);
 VAR5:=VAR3<-10 AND VAR4>3;
【贪嘴乐】: IF(VAR3>REF(VAR3,1) AND VAR5 AND VAR3<-15,0.4,0),LINETHICK3,LINESTICK,COLORFFA2AF;
 DRAWICON(【贪嘴乐】>=1.6,0.27,3);
 {见底}
VJAR1:=SMA(MAX(CLOSE-REF(CLOSE,1),0),34,1)/SMA(ABS(CLOSE-REF(CLOSE,1)),7,1)*100;
 VJAR2:=SMA(MAX(CLOSE-REF(CLOSE,1),0),13,1)/SMA(ABS(CLOSE-REF(CLOSE,1)),13,1)*100;
 VJAR3:=BARSCOUNT(CLOSE);
 VJAR4:=VJAR1<20 AND VJAR2<23 AND VJAR3>35;
 VJAR5:=VJAR4 AND COUNT(VJAR4,1)=1;
 VJAR6:=EMA(CLOSE,21)-EMA(CLOSE,8);
 VJAR7:=EMA(VJAR6,5);
 VJAR8:=TROUGHBARS(3,6,1)<4 AND CROSS(VJAR6,VJAR7);
 VJAR9:=(HIGH+LOW+CLOSE)/3;
 VJAR10:=IF(TROUGHBARS(3,16,1)=0 AND HIGH>LOW+0.04,4,0);
 VJAR11:=(VJAR9-MA(VJAR9,14))/(0.015*AVEDEV(VJAR9,14));
见底:=VJAR10,COLORYELLOW,LINETHICK3;
 STICKLINE(见底,0.20,0,1,0),COLORWHITE;
 DRAWTEXT(VJAR11<-110 AND 见底>0,0.17,’见底’),COLORWHITE;
 DRAWTEXT(见底 AND VJAR11<-100 AND VJAR8 AND VJAR5>0,0.18,’★组合5分钟线选股思路获利5%以上’), , COLORRED;
 DRAWICON(见底>0,0.22,1);

{}
清仓:=1.66*MA(FORCAST(CLOSE,2),40),COLORRED;
出货:=1.36*MA(FORCAST(CLOSE,2),40),COLOR08FFFF;
高抛:=1.16*MA(FORCAST(CLOSE,2),40),COLORFF82FF;
低吸:=0.82*MA(FORCAST(CLOSE,2),40),COLORF7E300;
满仓:=0.72*MA(FORCAST(CLOSE,2),40),COLORGREEN;
强通1:=清仓>REF(清仓,1),;
强通2:=出货>REF(出货,1),;
强通3:=高抛>REF(高抛,1),;
强通4:=低吸>REF(低吸,1),;
强通5:=满仓>REF(满仓,1),;
上升通道:=强通1 AND 强通2 AND 强通3 AND 强通4 AND 强通5,;
 MA5:=MA(CLOSE,5);
 MA10:=MA(CLOSE,10),;
 MA20:=MA(CLOSE,20);
 MA30:=MA(CLOSE,30);
 MA60:=MA(CLOSE,60);
五强:=MA5>REF(MA5,1),;
十强:=MA10>REF(MA10,1),;
二十强:=MA20>REF(MA20,1),;
三十强:=MA30>REF(MA30,1),;
六十强:=MA60>REF(MA60,1),;
小均强:=五强 AND 十强,;
均强:=十强 AND 二十强 AND 三十强,;
大均强:=十强 AND 二十强 AND 三十强 AND 六十强,;
JJD:=(H+L+C)/3;
强势线1:=HHV(MA((((LOW + HIGH) + CLOSE) / 3),8),60),COLORRED,LINETHICK2;
强势线2:=HHV(MA((((LOW + HIGH) + CLOSE) / 3.18),8),20),COLORWHITE,LINETHICK2;
强势线3:=HHV(MA((((LOW + HIGH) + CLOSE) / 3.258),8),10),COLORYELLOW,LINETHICK2;
强势线4:=HHV(MA((((LOW + HIGH) + CLOSE) / 3.08),80),13),COLORLIMAGENTA,LINETHICK2;
开始走强1:=强势线1>REF(强势线1,1),;
开始走强2:=强势线2>REF(强势线2,1),;
开始走强3:=强势线3>REF(强势线3,1),;
开始走强4:=强势线4>REF(强势线3,1),;
双强1:=开始走强1 AND 开始走强2,;
双强2:=开始走强2 AND 开始走强3,;
双强3:=开始走强2 AND 开始走强3,;
双强4:=开始走强3 AND 开始走强4,;
三强:=开始走强1 AND 开始走强2 AND 开始走强3,;
四强:=开始走强1 AND 开始走强2 AND 开始走强3 AND 开始走强4,;
强势为王:=双强1 OR 双强2 OR 双强3 OR 双强4 OR 三强 OR 四强;
VV:=(C+L+H)/3;
 DSA:=SMA(XMA(VV,15),2,1)LINETHICK3;
顶部1:=DSA*1.0888,COLORMAGENTA,LINETHICK1;
顶部2:=DSA*1.158,COLORBROWN,LINETHICK1;
顶部3:=DSA*1.218,COLORRED,LINETHICK1;
底部1:=DSA*0.9518,COLORLICYAN,LINETHICK1;
底部2:=DSA*0.888,COLORLIMAGENTA,LINETHICK1;
底部3:=DSA*0.8,COLORGREEN,LINETHICK1;

五日走强:=MA5>REF(MA5,1),;
十日走强:=MA10>REF(MA10,1),;
二十日走强:=MA20>REF(MA20,1),;
六十日走强:=MA60>REF(MA60,1),;
低位主升:=五日走强 AND 十日走强 AND 六十日走强,;
主升浪:=五日走强 AND 十日走强 AND 二十日走强,;
大主升浪:=十日走强 AND 二十日走强 AND 六十日走强,;
大主升浪2:=五日走强 AND 十日走强 AND 二十日走强 AND 六十日走强,;
总主升:=主升浪 AND 大主升浪 AND 大主升浪2,;
总主升浪:=低位主升 OR 主升浪 OR 大主升浪 OR 大主升浪2 OR 总主升,;
强势主升低买:=L<底部1 AND 总主升浪 AND 强势为王 AND C<DSA,COLORYELLOW,LINETHICK2;
猎股小王:=L<底部1 AND C<DSA AND 强势为王,LINETHICK2,LINESTICK;
 STICKLINE(猎股小王,0,0.2,3,0),COLORYELLOW;
 DRAWTEXT(猎股小王,0.2,’小王’),COLORWHITE,LINETHICK2;
猎股大王出击:=强势主升低买 AND 猎股小王 AND H<DSA,COLORRED;
 AC:=MA(C,30);
 AC1:=AC*1.1;
 AC4:=AC*0.9;
 AC2:=AC1-(AC1-AC4)*0.191;
持仓:=IF(HIGH*1.01>AC2 OR REF(HIGH,1)>REF(AC2,1),AC1,AC4),LINETHICK3,COLORRED;
生命线:=IF(HIGH*1.01>AC2 OR REF(HIGH,1)>REF(AC2,1),AC2,AC4),LINETHICK3,COLORFFFFFF;
主升持仓:=持仓>生命线,;
主升1:=持仓>REF(持仓,1),;
主升2:=生命线>REF(生命线,1),;
主升:=主升1 AND 主升2,;
主升猎股王:=(猎股大王出击 AND 主升持仓 AND 主升) OR (猎股小王 AND 主升持仓 AND 主升),;
绝对的主升:=(主升猎股王 AND 小均强) OR (猎股小王 AND 小均强),COLORYELLOW,LINETHICK4,STICK;
 DRAWICON(绝对的主升>0,0.5,1);
 DRAWICON(绝对的主升>0,0.5,1);
 DRAWICON(绝对的主升>0,0.3,9);
 DRAWICON(绝对的主升>0,0.1,9);
 ZL:=EMA(100*(C-LLV(LOW,34))/(HHV(H,34)-LLV(LOW,34)),3);
 F11:=ZIG(3,15);
 FXX:=IF((F11> REF(F11,1)),5,105);
见绿买:=CROSS(ZL,FXX);
 DRAWTEXT(见绿买,0.2,’↓ 紧急关注!’), , COLORYELLOW;
 STICKLINE(见绿买,0.3,0,1,0), COLORRED;

 

声明:本站所有文章,如无特殊说明或标注,均为本站原创发布。任何个人或组织,在未征得本站同意时,禁止复制、盗用、采集、发布本站内容到任何网站、书籍等各类媒体平台。如若本站内容侵犯了原著者的合法权益,可联系我们进行处理。