通达信【寻底共振】副图指标 低买高卖如神助 源码附图
HGW1:=(HIGH+OPEN+LOW+3*CLOSE)/6;
HGW2:=SUM(IF(HGW1>REF(HGW1,1),HGW1*VOL,0),13);
HGW3:=SUM(IF(HGW1<REF(HGW1,1),HGW1*VOL,0),13);
A1:30,COLORWHITE,LINETHICK1;
A2:50,COLORGREEN,LINETHICK1;
A3:60,COLORFF0080,LINETHICK1;
A4:70,POINTDOT,LINETHICK1;
A5:80,COLORRED,LINETHICK1;
X:EMA(100-(100/(1+HGW2/HGW3)),5),COLORWHITE,LINETHICK1;
VAR18:=30>X;
VAR19:=X>80;
STICKLINE(VAR18,A1,A1*0.9,1,0),COLORRED;
STICKLINE(VAR19,A5,A5*1.03,0.1,0),COLORGREEN;
来函数检测结果如下:
该公式没有未来函数
解密、编写股票、期货策略请联系QQ或微信同号:88652583
相关股票指标公式
原理解析:
HGW1赋值:(最高价+开盘价+最低价+3*收盘价)/6
HGW2赋值:SUM(IF(HGW1>1日前的HGW1,HGW1*成交量,0),13)
HGW3赋值:SUM(IF(HGW1<1日前的HGW1,HGW1*成交量,0),13)
输出A1:30,画白色,LINETHICK1
输出A2:50,画绿色,LINETHICK1
输出A3:60,COLORFF0080,LINETHICK1
输出A4:70,POINTDOT,LINETHICK1
输出A5:80,画红色,LINETHICK1
输出X:EMA(100-(100/(1+HGW2/HGW3)),5),画白色,LINETHICK1
VAR18赋值:30>X
VAR19赋值:X>80
当满足条件VAR18时,在A1和A1*0.9之间画柱状线
当满足条件VAR19时,在A5和A5*1.03之间画柱状线