「翔博精选指标」CDHD源码混搭,抄底逃顶极品,和谐源码分享(通达
2022-05-06原创 编 辑:翔博软件
CDHD源码混搭.
{公式名称: CDHD源码混搭
公式描述:
参数数量: 2
参数1: X, 最小: 1, 最大: 100, 缺省: 20
参数2: Y, 最小: 0, 最大: 100, 缺省: 15
公式类型: 技术指标公式-其他类型
画线方法: 副图
公式版本: 0
显示小数: 缺省位数
坐标线位置: 自动
额外Y轴分界: 无
参数精灵:
请设置计算参数:
X: PARAM#0 (1.00--100.00)
Y: PARAM#1 (0.00--100.00)
用法注释:无
公式源码:}
VAR1:=1180814;
VAR2:=IF(1<=VAR1,1,0);
SS:130;
XX:(-30);
VAR3:=6;
VAR4:=IF(1<=VAR1,12,DRAWNULL);
VAR5:=REF(CLOSE,1);
VAR6:=SMA(MAX(CLOSE-VAR5,0),VAR3,1)/SMA(ABS(CLOSE-VAR5),VAR3,1)*100;
VAR7:=SMA(MAX(CLOSE-VAR5,0),VAR4,1)/SMA(ABS(CLOSE-VAR5),VAR4,1)*100;
VAR8:=(CLOSE-LLV(LOW,80))/(HHV(HIGH,80)-LLV(LOW,80))*200;
VAR9:=SMA(VAR8,3,1);
VAR10:=SMA(VAR9,3,1);
VAR11:=3*VAR9-2*VAR10;
VAR12:=LLV(LOW,5);
VAR13:=HHV(HIGH,5);
VAR14:=EMA((CLOSE-VAR12)/(VAR13-VAR12)*100,4)*2;
VAR15:=EMA(0.667*REF(VAR14,1)+0.333*VAR14,2);
VAR16:=3*VAR14-2*VAR15;
VAR17:=POW(MA(CLOSE,5),2)+MA(CLOSE,5);
VAR18:=POW(MA(LOW,5),2)+MA(LOW,5);
VAR19:=POW(MA(HIGH,5),2)+MA(HIGH,5);
VAR20:=(VAR17-LLV(VAR18,64))/(HHV(VAR19,64)-LLV(VAR18,64))*150+65-10;
VAR21:=SMA(VAR20,3,1)*1.5-100;
VAR22:=SMA(VAR21,3,1);
VAR23:=3*VAR21-2*VAR22;
VAR24:=(HIGH+LOW+CLOSE*2)/4;
VAR25:=EMA(VAR24,13);
VAR26:=STD(VAR24,13);
VAR27:=(VAR24-VAR25)*100/VAR26;
VAR28:=EMA(VAR27,5);
VAR29:=EMA(VAR28,13)+200-100;
VAR30:=EMA(VAR29,10);
VAR31:=3*VAR29-2*VAR30;
VAR32:=VAR9+VAR14+VAR21+VAR29;
VAR33:=VAR10+VAR15+VAR22+VAR30;
VAR34:=VAR11+VAR16+VAR23+VAR31;
VAR35:=(HIGH+LOW+CLOSE)/3;
VAR36:=(VAR35-MA(VAR35,34))/(0.015*AVEDEV(VAR35,34));
VAR37:=(HIGH+LOW+CLOSE+VAR35)/4;
VAR38:=EMA(VAR37,24);
VAR39:=STD(VAR37,24);
VAR40:=(VAR37-VAR38)/VAR39*100;
VAR41:=(VAR35-MA(VAR35,24))/(0.015*AVEDEV(VAR35,24));
VAR42:=EMA(VAR40,5);
VAR43:=((VAR42+VAR41+VAR36)/3+165)/4;
VAR44:=(VAR32+VAR33+VAR34*30)/32/5-15;
VAR45:=(VAR43+VAR44)/2/1.1;
VAR46:=IF(1<=VAR1,EMA(VAR45,3),DRAWNULL);
VAR47:=IF(1<=VAR1,EMA(VAR46,5),DRAWNULL);
DRAWICON(CROSS(VAR46,VAR47) AND VAR47<20,50,1);
DRAWICON(CROSS(VAR47+2,VAR46) AND VAR47>85,50,15);
VAR48:=(2*CLOSE+HIGH+LOW)/4;
VAR49:=EMA(EMA(EMA(VAR48,4),4),4);
VAR50:=(VAR49-REF(VAR49,1))/REF(VAR49,1)*100*VAR2;
VAR51:=MA(VAR50,3);
VAR52:=MA(VAR50,1);
DRAWICON(CROSS(VAR50*1.015,VAR51),130,11);
STICKLINE(CROSS(VAR46,VAR47) AND VAR47<20,(-30),40,1,0),COLORRED;
STICKLINE(CROSS(VAR47+2,VAR46) AND VAR47>85,(-30),40,1,0),COLORLICYAN;
DRAWICON(CROSS(VAR51,VAR50*0.928),130,2);