通达信【否极泰来】副图 下次持续下跌要爆赚!源码附图
ST:=IF(NAMELIKE('ST') OR NAMELIKE('*ST'),0,1);
ZCIN:=IF(CODELIKE('8') OR CODELIKE('688') OR CODELIKE('4') OR CODELIKE('68'),0,1);
停牌:=(DYNAINFO(4)=0);
去除:=ST AND ZCIN AND NOT(停牌);
VAR1:=REF(CLOSE,1);
VAR2:=SMA(MAX(CLOSE-VAR1,0),7,1)/SMA(ABS(CLOSE-VAR1),7,1)*100;
VAR3:=SMA(MAX(CLOSE-VAR1,0),13,1)/SMA(ABS(CLOSE-VAR1),13,1)*100;
VAR4:=BARSLAST(VAR3<23)<=3 AND CROSS(VAR2,VAR3);
VAR5:=(CLOSE-MA(CLOSE,23))/MA(CLOSE,20)*100<(-12.5);
VAR6:=HHV(HIGH,10);
VAR7:=LLV(LOW,5);
VAR8:=EMA((CLOSE-VAR7)/(VAR6-VAR7)*100,4);
VAR9:=EMA(0.667*REF(VAR8,1)+0.333*VAR8,2);
VAR10:=IF(L=LLV(L,48),L,DRAWNULL);
VAR11:=CONST(BARSLAST(VAR10=L))+1;
VAR12:=CONST(IF(VAR11=1,L,REF(L,VAR11-1)));
(VAR5 AND VAR8<=25)*0.5,COLORMAGENTA,LINETHICK3;
否极泰来:去除>0 AND VAR8<=25 AND VAR5 AND 0-(-1)*VAR4 AND L>=VAR12,COLORYELLOW,LINETHICK3;
未来函数检测结果如下:
该公式包含未来函数:DYNAINFO
解密、编写股票、期货策略请联系QQ或微信同号:88652583
相关股票指标公式
原理解析:
ST赋值:IF(NAMELIKE('ST') OR NAMELIKE('*ST'),0,1)
ZCIN赋值:IF(CODELIKE('8') OR CODELIKE('688') OR CODELIKE('4') OR CODELIKE('68'),0,1)
停牌赋值:(开盘价=0)
去除赋值:ST AND ZCIN AND NOT(停牌)
VAR1赋值:1日前的收盘价
VAR2赋值:SMA(收盘价-VAR1和0较大值,7,1)/SMA(收盘价-VAR1的绝对值,7,1)*100
VAR3赋值:SMA(收盘价-VAR1和0较大值,13,1)/SMA(收盘价-VAR1的绝对值,13,1)*100
VAR4赋值:上次VAR3<23距今天数<=3 AND VAR2上穿VAR3
VAR5赋值:(收盘价-收盘价的23日简单移动平均)/收盘价的20日简单移动平均*100<(-12.5)
VAR6赋值:10日内最高价最高值
VAR7赋值:5日内最低价最低值
VAR8赋值:EMA((收盘价-VAR7)/(VAR6-VAR7)*100,4)
VAR9赋值:E0.667*1日前的VAR8+0.333*VAR8的2日简单移动平均
VAR10:=IF(L=48日内L最低值,L,DRAWNULL)
VAR11:=CONST(上次VAR10=L距今天数)+1
VAR12:=CONST(IF(VAR11=1,L,VAR11-1日前的L))
(VAR5 AND VAR8<=25)*0.5,画洋红色, 线宽为3
输出否极泰来:去除>0 AND VAR8<=25 AND VAR5 AND 0-(-1)*VAR4 AND L>=VAR12,画黄色, 线宽为3