通达信首板成功率90%的放量吸筹指标 共振是确定性的买点 副图 源码
DRAWTEXT_FIX(ISLASTBAR,0.05,0,0,GNBLOCK),COLORRED;
DRAWTEXT_FIX(ISLASTBAR,0.05,0.05,0,FGBLOCK),COLORMAGENTA;
ZT:=VOL/((H-L)*2-ABS(C-O));
CTA1:=IF(C>O,ZT*(H-L),IF(C< O,ZT*((H-O)+(C-L)),VOL/2)),NODRAW;
CTA2:=IF(C>O,0-ZT*((H-C)+(O-L)),IF(C< O,0-ZT*(H-L),0-VOL/2)),NODRAW;
净流入:=(CTA1+CTA2)/99,NODRAW;
CTA3:=(C/REF(C,1)-1)*100;
DRAWICON(净流入>=200 AND CTA3>=3,L,34);
DRAWTEXT(净流入>=200 AND CTA3>=3,L*0.935,VARCAT(VARCAT('净买:',VAR2STR(净流入,0)),'万')),COLORRED;
DRAWTEXT(净流入< -200 AND CTA3<=-2,H*1.01,VARCAT(VARCAT('流出:',VAR2STR(净流入,0)),'万')),COLORGREEN;
WX2:=AMOUNT/10000;
占比:=净流入/WX2*100,NODRAW;
DRAWTEXT(净流入>=200 AND CTA3>=3 AND 占比>=15 ,L*0.965,VARCAT(VARCAT('占比:',VAR2STR(占比,0)),'%')),COLORYELLOW;
A:=(C/REF(C,1)-1)*100>9.82 AND H=C AND H<>L,NODRAW;
B:=BARSLAST(A),NODRAW;
W:=REF(BARSLAST(A),1),NODRAW;
WX:=REF(C,B),NODRAW;
CTD:=CROSS(C,WX) AND C>O AND C>REF(C,1) AND W>=3 AND W<=10 NODRAW;
CTDA:=FILTER(CTD,30);
CTB1:=WX-0.01,NODRAW;
CTDB:=CROSS(C,CTB1) AND C>O AND C>REF(C,1) AND W>=3 AND W<=10 AND H=C;
CTB2:=FILTER(CTDB,30),COLORMAGENTA;
WUP:=REF(O,B);
WUA:=WUP+(WX-WUP)*0.7,NODRAW;
CTDC:=CROSS(C,WUA) AND C>O AND C>REF(C,1) AND W>=3 AND W<=10 ;
CTBP:=FILTER(CTDC,30),COLORMAGENTA;
跟庄买入:CTDA OR CTB2 OR CTBP,NODRAW,COLORLIRED;
WX1:=COUNT(A,10)>=2;
涨停精选:FILTER(CTDC AND WX1,30),NODRAW,COLORLIRED;
STICKLINE(CTDA OR CTB2 OR CTBP, O,C, 2,0),COLORYELLOW;
STICKLINE(CTDA OR CTB2 OR CTBP, C,H, 0,0),COLORYELLOW;
STICKLINE(CTDA OR CTB2 OR CTBP, O,L, 0,0),COLORYELLOW;
DRAWTEXT(CTDA OR CTB2 OR CTBP ,L*0.97,' ★跟庄买入'),COLORFFFFFF;
DRAWICON(CTDA OR CTB2 OR CTBP ,L,25);
趋势线1:=MA(C,5),COLORBLUE;
WX3:=(H-趋势线1)/趋势线1*100;
抛点:=(H-趋势线1)/趋势线1*100>=20 AND H>C;
DRAWTEXT(抛点,H*1,' ★卖'),COLORGREEN;
减点:=WX3>=15 AND WX3< 20 AND H>C;
A1:=FILTER(减点,12);
DRAWTEXT(A1,H*1.02,' ★减'),COLORWHITE;
趋势线1A:=MA(C,3),COLORBLUE;
趋势线2:EMA(趋势线1A,2),COLORBLUE,DOTLINE;
趋势线3:EMA(趋势线2,2),COLORMAGENTA,DOTLINE;
趋势线4:EMA(趋势线3,2),COLORLIGREEN,DOTLINE;
持股线:IF(趋势线1A>趋势线2,趋势线2,DRAWNULL),COLORYELLOW,LINETHICK3;
CTE5:=DYNAINFO(88)/10000,NODRAW;
CTE6:=DYNAINFO(7),NODRAW;
STICKLINE(C/REF(C,1)>=1.097 AND H=C AND CTE6=C,C,O,2,0),COLORLIMAGENTA;
WX4:=(C/REF(C,1)-1)*100>9.8 AND H=C AND H<>L,COLORMAGENTA;
DRAWTEXT(CTE6=C AND WX4 ,L*1.035,VARCAT(VAR2STR(CTE5,0),'')),COLORWHITE;
CTE8:=DYNAINFO(88)/DYNAINFO(10)*100,NODRAW;
DRAWTEXT(CTE6=C AND WX4 ,L*1.01,VARCAT(VAR2STR(CTE8+5,0),'')),COLORGREEN;
STICKLINE(C/REF(C,1)>=1.097 AND H>L AND H=C,C,O,2,0),COLORLIRED;
STICKLINE(REF(C,1)/C>=1.097 AND H>L AND H=C,C,O,2,0),COLORBLUE;
STICKLINE(H/REF(C,1)>=1.097 AND H>C AND H=C,H,C,0,0),COLORLIRED;
STICKLINE(REF(C,1)/L>=1.097 AND H>L AND H=C,C,L,0,0),COLORBLUE;
未来函数检测结果如下:
该公式包含未来函数:DYNAINFO
解密、定制、编写股票指标请联系QQ或微信同号:88652583
相关股票指标公式
原理解析:
当满足条件ISLASTBAR时,在横轴0.05纵轴0位置书写文字
当满足条件ISLASTBAR时,在横轴0.05纵轴0.05位置书写文字
ZT赋值:成交量/((H-L)*2-C-O的绝对值)
CTA1赋值:IF(C>O,ZT*(H-L),IF(C< O,ZT*((H-O)+(C-L)),成交量/2)),NODRAW
CTA2赋值:IF(C>O,0-ZT*((H-C)+(O-L)),IF(C< O,0-ZT*(H-L),0-成交量/2)),NODRAW
净流入赋值:(CTA1+CTA2)/99,NODRAW
CTA3赋值:(C/1日前的C-1)*100
当满足条件净流入>=200 AND CTA3>=3时,在L和34之间画图标
DRAWTEXT(净流入>=200 AND CTA3>=3,L*0.935,VARCAT(VARCAT('净买:',VAR2STR(净流入,0)),'万')),画红色
DRAWTEXT(净流入< -200 AND CTA3<=-2,H*1.01,VARCAT(VARCAT('流出:',VAR2STR(净流入,0)),'万')),画绿色
WX2赋值:AMOUNT/10000
占比赋值:净流入/WX2*100,NODRAW
DRAWTEXT(净流入>=200 AND CTA3>=3 AND 占比>=15 ,L*0.965,VARCAT(VARCAT('输出占比:',VAR2STR(占比,0)),'%')),COLORYELLOW
A赋值:(C/1日前的C-1)*100>9.82 AND H=C AND H<>L,NODRAW
B赋值:上次A距今天数,NODRAW
W赋值:REF(上次A距今天数,1),NODRAW
WX:=B日前的C,NODRAW
CTD赋值:C上穿WX AND C>O AND C>1日前的C AND W>=3 AND W<=10 NODRAW
CTDA赋值:CTD的30过滤
CTB1:=WX-0.01,NODRAW
CTDB赋值:C上穿CTB1 AND C>O AND C>1日前的C AND W>=3 AND W<=10 AND H=C
CTB2:=CTDB的30过滤,COLORMAGENTA
WUP:=B日前的O
WUA赋值:WUP+(WX-WUP)*0.7,NODRAW
CTDC:=C上穿WUA AND C>O AND C>1日前的C AND W>=3 AND W<=10
CTBP:=CTDC的30过滤,COLORMAGENTA
输出跟庄买入:CTDA OR CTB2 OR CTBP,NODRAW,COLORLIRED
WX1:=统计10日满足A的天数>=2
输出涨停精选:CTDC AND WX1的30过滤,NODRAW,COLORLIRED
当满足条件CTDA OR CTB2 OR CTBP时,在 O和C之间画柱状线
当满足条件CTDA OR CTB2 OR CTBP时,在 C和H之间画柱状线
当满足条件CTDA OR CTB2 OR CTBP时,在 O和L之间画柱状线
当满足条件CTDA OR CTB2 OR CTBP 时,在L*0.97和' ★跟庄买入'位置书写文字
当满足条件CTDA OR CTB2 OR CTBP 时,在L和25之间画图标
趋势线1赋值:C的5日简单移动平均,COLORBLUE
WX3:=(H-趋势线1)/趋势线1*100
抛点赋值:(H-趋势线1)/趋势线1*100>=20 AND H>C
当满足条件抛点时,在H*1和' ★卖'位置书写文字
减点赋值:WX3>=15 AND WX3< 20 AND H>C
A1:=减点的12过滤
当满足条件A1时,在H*1.02和' ★减'位置书写文字
趋势线1A赋值:C的3日简单移动平均,COLORBLUE
输出趋势线2:趋势线1A的2日指数移动平均,COLORBLUE,DOTLINE
输出趋势线3:趋势线2的2日指数移动平均,COLORMAGENTA,DOTLINE
输出趋势线4:趋势线3的2日指数移动平均,COLORLIGREEN,DOTLINE
如果趋势线1A>趋势线2返回趋势线2否则返回DRAWNULL
CTE5赋值:DYNAINFO(88)/10000,NODRAW
CTE6赋值:DYNAINFO(7),NODRAW
STICKLINE(C/1日前的C>=1.097 AND H=C AND CTE6=C,C,O,2,0),COLORLIMAGENTA
WX4:=(C/1日前的C-1)*100>9.8 AND H=C AND H<>L,COLORMAGENTA
DRAWTEXT(CTE6=C AND WX4 ,L*1.035,VARCAT(VAR2STR(CTE5,0),'')),COLORWHITE
CTE8赋值:DYNAINFO(88)/DYNAINFO(10)*100,NODRAW
DRAWTEXT(CTE6=C AND WX4 ,L*1.01,VARCAT(VAR2STR(CTE8+5,0),'')),画绿色
STICKLINE(C/1日前的C>=1.097 AND H>L AND H=C,C,O,2,0),COLORLIRED
STICKLINE(1日前的C/C>=1.097 AND H>L AND H=C,C,O,2,0),COLORBLUE
STICKLINE(H/1日前的C>=1.097 AND H>C AND H=C,H,C,0,0),COLORLIRED
STICKLINE(1日前的C/L>=1.097 AND H>L AND H=C,C,L,0,0),COLORBLUE