选龙头过滤假信号 底部放量追涨类指标 副图 源码 附图
X_1:=REF(LOW,1);
X_2:=SMA(ABS(LOW-X_1),3,1)/SMA(MAX(LOW-X_1,0),3,1)*100;
X_3:=EMA(X_2*10,3);
X_4:=LLV(LOW,13);
X_5:=HHV(X_3,13);
X_6:=EMA(IF(LOW<=X_4,(X_3+X_5*2)/2,0),3)/618;
X_7:=IF(X_6>500,500,X_6);
STICKLINE(X_7>1 AND KDJ.J>REF(KDJ.J,1) AND REF(KDJ.J,1)<REF(KDJ.J,2),0,X_7,3,0),COLORRED;
STICKLINE(X_7>0.1 AND X_7<1 AND KDJ.J>REF(KDJ.J,1) AND REF(KDJ.J,1)<REF(KDJ.J,2),0,X_7,3,0),COLORYELLOW;
X_8:=REF(LOW,1);
X_9:=SMA(ABS(LOW-X_8),13,1)/SMA(MAX(LOW-X_8,0),13,1)*4;
X_10:=EMA(X_9,13);
X_11:=LLV(LOW,34);
X_12:=EMA(IF(LOW<=X_11,X_10,0),3);
X_13:=100-3*SMA((CLOSE-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1)+2*SMA(SMA((CLOSE-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1),15,1);
X_14:=100-3*SMA((OPEN-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1)+2*SMA(SMA((OPEN-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1),15,1);
X_15:=X_13<REF(X_14,1) AND VOL>REF(VOL,1) AND CLOSE>REF(CLOSE,1);
STICKLINE(X_15 AND COUNT(X_15,18)=1,0,18,8,0),COLORAA00BB;
STICKLINE(X_15 AND COUNT(X_15,18)=1,0,18,8,0),COLORBB11BB;
STICKLINE(X_15 AND COUNT(X_15,18)=1,0,18,5,0),COLORCC22BB;
STICKLINE(X_15 AND COUNT(X_15,18)=1,0,18,3,0),COLORDD33BB;
STICKLINE(X_15 AND COUNT(X_15,18)=1,0,18,1,0),COLOREE44BB;
DRAWTEXT(X_15 AND COUNT(X_15,18)=1,16,' 龙'),COLOR0099FF;
DRAWTEXT(X_15 AND COUNT(X_15,18)=1,12,' 头'),COLOR0033FF;
来函数检测结果如下:
该公式没有未来函数
解密、编写股票、期货策略请联系QQ或微信同号:88652583
相关股票指标公式
原理解析:
X_1赋值:1日前的最低价
X_2赋值:SMA(最低价-X_1的绝对值,3,1)/SMA(最低价-X_1和0较大值,3,1)*100
X_3赋值:X_2*10的3日指数移动平均
X_4赋值:13日内最低价最低值
X_5赋值:13日内X_3最高值
X_6赋值:EMA(IF(最低价<=X_4,(X_3+X_5*2)/2,0),3)/618
如果X_6>500返回500否则返回X_6
STICKLINE(X_7>1 AND KDJ.J>1日前的KDJ.J AND 1日前的KDJ.J<2日前的KDJ.J,0,X_7,3,0),画红色
STICKLINE(X_7>0.1 AND X_7<1 AND KDJ.J>1日前的KDJ.J AND 1日前的KDJ.J<2日前的KDJ.J,0,X_7,3,0),画黄色
X_8赋值:1日前的最低价
X_9赋值:SMA(最低价-X_8的绝对值,13,1)/SMA(最低价-X_8和0较大值,13,1)*4
X_10:=X_9的13日指数移动平均
X_11:=34日内最低价最低值
如果最低价<=X_11返回X_10否则返回0
X_13:=100-3*SMA((收盘价-75日内最低价最低值)/(75日内最高价最高值-75日内最低价最低值)*100,20,1)+2*SMA(SMA((收盘价-75日内最低价最低值)/(75日内最高价最高值-75日内最低价最低值)*100,20,1),15,1)
X_14:=100-3*SMA((开盘价-75日内最低价最低值)/(75日内最高价最高值-75日内最低价最低值)*100,20,1)+2*SMA(SMA((开盘价-75日内最低价最低值)/(75日内最高价最高值-75日内最低价最低值)*100,20,1),15,1)
X_15:=X_13<1日前的X_14 AND 成交量>1日前的成交量 AND 收盘价>1日前的收盘价
STICKLINE(X_15 AND 统计18日满足X_15的天数=1,0,18,8,0),COLORAA00BB
STICKLINE(X_15 AND 统计18日满足X_15的天数=1,0,18,8,0),COLORBB11BB
STICKLINE(X_15 AND 统计18日满足X_15的天数=1,0,18,5,0),COLORCC22BB
STICKLINE(X_15 AND 统计18日满足X_15的天数=1,0,18,3,0),COLORDD33BB
STICKLINE(X_15 AND 统计18日满足X_15的天数=1,0,18,1,0),COLOREE44BB
DRAWTEXT(X_15 AND 统计18日满足X_15的天数=1,16,' 龙'),COLOR0099FF
DRAWTEXT(X_15 AND 统计18日满足X_15的天数=1,12,' 头'),COLOR0033FF