通达信金龙出水波段买入或持股副图指标 源码

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

以下是通达信金龙出水波段买入或持股副图指标 源码(无源码的请下载附件导入)

N:=21;
 VAR1:=(CLOSE+LOW+HIGH)/3;
 VAR2:=SUM(((VAR1-REF(LOW,3))-(HIGH-VAR1))*VOL/10000/(HIGH-LOW),1);
 VAR3:=EMA(VAR2,3),COLORFFEE3C;
 JCS0:VAR3,CIRCLEDOT,LINETHICK1,COLORFFEE3C;
波段买入或持股:IF(JCS0>REF(JCS0,1),JCS0,DRAWNULL),LINETHICK4;
波段卖出或观望:IF(JCS0<REF(JCS0,1),JCS0,DRAWNULL),LINETHICK3,COLORFFEE3C;
 IF(VAR1>REF(VAR1,1),VAR3,10),CIRCLEDOT,COLORRED,LINETHICK2;
 IF(VAR1<REF(VAR1,1),VAR3,10),CIRCLEDOT,COLOR00FF00,LINETHICK2;
 VAR4:=REF(VAR3,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
 VAR5:=REF(VAR4,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
 VAR6:=REF(VAR5,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
 VAR7:=REF(VAR6,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
 VAR8:=REF(VAR7,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
 VAR9:=REF(VAR8,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
 VARA:=REF(VAR9,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
 VARB:=REF(VARA,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
 VARC:=REF(VARB,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
 VARD:=CLOSE<REF(CLOSE,1) AND CLOSE<REF(CLOSE,2);
 VAR1A:=REF(VAR1 OR VAR2 OR VAR3 OR VAR4 OR VAR5 OR VAR6 OR VAR7 OR
 VAR8 OR VAR9 OR VARA OR VARB OR VARC,1) AND VARD;
 JCS:=VAR3;
 JCS1:VAR3,COLORRED,CIRCLEDOT,LINETHICK1;
 JCS2:VAR3,COLORRED,,LINETHICK1;
 JCM:=MA(VAR3,12)COLORYELLOW;
 JCL:=MA(VAR3,26)COLORMAGENTA;
 JCM1:IF(JCM<VAR3,JCM,DRAWNULL),,COLORYELLOW,LINETHICK2;
 JCM2:IF(JCM>VAR3,JCM,DRAWNULL),,COLORBLUE,LINETHICK2;
 JCL1:IF(JCL<VAR3,JCL,DRAWNULL),,COLORMAGENTA,LINETHICK2;
 JCL2:IF(JCL>VAR3,JCL,DRAWNULL),,COLORCYAN,LINETHICK2;
大涨:=FILTER(CLOSE/REF(CLOSE,3)>=1.1,3);
买入:=IF((大涨 AND COUNT(大涨,3)=1),30,0),COLORYELLOW,LINETHICK3;
 OP:=STICKLINE(买入,O,C,4,0)COLORYELLOW;
 B:IF(买入>0 ,JCL,DRAWNULL),CROSSDOT,LINETHICK6,COLORRED;
 B2:IF(买入>0 ,JCL,DRAWNULL),POINTDOT,LINETHICK4,COLOR00CCFF;
蓝花跌:=VAR1A;
卖出:=IF((蓝花跌 AND COUNT(蓝花跌,3)=1),30,0),COLORYELLOW,LINETHICK3;
 OP1:=STICKLINE(蓝花跌,O,C,4,0)COLORYELLOW;
 IF(卖出>0 ,JCL,DRAWNULL),CROSSDOT,LINETHICK6,COLORCYAN;
 IF(卖出>0 ,JCL,DRAWNULL),POINTDOT,LINETHICK4,COLOR00CCFF;

833299979.jpg

833299979.jpg

回复

使用道具 举报

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

本版积分规则