通达信超卖副图 深坑探底抢反弹 指标源码 附图
X_1:=SMA(MAX(CLOSE-REF(CLOSE,2),0),7,1)/SMA(ABS(CLOSE-REF(CLOSE,2)),7,1)*100;
X_2:=SMA(MAX(CLOSE-REF(CLOSE,1),0),7,1)/SMA(ABS(CLOSE-REF(CLOSE,1)),7,1)*100;
X_3:=IF(X_1<12,30,0);
X_4:=IF(X_2<12,30,0);
X_5:=(CLOSE-LLV(CLOSE,10))/(HHV(CLOSE,10)-LLV(CLOSE,10))*100;
X_6:=X_5<1;
X_7:=IF(X_6,(-20),0);
X_8:=SMA(ABS(LOW-REF(LOW,1)),3,1)/SMA(MAX(LOW-REF(LOW,1),0),3,1)*100;
X_9:=EMA(IF(CLOSE*1.3,X_8*10,X_8/10),3);
X_10:=LLV(LOW,30);
X_11:=HHV(X_9,30);
X_12:=EMA(IF(LOW<=X_10,(X_9+X_11*2)/2,0),3)/6180*2.5;
X_13:=IF(X_12>15,15,X_12);
X_14:=IF(X_13>=1.7,(-20),0);
X_15:=MA(((CLOSE-MA(CLOSE,6))/MA(CLOSE,6)*100+2*(CLOSE-MA(CLOSE,12))/MA(CLOSE,12)*100+3*(CLOSE-MA(CLOSE,24))/MA(CLOSE,24)*100)/6,3);
X_16:=IF(X_15<(-6),(-20),0);
X_17:=(CLOSE-SMA(CLOSE,13,1))/SMA(CLOSE,13,1)*(0-100);
X_18:=REF(X_17,1);
X_19:=X_18/X_17>1.23 AND X_18>1 AND CLOSE/REF(CLOSE,1)>1.03;
X_20:=STICKLINE(X_3 AND IF(X_14 AND X_7 AND X_16,(-16),10)<11,0,3,6,0);
X_21:=STICKLINE(IF(X_14 AND X_7 AND X_16,(-16),10)<11 AND X_3,0,5,2,0);
X_22:=STICKLINE(X_3 AND IF(X_14 AND X_7 AND X_16,(-16),10)<11 AND X_17>13,0,6,1,0);
超卖选股:X_20 OR X_21 OR X_22;
来函数检测结果如下:
该公式没有未来函数
解密、定制、编写股票指标请联系QQ或微信同号:88652583
相关股票指标公式
原理解析:
X_1赋值:SMA(收盘价-2日前的收盘价和0较大值,7,1)/SMA(收盘价-2日前的收盘价的绝对值,7,1)*100
X_2赋值:SMA(收盘价-1日前的收盘价和0较大值,7,1)/SMA(收盘价-1日前的收盘价的绝对值,7,1)*100
如果X_1<12返回30否则返回0
如果X_2<12返回30否则返回0
X_5赋值:(收盘价-10日内收盘价最低值)/(10日内收盘价最高值-10日内收盘价最低值)*100
X_6赋值:X_5<1
X_7赋值:IF(X_6,(-20),0)
X_8赋值:SMA(最低价-1日前的最低价的绝对值,3,1)/SMA(最低价-1日前的最低价和0较大值,3,1)*100
如果收盘价*1.3返回X_8*10否则返回X_8/10
X_10:=30日内最低价最低值
X_11:=30日内X_9最高值
X_12:=EMA(IF(最低价<=X_10,(X_9+X_11*2)/2,0),3)/6180*2.5
如果X_12>15返回15否则返回X_12
X_14:=IF(X_13>=1.7,(-20),0)
X_15:=MA(((收盘价-MA(收盘价,6))/MA(收盘价,6)*100+2*(收盘价-MA(收盘价,12))/MA(收盘价,12)*100+3*(收盘价-MA(收盘价,24))/MA(收盘价,24)*100)/6,3)
X_16:=IF(X_15<(-6),(-20),0)
收盘价的13日[1日权重]移动平均
X_18:=1日前的X_17
X_19:=X_18/X_17>1.23 AND X_18>1 AND 收盘价/1日前的收盘价>1.03
X_20:=STICKLINE(X_3 AND IF(X_14 AND X_7 AND X_16,(-16),10)<11,0,3,6,0)
X_21:=STICKLINE(IF(X_14 AND X_7 AND X_16,(-16),10)<11 AND X_3,0,5,2,0)
X_22:=STICKLINE(X_3 AND IF(X_14 AND X_7 AND X_16,(-16),10)<11 AND X_17>13,0,6,1,0)
输出超卖选股:X_20 OR X_21 OR X_22