以下是通达信黄金分割趋势主图源码帖图

{网均线}
网1:=EXPMA(C,5),COLORYELLOW;
网12:EXPMA(C,12),COLORGRAY,LINETHICK3;
网2:=EXPMA(网1,2);
网3:=EXPMA(网2,2);
网33:EXPMA(CLOSE,33),COLORFF00FF,LINETHICK4;
TJ1A:IF(网1>网2,网1,网2),COLORLICYAN;
TJ2A:IF(网1>网3,网1,网3),COLORGREEN;
TJ3A:网1,COLORYELLOW,LINETHICK2;
{QS}
网A:=EXPMA(CLOSE,5),COLORWHITE;

网B:=EXPMA(CLOSE,33),COLORFF00FF,LINETHICK3;

IF(网B<REF(网B,1),网B,DRAWNULL),COLOR00FF00,LINETHICK3;
IF(网B<REF(网A,1),网A,DRAWNULL),COLORWHITE,LINETHICK1;
IF(网1<REF(网B,1),网A,DRAWNULL),COLORGREEN,LINETHICK1;

日:=50;昨前:=3;
高1:=REF(HHV(H,日),昨前);
低1:=REF(LLV(L,日),昨前);
H1:=高1-(高1-低1)*0.191;
H2:=高1-(高1-低1)*0.382;
H3:=高1-(高1-低1)*0.5;
H4:=高1-(高1-低1)*0.618;
H5:=高1-(高1-低1)*0.809;
L1:=低1+(高1-低1)*1.191;
L2:=低1+(高1-低1)*1.382;
L3:=低1+(高1-低1)*1.5;
L4:=低1+(高1-低1)*1.618;
L5:=低1+(高1-低1)*1.809;
短压:REFDATE(高1,DATE),COLORGREEN,LINETHICK1;
支撑19.1%:REFDATE(H1,DATE),COLORYELLOW;
支撑38.2%:REFDATE(H2,DATE),COLORMAGENTA;
支撑50%:REFDATE(H3,DATE),COLORLIGRAY;
支撑61.8%:REFDATE(H4,DATE),COLORWHITE,LINETHICK1;
支撑80.9%:REFDATE(H5,DATE),COLORWHITE;
低:REFDATE(低1,DATE),COLORWHITE;
阻力119.1%:REFDATE(L1,DATE),COLORYELLOW;
阻力138.2%:REFDATE(L2,DATE),COLORMAGENTA;
阻力150%:REFDATE(L3,DATE),COLORLIGRAY;
阻力161.8%:REFDATE(L4,DATE),COLORRED;
阻力180.9%:REFDATE(L5,DATE),COLORWHITE;
 

DIFF:=EMA(CLOSE,2) – EMA(CLOSE,60);
DEA:=EMA(DIFF,8);

DRAWTEXT(CROSS(DIFF,DEA) AND CROSS(“KDJ.K”(9,3,3),”KDJ.D”(9,3,3)),L-0.40,’金叉共振‘),COLOR0099FF;
风险系数1:=100*(HHV(HIGH,60)-CLOSE)/(HHV(HIGH,60)-LLV(LOW,60));
风险系数2:=100*(HHV(HIGH,90)-CLOSE)/(HHV(HIGH,90)-LLV(LOW,90));
阶段底部:CROSS(90,风险系数1) AND CROSS(90,风险系数2) AND COUNT(ABS(风险系数1-风险系数2)/风险系数2<0.15,1)=1,NODRAW;

STICKLINE(阶段底部,O,(O+C)/2,3,0),COLORMAGENTA;
A1:=(CLOSE+HIGH+LOW)/3;
A2:=EMA(A1,3);
A3:=REF(A2,1);
A4:=IF(A2>A3,A2,DRAWNULL);
A5:=IF(A2<=A3,A2,DRAWNULL);
STICKLINE(CROSS(C,REF(A5,1)),REF(A5,1)*1.002,REF(A5,1),20,0),COLORRED;
DRAWTEXT(CROSS(REF(A4,1),C) AND A4,H,’↓开跌’),COLORGREEN;

DRAWTEXT_FIX(1,0.00,0,0,’所属行业:’)COLOR0080FF;
DRAWTEXT_FIX(1,0.07,0,0,HYBLOCK)COLOR0080FF;
DRAWTEXT_FIX(1,0.14,0,0,’所属地区:’)COLOR00FFFF;
DRAWTEXT_FIX(1,0.21,0,0,DYBLOCK)COLOR00FFFF;
DRAWTEXT_FIX(1,0.00,0.06,0,’主题投资:’)COLOR0000FF;
DRAWTEXT_FIX(1,0.07,0.06,0,EXTERNVALUE(0,1))COLOR0000FF;
DRAWTEXT_FIX(1,0.00,0.12,0,’概念:’)COLOR0000FF;
DRAWTEXT_FIX(1,0.07,0.12,0,EXTERNSTR(0,2))COLOR0000FF;
DRAWTEXT_FIX(1,0.00,0.18,0,’中报业绩:’)COLOR0000FF;
DRAWTEXT_FIX(1,0.07,0.18,0,EXTERNSTR(0,3))COLOR0000FF;
DRAWTEXT_FIX(1,0.00,0.24,0,’三季业绩:’)COLOR0000FF;
DRAWTEXT_FIX(1,0.07,0.24,0,EXTERNSTR(0,4))COLOR0000FF;
DRAWTEXT_FIX(1,0.00,0.30,0,’盈利预测:’)COLOR0000FF;
DRAWTEXT_FIX(1,0.07,0.30,0,EXTERNSTR(0,5))COLOR0000FF;

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