通达信两仪万像源码副图贴图

[复制链接]
查看59 | 回复0 | 2021-8-20 01:14:53 | 显示全部楼层 |阅读模式

以下是通达信两仪万像源码副图贴图(无源码的请下载附件导入)

该指标在近期用的较多,很简单试用,当信号由蓝黄翻红时为买入信号,在飞狐软件哪里当发出红线为转折点,所以在飞狐软件中感觉准确率超高,转到通达信后信号稍弱,不知哪里设置不对,现分享后有高手可以优化下再发贴出来给大家共享,谢谢!
N:=9;
M:=3;
多空:0,POINTDOT,COLORFFFFFF,NODRAW;
VAR1:=HHV(HIGH,9)-LLV(LOW,9);
VAR2:=HHV(HIGH,9)-CLOSE;
VAR3:=CLOSE-LLV(LOW,9);
VAR4:=VAR2/VAR1*100-70;
VAR5:=(CLOSE-LLV(LOW,60))/(HHV(HIGH,60)-LLV(LOW,60))*100;
VAR6:=(2*CLOSE+HIGH+LOW)/4;
VAR7:=SMA(VAR3/VAR1*100,3,1);
VAR8:=LLV(LOW,34);
VAR9:=SMA(VAR7,3,1)-SMA(VAR4,9,1);
AA:=IF(VAR9>100,VAR9-100,0);
BB:=HHV(HIGH,34);
CC:=EMA((VAR6-VAR8)/(BB-VAR8)*100,13);
DD:EMA(0.667*REF(CC,1)+0.333*CC,2),POINTDOT,COLORFFFFFF,LINETHICK1;
IF(DD>REF(DD,1),DD,DRAWNULL),COLORRED,LINETHICK1;
DRAWICON(FILTER(DD<REF(DD,1),10),DD,1);

OO:=(CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*80;
EE:3.4*SMA(OO,M,1)-2.1*SMA(SMA(OO,M,1),M,1),POINTDOT,COLORFFFFFF;
IF(EE>REF(EE,1),EE,DRAWNULL),COLORRED,LINETHICK3;
老阴:=EE<REF(EE,1) AND DD<REF(DD,1);
老阳:=EE>REF(EE,1) AND DD>REF(DD,1);
少阳:=EE>REF(EE,1) AND DD<REF(DD,1);
少阴:=EE<REF(EE,1) AND DD>REF(DD,1);

DRAWBAND(DD,RGB(0,24,224),EE,RGB(255,0,0));
STICKLINE(少阳,DD,EE,4,0),COLORWHITE;
STICKLINE(少阴,DD,EE,4,0),COLORYELLOW;

628399039.jpg

628399039.jpg
 

回复

使用道具 举报

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

本版积分规则