通达信量学五彩K线 转载和谐完全加密指标!

[复制链接]
查看43 | 回复0 | 2022-7-8 08:03:21 | 显示全部楼层 |阅读模式

公式名称: 量学五彩K线

参数数量: 10

参数1: 精准容差值, 最小: 0, 最大: 10, 缺省: 1

参数2: 回踩峰谷百分比, 最小: 5, 最大: 20, 缺省: 5

参数3: 波峰虚实, 最小: 0, 最大: 1, 缺省: 0, 日线: 1

参数4: 波谷虚实, 最小: 0, 最大: 1, 缺省: 0, 日线: 1

参数5: 峰顶线, 最小: 0, 最大: 1, 缺省: 0, 日线: 1

参数6: 谷底线, 最小: 0, 最大: 1, 缺省: 0, 日线: 1

参数7: 大阴顶线, 最小: 0, 最大: 1, 缺省: 0, 日线: 1

参数8: 大阳底线, 最小: 0, 最大: 1, 缺省: 0, 日线: 1

参数9: 三一二一刻度, 最小: 0, 最大: 1, 缺省: 1

参数10: 显示板块, 最小: 0, 最大: 1, 缺省: 1

请设置计算参数:

精准容差值: Param#0 (0.00--10.00)

回踩峰谷百分比: Param#1 (5.00--20.00)

波峰虚实: Param#2 (0.00--1.00)

波谷虚实: Param#3 (0.00--1.00)

峰顶线: Param#4 (0.00--1.00)

谷底线: Param#5 (0.00--1.00)

大阴顶线: Param#6 (0.00--1.00)

大阳底线: Param#7 (0.00--1.00)

三一二一刻度: Param#8 (0.00--1.00)

显示板块: Param#9 (0.00--1.00)

用法注释:无

公式源码:}

三一:HIGH-(HIGH-LOW)*0.333,NODRAW;

二一:(HIGH+LOW)*0.5,NODRAW;

三分之二:HIGH-(HIGH-LOW)*0.666,NODRAW;

实体三一:MIN(CLOSE,OPEN)+(MAX(CLOSE,OPEN)-MIN(CLOSE,OPEN))*0.666,NODRAW;

实体二一:(CLOSE+OPEN)*0.5,NODRAW;

实体三二:MIN(CLOSE,OPEN)+(MAX(CLOSE,OPEN)-MIN(CLOSE,OPEN))*0.333,NODRAW;

X_1:=STRCAT(HYBLOCK,5);

X_2:=STRCAT(X_1,DYBLOCK);

X_3:=STRCAT(X_2,5);

DRAWTEXT_FIX(ISLASTBAR AND 显示板块=1,0,0,0,STRCAT(X_3,GNBLOCK)),COLORYELLOW;

STICKLINE(REF(LOW,1)>HIGH,HIGH,REF(LOW,1),3,0),COLORGRAY;

STICKLINE(REF(HIGH,1)<LOW,LOW,REF(HIGH,1),3,0),COLORGRAY;

X_4:=MA(CLOSE,5);

MA5角度:ATAN((X_4/REF(X_4,1)-1)*100)*180/3.1416,NODRAW;

DRAWKLINE(HIGH,OPEN,LOW,CLOSE);

X_5:=REF(CLOSE,1);

X_6:=IF(CLOSE>=1,10000,100000);

X_7:=1.1*X_5-49/X_6;

X_8:=1.05*X_5-49/X_6;

X_9:=0.9*X_5+51/X_6;

X_10:=0.95*X_5+51/X_6;

X_11:=NAMELIKE(1) OR NAMELIKE(2);

X_12:=IF(X_11,CLOSE>=X_8,CLOSE>=X_7);

X_13:=IF(X_11,CLOSE<=X_10,CLOSE<=X_9);

X_14:=IF(X_11,HIGH>=X_8,HIGH>=X_7);

X_15:=IF(X_11,LOW<=X_10,LOW<=X_9);

STICKLINE(X_14,HIGH,MAX(CLOSE,OPEN),0,0),COLORMAGENTA;

STICKLINE(X_15,LOW,MIN(CLOSE,OPEN),0,0),COLORLICYAN;

X_16:=CLOSE>OPEN AND (CLOSE>=X_8 OR CLOSE>1.05*OPEN-51/X_6) OR (CLOSE>1000 AND CLOSE>X_5*1.024);

STICKLINE(X_16,OPEN,CLOSE,1,0),COLOR0000BB;

X_17:=CLOSE<OPEN AND (CLOSE<=X_10 OR CLOSE<0.95*OPEN+49/X_6) OR (CLOSE>1000 AND CLOSE<X_5*0.976);

STICKLINE(X_17,OPEN,CLOSE,1,0),COLORLIGREEN;

STICKLINE(X_12,OPEN,CLOSE,1,0),COLORMAGENTA;

STICKLINE(X_13,OPEN,CLOSE,1,0),COLORLICYAN;

X_18:=CLOSE<OPEN AND CLOSE>REF(CLOSE,1);

STICKLINE(X_18,OPEN,CLOSE,0,0),COLORRED;

X_19:=CLOSE>OPEN AND CLOSE<REF(CLOSE,1);

STICKLINE(X_19,OPEN,CLOSE,0,0),COLORGREEN;

X_20:=PERIOD=5 AND NAMELIKE(3) AND (ABS(CLOSE-REF(CLOSE,1))/REF(CLOSE,1)>=0.025 OR ABS(CLOSE-OPEN)>=60);

STICKLINE(X_20 AND 三一二一刻度=1,二一,二一,2,0),COLORYELLOW;

STICKLINE(X_20 AND 三一二一刻度=1,三一,三一,2,0),COLORYELLOW;

STICKLINE(X_16 OR X_17 OR X_12 OR X_13 AND BETWEEN(CLOSE,1,500) AND 三一二一刻度=1,实体二一,实体二一,1,0),COLORYELLOW;

STICKLINE(X_16 OR X_17 OR X_12 OR X_13 AND BETWEEN(CLOSE,1,500) AND 三一二一刻度=1,实体三一,实体三一,1,0),COLORYELLOW;

X_21:=精准容差值/100;

X_22:=X_17;

X_23:=X_16;

X_24:=BARSLAST(X_22);

X_25:=BARSLAST(X_23);

STICKLINE(CLOSE<=REF(OPEN,X_24) AND 大阴顶线=1,REF(OPEN,X_24),REF(OPEN,X_24),1,1),COLORMAGENTA;

STICKLINE(CLOSE>=REF(OPEN,X_25) AND 大阳底线=1,REF(OPEN,X_25),REF(OPEN,X_25),1,1),COLORCYAN;

X_26:=IF(波峰虚实=0,HIGH,MAX(CLOSE,OPEN));

X_27:=ZIG(X_26,回踩峰谷百分比);

X_28:=X_27>REF(X_27,1) AND X_27>REFX(X_27,1);

X_29:=IF(波谷虚实=0,LOW,MIN(CLOSE,OPEN));

X_30:=ZIG(X_29,回踩峰谷百分比);

X_31:=X_30<REF(X_30,1) AND X_30<REFX(X_30,1);

X_32:=BARSLAST(X_28);

X_33:=BARSLAST(X_31);

STICKLINE(CLOSE<=REF(X_26,X_32) AND 峰顶线=1,REF(X_26,X_32),REF(X_26,X_32),1,1),COLORMAGENTA;

STICKLINE(CLOSE>=REF(X_29,X_33) AND 谷底线=1,REF(X_29,X_33),REF(X_29,X_33),1,1),COLORCYAN;

83711973.png

83711973.png

回复

使用道具 举报

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

本版积分规则