通达信买卖条件副图指标源

[复制链接]
查看67 | 回复0 | 2021-8-26 22:34:12 | 显示全部楼层 |阅读模式

以下是通达信买卖条件副图指标源(无源码的请下载附件导入)

买:=IF("KDJ.J"<0,10,0);
条件:=CROSS(9.9,买);
VAR1:=(2*CLOSE+HIGH+LOW)/4;
 VAR2:=LLV(LOW,5);
 VAR3:=HHV(HIGH,5);
 VAR4:=EMA((VAR1-VAR2)/(VAR3-VAR2)*100,5);
 MA1:=MA(VAR4,2);
 AA:STICKLINE(VAR4>MA1,VAR4,MA1,2,1),COLORFF00FF;
 BBB:STICKLINE(VAR4>MA1 AND REF(VAR4,1)<30,VAR4,MA1,2,1),COLORFF00FF;
 STICKLINE(VAR4<=MA1,VAR4,MA1,2,1),COLORFFCC66;
 H1:IF(CROSS(9.9,买),VAR4-12,DRAWNULL),CROSSDOT,LINETHICK7,COLORYELLOW;
 F1_:IF(CROSS(9.9,买),VAR4-12,DRAWNULL),CIRCLEDOT,LINETHICK2,COLORRED;
 STICKLINE(CROSS(9.9,买),VAR4+5,MA1-4,2,8),COLORYELLOW;
 XXX:=STICKLINE(BBB,VAR4+5,MA1-4,2,1),COLORYELLOW;
 STICKLINE(FILTER(XXX ,5) ,VAR4+5,MA1-4,2,1),COLORWHITE;
 R1:=1;
 R2:=((((2*CLOSE)+HIGH)+LOW) / 4);
 R4:=LLV(LOW,5);
 R5:=HHV(HIGH,4);
 C1:=(EMA((((R2-R4)/(R5-R4))*100),4)*R1),COLORFF00FF,LINETHICK2;
 C2:=(EMA(((0.667*REF(C1,1))+(0.333*C1)),2)*R1),COLORFFFFFF,LINETHICK2;
条:=CROSS(C1,C2) AND C1<40;
 STICKLINE(条,0,-10,2,0),COLORRED;
 DRAWTEXT(条,5,'小马'),COLORRED;
 DI0:=(EMA(DCLOSE,13)-EMA(DCLOSE,26))*100;
 DE0:=EMA(DI0,9);
 MA0:=2*(DI0-DE0);
黑:(MA0>REF(MA0,1)*2.5 AND MA0>15),COLORFF00FF;
 STICKLINE(黑,0,25,2.0,0),COLORYELLOW;

1958466321.jpg

1958466321.jpg

回复

使用道具 举报

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

本版积分规则