通达信一线通吃主图指标源码

[复制链接]
查看194 | 回复0 | 2021-8-20 16:06:50 | 显示全部楼层 |阅读模式

以下是通达信一线通吃主图指标源码(无源码的请下载附件导入)

AAA:=(3*C+H+L+O)/6;
 VAR1:=(8*AAA+7*REF(AAA,1)+6*REF(AAA,2)+5*REF(AAA,3)+4*REF(AAA,4)+3*REF(AAA,5)+2*REF(AAA,6)+REF(AAA,8))/36,COLORFF7700;
 VAR2:=(HHV(VAR1,5)+HHV(VAR1,10)+HHV(VAR1,20))/3;
 VAR3:=(LLV(VAR1,5)+LLV(VAR1,10)+LLV(VAR1,20))/3;
 VAR4:=(HHV(VAR2,5)+HHV(VAR2,10)+HHV(VAR2,20))/3;
 VAR5:=(LLV(VAR3,5)+LLV(VAR3,10)+LLV(VAR3,20))/3;
 VAR6:=(LLV(VAR1,2)+LLV(VAR1,4)+LLV(VAR1,6))/3;
 {长期趋势线}
长期趋势线:(MA(C,188)),COLORGREEN,LINETHICK2;
 LC:=REF(CLOSE,1);
 RS1:=SMA(MAX(CLOSE-LC,0),12,1)/SMA(ABS(CLOSE-LC),12,1)*100;
起步:IF((RS1 >58),长期趋势线,DRAWNULL),,COLORRED,LINETHICK2;
 {红}
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,3,0),COLOR000099;
 STICKLINE(CLOSE>OPEN,CLOSE,OPEN,2.2,0),COLOR0000CC;
 STICKLINE(CLOSE>OPEN,CLOSE,OPEN,1.5,0),COLOR0000FF;
 STICKLINE(CLOSE>OPEN,CLOSE,OPEN,0.5,0),COLORCC66FF;
 DRAWBAND(VAR1,RGB(155,50,50),VAR6,RGB(250,250,0));
 DRAWKLINE(HIGH,OPEN,LOW,CLOSE);
短线趋势线:VAR1,COLORWHITE;
中线趋势线:VAR6,COLORYELLOW,LINETHICK3;
下跌:IF(VAR1=VAR6,VAR6,DRAWNULL),COLORFF2200,LINETHICK4;
 BIAS13:=MA((CLOSE-MA(CLOSE,13))/MA(CLOSE,13),3)*100,COLORBLUE,LINETHICK4;
 XG2:=DRAWICON(CROSS(BIAS13,REF(BIAS13,1)),BIAS13,1);
 DRAWTEXT(FILTER(XG2=1,5),LOW-0.05,'↖买进'),COLORYELLOW;
 STICKLINE(XG2,O,C,2,0),COLOR00FFFF;
 {行业属性}
Z1:=STRCAT(HYBLOCK,' ');
 Z2:=STRCAT(Z1,DYBLOCK);
 Z3:=STRCAT(Z2,' ');
 DRAWTEXT_FIX(ISLASTBAR,0,0,0,STRCAT(Z3,GNBLOCK)),COLORLIRED;

653377097.jpg

653377097.jpg

回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则