通达信【定妖股】副图指标 精准捕捉市场热点 源码

N:=2;
ZT:=C>=ZTPRICE(REF(C,1),0.1);
ZBCLN:=(COUNT(ZT,N)=1 AND ZT);
ZBCL1:=V/700000000;
ZBCL2:=1.1*(MAX(H,REF(C,1))/MIN(L,REF(C,1))-1);
ZBCL3:=2.5*MAX(ZBCL1,ZBCL2);
ZBCL4:=DMA(C,ZBCL3);
ZBCL5:=SMA(20*(ZBCL4/REF(ZBCL4,1)-1),2,1);
ZBCL6:=EMA(ZBCL5,2);
ZBCL7:=0.24;
ZBCL8:=C>=REF(C,1);
XX:= IF(ZBCL5>ZBCL7 AND ZBCL6>=0.005 AND ZBCL8,1,0);
XXX:=CROSS(XX,0.5) AND COUNT(XX>0.5,10)=1;
QB:="KDJ.J"-REF("KDJ.J",1)>30 AND C/REF(C,1)>1.043 AND "MACD.MACD">0 AND "MACD.DEA">0;
LS:=C/REF(C,1)>1.048 AND C=H AND BETWEEN(FORCAST(V,4),0.2*FORCAST(V,12),2.1*FORCAST(V,12));
LQ:=FILTER(LS,28)*100 AND L>REF(C,1)*0.93;
XG:=QB OR LQ AND XXX;
M11:=9;
M12:=10;
B1:=C/REF(C,1)>1+0.01*M11;
B2:=EXIST(C/REF(C,1)>1+0.01*M11,M12);
B3:=C/REF(C,1)>1+0.01*M11;
MM:=IF(B1+B2+B3=3,1,0);
CC:=(H-C)/(C-O)<0.33;
DD:=(C/REF(C,1)-1)>=0.0502 AND C>REF(C,1) AND (O-L)/(C-O)>=1.48 AND L<REF(L,1) AND L<REF(L,2);
EE:=(C/REF(C,1)-1)>=0.08;
AA:=V>REF(V,1)*1.9 AND C>REF(C,1) AND C/REF(C,1)-1>=0.049 AND CC;
BB:=(C/REF(C,1)-1)>=0.0502 AND C>REF(C,1) AND V>REF(V,1) AND V>REF(V,1)*2.5 AND CC;
CCB:=EMA(2.055*EMA(EMA(H,34),34)-EMA(EMA(L,34),34),5),COLORCYAN,LINETHICK2;
YDXG:=IF(FILTER(AA OR BB OR DD OR EE AND CCB>C,34),1,0) AND MM;
LYQD:=XG OR YDXG;
P:=CROSS(LYQD,1),LYQD-LYQD*0.14 AND ZBCLN;
QUI:=H=C;
A:=(C-REF(C,1))/REF(C,1)*100>=0.93 AND QUI;
T:=BARSLAST(P),NODRAW;
XG1:T AND A AND T<=1,NODRAW;
STICKLINE(XG1,0,3,3,0),COLORMAGENTA;

DRAWICON(XG1,2.6,9);
DRAWTEXT(XG1,2,'★★定妖股★★'),COLORWHITE;







来函数检测结果如下:
该公式没有未来函数


解密、定制、编写股票指标请联系QQ或微信同号:88652583
相关股票指标公式

N赋值:2
ZT赋值:C>=ZTPRICE(1日前的C,0.1)
ZBCLN赋值:(统计N日满足ZT的天数=1 AND ZT)
ZBCL1赋值:V/700000000
ZBCL2赋值:1.1*(H和1日前的C较大值/L和1日前的C的较小值-1)
ZBCL3赋值:2.5*ZBCL1和ZBCL2较大值
ZBCL4赋值:DC的ZBCL3日简单移动平均
ZBCL5赋值:SMA(20*(ZBCL4/1日前的ZBCL4-1),2,1)
ZBCL6赋值:ZBCL5的2日指数移动平均
ZBCL7赋值:0.24
ZBCL8赋值:C>=1日前的C
如果ZBCL5>ZBCL7 AND ZBCL6>=0.005 AND ZBCL8返回1否则返回0
XXX赋值:XX上穿0.5 AND 统计10日满足XX>0.5的天数=1
QB赋值:"KDJ.J"-1日前的"KDJ.J">30 AND C/1日前的C>1.043 AND "MACD.MACD">0 AND "MACD.DEA">0
LS赋值:C/1日前的C>1.048 AND C=H AND BETWEEN(V的4日线性回归预测值,0.2*V的12日线性回归预测值,2.1*V的12日线性回归预测值)
LQ赋值:LS的28过滤*100 AND L>1日前的C*0.93
XG赋值:QB OR LQ AND XXX
M11赋值:9
M12赋值:10
B1赋值:C/1日前的C>1+0.01*M11
B2赋值:EXIST(C/1日前的C>1+0.01*M11,M12)
B3赋值:C/1日前的C>1+0.01*M11
如果B1+B2+B3=3返回1否则返回0
CC赋值:(H-C)/(C-O)<0.33
DD赋值:(C/1日前的C-1)>=0.0502 AND C>1日前的C AND (O-L)/(C-O)>=1.48 AND L<1日前的L AND L<2日前的L
EE赋值:(C/1日前的C-1)>=0.08
AA赋值:V>1日前的V*1.9 AND C>1日前的C AND C/1日前的C-1>=0.049 AND CC
BB赋值:(C/1日前的C-1)>=0.0502 AND C>1日前的C AND V>1日前的V AND V>1日前的V*2.5 AND CC
CCB:=2.055*H的34日指数移动平均,34)-L的34日指数移动平均,34),5),COLORCYAN,LINETHICK2
YDXG赋值:IF(AA OR BB OR DD OR EE AND CCB>C的34过滤,1,0) AND MM
LYQD赋值:XG OR YDXG
P赋值:LYQD上穿1,LYQD-LYQD*0.14 AND ZBCLN
QUI赋值:H=C
A赋值:(C-1日前的C)/1日前的C*100>=0.93 AND QUI
T赋值:上次P距今天数,NODRAW
XG1:T AND A AND T<=1,NODRAW
当满足条件XG1时,在0和3之间画柱状线
当满足条件XG1时,在2.6和9之间画图标
当满足条件XG1时,在2和'★★定妖股★★'位置书写文字

联系我们  |  指标公式网  |  指标网   |  指标公式  |   加入收藏   |  设为主页

@2005-2023 浙ICP备2024071487号-2 指标公式网别名指标网均来源互联网收集整理,如不慎侵犯了你的权益,请联系我们告知,我们将做删除处理
免责声明:指标公式网所有指标公式及文章由网络收集,不保障实时性和真实性, 仅供学习研究并不构成投资建议,请勿以此为依据进行股票交易,由此引起的投资亏损与本站无关。
QQ:88652583 微信 88652583
sitemap站点地图