通达信【海底寻宝】副图指标 主力绝无藏身处 用法详解 源码
HGW1:=REF(LOW,1);
HGW2:=(SMA(ABS(LOW-HGW1),13,1))/(SMA(MAX(LOW-HGW1,0),13,1))*4;
HGW3:=EMA(HGW2,13);
HGW4:=LLV(LOW,34);
HGW5:=EMA(IF(LOW<=HGW4,HGW3,0),3);
HGW6:=100-3*SMA((C-LLV(L,75))/(HHV(H,75)-LLV(L,75))*100,20,1)+2*SMA(SMA((C-LLV(L,75))/(HHV(H,75)-LLV(L,75))*100,20,1),15,1);
HGW18:=100-3*SMA((O-LLV(L,75))/(HHV(H,75)-LLV(L,75))*100,20,1)+2*SMA(SMA((O-LLV(L,75))/(HHV(H,75)-LLV(L,75))*100,20,1),15,1);
HGW19:=HGW6<REF(HGW18,1) AND VOL>REF(VOL,1) AND CLOSE>REF(CLOSE,1);
STICKLINE(HGW19 AND COUNT(HGW19,18)=1,0,18,8,0),COLORAA00BB;
STICKLINE(HGW19 AND COUNT(HGW19,18)=1,0,18,8,0),COLORBB11BB;
STICKLINE(HGW19 AND COUNT(HGW19,18)=1,0,18,5,0),COLORCC22BB;
STICKLINE(HGW19 AND COUNT(HGW19,18)=1,0,18,3,0),COLORDD33BB;
STICKLINE(HGW19 AND COUNT(HGW19,18)=1,0,18,1,0),COLOREE44BB;
DRAWTEXT_FIX(C>O,0,0.2,0,'HGW18:HGW19'),COLORMAGENTA;
DRAWTEXT(HGW19 AND COUNT(HGW19,18)=1,16,'●↙大资金进场'),COLOR0099FF;
DRAWTEXT(HGW19 AND COUNT(HGW19,18)=1,12,'●↙海底寻宝'),COLOR0033FF;
DRAWTEXT(HGW19 AND COUNT(HGW19,18)=1,8,'●↙多数会涨'),COLORFFFFAA;
来函数检测结果如下:
该公式没有未来函数
解密、定制、编写股票指标请联系QQ或微信同号:88652583
相关股票指标公式
原理解析:
HGW1赋值:1日前的最低价
HGW2赋值:(SMA(最低价-HGW1的绝对值,13,1))/(SMA(最低价-HGW1和0较大值,13,1))*4
HGW3赋值:HGW2的13日指数移动平均
HGW4赋值:34日内最低价最低值
如果最低价<=HGW4返回HGW3否则返回0
HGW6赋值:100-3*SMA((C-75日内L最低值)/(75日内H最高值-75日内L最低值)*100,20,1)+2*SMA(SMA((C-75日内L最低值)/(75日内H最高值-75日内L最低值)*100,20,1),15,1)
HGW18:=100-3*SMA((O-75日内L最低值)/(75日内H最高值-75日内L最低值)*100,20,1)+2*SMA(SMA((O-75日内L最低值)/(75日内H最高值-75日内L最低值)*100,20,1),15,1)
HGW19:=HGW6<1日前的HGW18 AND 成交量>1日前的成交量 AND 收盘价>1日前的收盘价
STICKLINE(HGW19 AND 统计18日满足HGW19的天数=1,0,18,8,0),COLORAA00BB
STICKLINE(HGW19 AND 统计18日满足HGW19的天数=1,0,18,8,0),COLORBB11BB
STICKLINE(HGW19 AND 统计18日满足HGW19的天数=1,0,18,5,0),COLORCC22BB
STICKLINE(HGW19 AND 统计18日满足HGW19的天数=1,0,18,3,0),COLORDD33BB
STICKLINE(HGW19 AND 统计18日满足HGW19的天数=1,0,18,1,0),COLOREE44BB
当满足条件C>O时,在横轴0纵轴0.2位置书写文字
DRAWTEXT(HGW19 AND 统计18日满足HGW19的天数=1,16,'●↙大资金进场'),COLOR0099FF
DRAWTEXT(HGW19 AND 统计18日满足HGW19的天数=1,12,'●↙海底寻宝'),COLOR0033FF
DRAWTEXT(HGW19 AND 统计18日满足HGW19的天数=1,8,'●↙多数会涨'),COLORFFFFAA