通达信顾比控盘力度副图指标 波段启动操作利器 源码
HGW1:=REF((LOW+OPEN+CLOSE+HIGH)/4,1);
HGW2:=SMA(ABS(LOW-HGW1),13,1)/SMA(MAX(LOW-HGW1,0),10,1);
HGW3:=EMA(HGW2,10);
HGW4:=LLV(LOW,33);
HGW5:=EMA(IF(LOW<=HGW4,HGW3,0),3);
HGW21:=SMA(ABS(HIGH-HGW1),13,1)/SMA(MIN(HIGH-HGW1,0),10,1);
HGW31:=EMA(HGW21,10);
HGW41:=HHV(HIGH,33);
HGW51:=EMA(IF(HIGH>=HGW41,HGW31,0),3);
主力拉高:IF(HGW51<REF(HGW51,1),HGW51,0),COLORYELLOW,NODRAW;
STICKLINE(HGW51<REF(HGW51,1),0,HGW51,3,0),COLORYELLOW;
出货:IF(HGW51>REF(HGW51,1),HGW51,0),COLORCYAN,NODRAW;
STICKLINE(HGW51>REF(HGW51,1),0,HGW51,3,0 ),COLORCYAN;
STICKLINE(HGW51<REF(HGW51,1),0,-HGW51,3,0),COLORYELLOW;
STICKLINE(HGW51>REF(HGW51,1),0,-HGW51,3,0 ),COLORCYAN;
Z:0,COLORWHITE,DOTLINE;
DRAWICON(BARSLASTCOUNT(HGW51<REF(HGW51,1))=1,HGW51,9);
来函数检测结果如下:
该公式没有未来函数
解密、定制、编写股票指标请联系QQ或微信同号:88652583
相关股票指标公式
原理解析:
HGW1赋值:REF((最低价+开盘价+收盘价+最高价)/4,1)
HGW2赋值:SMA(最低价-HGW1的绝对值,13,1)/SMA(最低价-HGW1和0较大值,10,1)
HGW3赋值:HGW2的10日指数移动平均
HGW4赋值:33日内最低价最低值
如果最低价<=HGW4返回HGW3否则返回0
HGW21:=SMA(最高价-HGW1的绝对值,13,1)/SMA(最高价-HGW1和0的较小值,10,1)
HGW31:=HGW21的10日指数移动平均
HGW41:=33日内最高价最高值
如果最高价>=HGW41返回HGW31否则返回0
输出主力拉高:IF(HGW51<1日前的HGW51,HGW51,0),画黄色,NODRAW
STICKLINE(HGW51<1日前的HGW51,0,HGW51,3,0),画黄色
输出出货:IF(HGW51>1日前的HGW51,HGW51,0),画青色,NODRAW
STICKLINE(HGW51>1日前的HGW51,0,HGW51,3,0 ),画青色
STICKLINE(HGW51<1日前的HGW51,0,-HGW51,3,0),画黄色
STICKLINE(HGW51>1日前的HGW51,0,-HGW51,3,0 ),画青色
输出Z:0,画白色,DOTLINE
DRAWICON(BARSLASTCOUNT(HGW51<1日前的HGW51)=1,HGW51,9)