通达信战略家主图源码

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

以下是通达信战略家主图源码(无源码的请下载附件导入)

战略家主图源码

VAR1:=(CLOSE+HIGH+LOW)/3;
 VAR2:=EMA(VAR1,10);
 VAR3:=REF(VAR2,1);
 STICKLINE(VAR2>VAR3,VAR2,VAR3,5,0),COLORYELLOW;
 STICKLINE(VAR2<VAR3,VAR2,VAR3,5,0),COLORBLUE;
 MA5:MA(CLOSE,5),COLORRED,LINETHICK2;
 M13:EMA(CLOSE,13);
 M34:EMA(M13,34);
 M55:EMA(M13,55);
 VAR4:=EMA(M34,55);
 M105:EMA(M55,105);
 M240:EMA(VAR4,240),COLORRED,LINETHICK2;
 VAR5:=(REF(HIGH,1)+REF(LOW,1))/2;
 VAR6:=MA(CLOSE,N)+2*STD(CLOSE,N);
 VAR7:=REF(CLOSE,1);
 VAR8:=SMA(MAX(CLOSE-VAR7,0),N1,1)/SMA(ABS(CLOSE-VAR7),N1,1)*100;
 VAR9:=CROSS(N2,VAR8);
 VAR10:=FILTER(VAR9,4);
 VAR11:=(2*CLOSE+HIGH+LOW)/4;
 VAR12:=LLV(LOW,34);
 VAR13:=HHV(HIGH,34);
 VAR14:=EMA((VAR11-VAR4)/(VAR5-VAR4)*100,7);
 VAR15:=EMA(0.667*REF(VAR14,1)+0.333*VAR14,5);
 DRAWTEXT(IF(COUNT(CLOSE<REF(CLOSE,1),8)/8>6/10 AND VOL>=1.5*MA(VOL,5) AND COUNT(VAR14>=VAR15,3) AND REF(LOW,1)=LLV(LOW,120),1,0),LOW,158),COLORRED;
 DRAWTEXT(IF(COUNT(CLOSE<REF(CLOSE,1),13)/13>6/10 AND COUNT(VAR14>VAR15,6) AND REF(LOW,5)=LLV(LOW,120) AND REF(CLOSE>=OPEN,4) AND REF(CLOSE>OPEN,3) AND REF(CLOSE>OPEN,2) AND REF(OPEN>CLOSE,1) AND OPEN>REF(CLOSE,1),1,0),LOW,158),COLORRED;
 VAR16:=MA(CLOSE,80)-MA(CLOSE,10)/3;
 DRAWTEXT(IF(CLOSE<VAR16 AND VOL/240>MA(VOL,5)/240 AND CLOSE>REF(CLOSE,1)*1.08 AND CLOSE<MA(CLOSE,13)*1.3,1,0),LOW,159),COLORRED;
 STICKLINE(CLOSE>REF(CLOSE,1),HIGH,LOW,0,1),COLORRED;
 STICKLINE(CLOSE>REF(CLOSE,1),OPEN,CLOSE,3.1,0),COLOR000033;
 STICKLINE(CLOSE>REF(CLOSE,1),OPEN,CLOSE,2.7,0),COLOR000066;
 STICKLINE(CLOSE>REF(CLOSE,1),OPEN,CLOSE,2.1,0),COLOR000099;
 STICKLINE(CLOSE>REF(CLOSE,1),OPEN,CLOSE,1.5,0),COLOR0000CC;
 STICKLINE(CLOSE>REF(CLOSE,1),OPEN,CLOSE,0.9,0),COLORRED;
 STICKLINE(CLOSE>REF(CLOSE,1),OPEN,CLOSE,0.3,0),COLORCC66FF;
 STICKLINE(CLOSE<REF(CLOSE,1),HIGH,LOW,0,1),COLORCYAN;
 STICKLINE(CLOSE<REF(CLOSE,1),OPEN,CLOSE,3.1,0),COLOR990000;
 STICKLINE(CLOSE<REF(CLOSE,1),OPEN,CLOSE,2.7,0),COLORCC0000;
 STICKLINE(CLOSE<REF(CLOSE,1),OPEN,CLOSE,2.1,0),COLORFF4400;
 STICKLINE(CLOSE<REF(CLOSE,1),OPEN,CLOSE,1.5,0),COLORFF8800;
 STICKLINE(CLOSE<REF(CLOSE,1),OPEN,CLOSE,0.9,0),COLORFFCC00;
 STICKLINE(CLOSE<REF(CLOSE,1),OPEN,CLOSE,0.3,0),COLORCYAN;
 STICKLINE(CLOSE=REF(CLOSE,1),HIGH,LOW,0,1),COLORWHITE;
 STICKLINE(CLOSE=REF(CLOSE,1),OPEN,CLOSE,3.1,0),COLOR555555;
 STICKLINE(CLOSE=REF(CLOSE,1),OPEN,CLOSE,2.7,0),COLOR777777;
 STICKLINE(CLOSE=REF(CLOSE,1),OPEN,CLOSE,2.1,0),COLOR999999;
 STICKLINE(CLOSE=REF(CLOSE,1),OPEN,CLOSE,1.5,0),COLORBBBBBB;
 STICKLINE(CLOSE=REF(CLOSE,1),OPEN,CLOSE,0.9,0),COLORDDDDDD;
 STICKLINE(CLOSE=REF(CLOSE,1),OPEN,CLOSE,0.3,0),COLORWHITE;
 VAR17:=IF(HIGH=HHV(HIGH,3),1,0);
 VAR18:=IF(LOW=LLV(LOW,3),1,0);
 VAR19:=IF(REF(VAR17,2)=1 AND REF(VAR17,1)=0 AND VAR17=0,REF(HIGH,2),REF(HIGH,2+BARSLAST(REF(VAR17,2)=1 AND REF(VAR17,1)=0 AND VAR17=0)));
 VAR20:=IF(REF(VAR18,2)=1 AND REF(VAR18,1)=0 AND VAR18=0,REF(LOW,2),REF(LOW,2+BARSLAST(REF(VAR18,2)=1 AND REF(VAR18,1)=0 AND VAR18=0)));
 VAR21:=HIGH>VAR19 AND HIGH>REF(HIGH,1);
 VAR22:=LOW<VAR20 AND LOW<REF(LOW,1);
 VAR23:=BARSLAST(VAR21);
 VAR24:=BARSLAST(VAR22);
 VAR25:=IF(VAR23=0,VAR24,VAR23)>3;
 VAR26:=VAR21 AND VAR25 AND HIGH>=HHV(HIGH,BARSLAST(VAR22));
 VAR27:=VAR22 AND VAR25 AND LOW<=LLV(LOW,BARSLAST(VAR21));
 DRAWLINE(VAR27,LOW,VAR26,HIGH,0),COLORWHITE,LINETHICK2;
 DRAWLINE(VAR26,HIGH,VAR27,LOW,0),COLORWHITE,LINETHICK2;

654399305.png

654399305.png

回复

使用道具 举报

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

本版积分规则