通达信【指尖波段】副图指标 信号一出有行情 用法详解 源码
HGW1:=(EMA(CLOSE,3)-EMA(CLOSE,7));
HGW2:=EMA(HGW1,3);
HGW3:=2*(HGW1-HGW2);
HGW4:=(CLOSE-LLV(LOW,5))/(HHV(HIGH,5)-LLV(LOW,5))-0.5;
HGW5:=EMA(HGW4,3);
HGW6:=EMA(HGW5,3);
HGW7:=3*HGW5-2*HGW6;
HGW8:=REF(COUNT(HGW1>0 AND HGW3<0 AND HGW3<REF(HGW3,1),4)=4,1) AND HGW3>REF(HGW3,1);
HGW16:=REF(COUNT(HGW7<REF(HGW7,1),5)>=3,1) AND REF(HGW7,1)<-0.4 AND HGW7>REF(HGW7,1);
HGW19:=REF(CROSS(0,HGW3),3) AND COUNT(HGW1>0 AND HGW3<REF(HGW3,1),4)=4;
DRAWBAND(HGW1,RGB(200,50,55),HGW2,RGB(50,100,10));
STICKLINE(HGW8,HGW3*1.2,0,2.8,0),COLORRED;
STICKLINE(HGW3>REF(HGW3,1) AND HGW3>0,0,HGW3,1.8,0),COLOR000055;
STICKLINE(HGW3>REF(HGW3,1) AND HGW3>0,0,HGW3,1.1,0),COLOR000099;
STICKLINE(HGW3>REF(HGW3,1) AND HGW3>0,0,HGW3,0.6,0),COLOR0000BB;
STICKLINE(HGW3<=REF(HGW3,1) AND HGW3>0,0,HGW3,1.8,0),COLOR888888;
STICKLINE(HGW3<=REF(HGW3,1) AND HGW3>0,0,HGW3,1.1,0),COLORBBBBBB;
STICKLINE(HGW3<=REF(HGW3,1) AND HGW3>0,0,HGW3,0.6,0),COLORDDDDDD;
STICKLINE(HGW3>REF(HGW3,1) AND HGW3<0,0,HGW3,1.8,0),COLOR3377AA;
STICKLINE(HGW3>REF(HGW3,1) AND HGW3<0,0,HGW3,1.1,0),COLOR3388BB;
STICKLINE(HGW3>REF(HGW3,1) AND HGW3<0,0,HGW3,0.6,0),COLOR4499CC;
STICKLINE(HGW3<=REF(HGW3,1) AND HGW3<0,0,HGW3,1.8,0),COLORFF3300;
STICKLINE(HGW3<=REF(HGW3,1) AND HGW3<0,0,HGW3,1.1,0),COLORFF5500;
STICKLINE(HGW3<=REF(HGW3,1) AND HGW3<0,0,HGW3,0.6,0),COLORFF7700;
STICKLINE(HGW7<-0.5,0,0.15,1.8,0),COLORFF00FF;
DRAWICON(FILTER(HGW16,3) AND HGW3>REF(HGW3,1) AND HGW3>0,HGW3*2.08,11);
DRAWICON(HGW19,0.25,9);
DRAWTEXT_FIX(C=C,0,0.02,0,'蓝柱离场,红柱全仓,棕柱低吸,白柱风险显现 '),COLORGREEN;
来函数检测结果如下:
该公式没有未来函数
解密、定制、编写股票指标请联系QQ或微信同号:88652583
相关股票指标公式
原理解析:
HGW1赋值:(收盘价的3日指数移动平均-收盘价的7日指数移动平均)
HGW2赋值:HGW1的3日指数移动平均
HGW3赋值:2*(HGW1-HGW2)
HGW4赋值:(收盘价-5日内最低价最低值)/(5日内最高价最高值-5日内最低价最低值)-0.5
HGW5赋值:HGW4的3日指数移动平均
HGW6赋值:HGW5的3日指数移动平均
HGW7赋值:3*HGW5-2*HGW6
HGW8赋值:REF(COUNT(HGW1>0 AND HGW3<0 AND HGW3[REF(HGW3,1)]
HGW16:=REF(COUNT(HGW7[=3,1) AND REF(HGW7,1)<-0.4 AND HGW7>REF(HGW7,1)]
HGW19:=3日前的0上穿HGW3 AND COUNT(HGW1>0 AND HGW3<1日前的HGW3,4)=4
DRAWBAND(HGW1,RGB(200,50,55),HGW2,RGB(50,100,10))
当满足条件HGW8时,在HGW3*1.2和0之间画柱状线
STICKLINE(HGW3>1日前的HGW3 AND HGW3>0,0,HGW3,1.8,0),COLOR000055
STICKLINE(HGW3>1日前的HGW3 AND HGW3>0,0,HGW3,1.1,0),COLOR000099
STICKLINE(HGW3>1日前的HGW3 AND HGW3>0,0,HGW3,0.6,0),COLOR0000BB
STICKLINE(HGW3<=1日前的HGW3 AND HGW3>0,0,HGW3,1.8,0),COLOR888888
STICKLINE(HGW3<=1日前的HGW3 AND HGW3>0,0,HGW3,1.1,0),COLORBBBBBB
STICKLINE(HGW3<=1日前的HGW3 AND HGW3>0,0,HGW3,0.6,0),COLORDDDDDD
STICKLINE(HGW3>1日前的HGW3 AND HGW3<0,0,HGW3,1.8,0),COLOR3377AA
STICKLINE(HGW3>1日前的HGW3 AND HGW3<0,0,HGW3,1.1,0),COLOR3388BB
STICKLINE(HGW3>1日前的HGW3 AND HGW3<0,0,HGW3,0.6,0),COLOR4499CC
STICKLINE(HGW3<=1日前的HGW3 AND HGW3<0,0,HGW3,1.8,0),COLORFF3300
STICKLINE(HGW3<=1日前的HGW3 AND HGW3<0,0,HGW3,1.1,0),COLORFF5500
STICKLINE(HGW3<=1日前的HGW3 AND HGW3<0,0,HGW3,0.6,0),COLORFF7700
当满足条件HGW7<-0.5时,在0和0.15之间画柱状线
DRAWICON(HGW16的3过滤 AND HGW3>1日前的HGW3 AND HGW3>0,HGW3*2.08,11)
当满足条件HGW19时,在0.25和9之间画图标
当满足条件C=C时,在横轴0纵轴0.02位置书写文字