通达信【突破擒牛】突破就买庄逼疯主图+选股用法详解
VAR1:=MA(CLOSE,14);VAR2:=C/REF(C,1)>1.045 AND L=H AND C=H;VAR3:=DYNAINFO(8)>0 AND V<REF(LLV(V,21),1 AND NOT(C=H AND C=L));VAR4:=C=HHV(C,10) AND H=HHV(H,10) AND C>O*1.01 AND H<C*1.04;VAR5:=3*SMA((C-LLV(L,14))/(HHV(H,14)-LLV(L,14))*100,5,1);VAR6:=VAR5-2*SMA(SMA((C-LLV(L,14))/(HHV(H,14)-LLV(L,14))*100,5,1),3,1);VAR8:=VAR6>90 AND BARSCOUNT(CLOSE)>30 AND REF(VAR6,2)<REF(VAR6,1);VAR9:=VAR6<10 AND BARSCOUNT(CLOSE)>30 AND REF(VAR6,2)>REF(VAR6,1);DRAWTEXT_FIX(ISLASTBAR,0,0,0,HYBLOCK);DRAWTEXT_FIX(ISLASTBAR,1,0,0,DYBLOCK);DRAWTEXT_FIX(ISLASTBAR,0.5,2,0,GNBLOCK);DRAWTEXT_FIX(ISLASTBAR,0,0,3,FGBLOCK);DRAWTEXT_FIX(ISLASTBAR,0.07,0,0,'营业收入'),COLORRED;DRAWTEXT_FIX(ISLASTBAR,0.07,0.06,0,CON2STR(FINANCE(20)/100000000,2)),COLORRED;DRAWTEXT_FIX(ISLASTBAR,0.14,0,0,'主营毛利率'),COLORMAGENTA;DRAWTEXT_FIX(ISLASTBAR,0.14,0.06,0,CON2STR((FINANCE(20)-FINANCE(21))/FINANCE(20)*100,2)),COLORMAGENTA;DRAWTEXT_FIX(ISLASTBAR,0.233,0,0,'收入同比增长'),COLORCYAN;DRAWTEXT_FIX(ISLASTBAR,0.233,0.06,0,CON2STR(FINANCE(44),2)),COLORCYAN;DRAWTEXT_FIX(ISLASTBAR,0.34,0,0,'市销率'),COLORGREEN;DRAWTEXT_FIX(ISLASTBAR,0.34,0.06,0,CON2STR(C*FINANCE(1)/FINANCE(20),2)),COLORGREEN;DRAWTEXT_FIX(ISLASTBAR,0.4,0,0,'净利润增长率'),COLORRED;DRAWTEXT_FIX(ISLASTBAR,0.4,0.06,0,CON2STR(FINANCE(43),2)),COLORRED;主力操作线:(EMA(CLOSE,14)),LINETHICK2,COLORLIGRAY;主力成本线:(EMA(CLOSE,55)),LINETHICK2,COLORRED;压力:VAR1+2*STD(CLOSE,14),DOTLINE,COLORBLUE;支撑:VAR1-2*STD(CLOSE,14),DOTLINE,COLORBLUE;IF(主力操作线>REF(主力操作线,1),主力操作线,DRAWNULL)COLORMAGENTA,LINETHICK2;IF(主力操作线<REF(主力操作线,1),主力操作线,DRAWNULL),COLORGREEN,LINETHICK2;STICKLINE(C/REF(C,1)<1.105 AND C/REF(C,1)>1.095 AND C=H,C,O,2,0),COLORLIMAGENTA;STICKLINE(C/REF(C,1)>1.105 AND O<C ,C,O,2,0),COLORMAGENTA;STICKLINE(C/REF(C,1)>1.095 AND L=H AND C=H,C,O*0.97,2,0),COLORLIRED;STICKLINE(C/REF(C,1)>1.19 AND C=H,C,O,2,0),COLORRED;STICKLINE(C/REF(C,1)>0.895 AND C/REF(C,1)<0.905 AND C=L,C,O,2,0),COLORBLUE;STICKLINE(C/REF(C,1)<0.895,C,O,2,0),COLORLIBLUE;STICKLINE(C/REF(C,1)<0.905 AND L=H AND C=H,C,O*0.97,2,0),COLORCYAN;DRAWICON(VAR3 AND NOT(VAR2),LOW*0.97,16);DRAWICON((VAR4 AND V>=HHV(V,10) AND V>(REF(V,1)*1.8)),L*0.95,1);DRAWICON((VAR8 AND VAR6<REF(VAR6,1)),H*1.05,12);DRAWICON((VAR9 AND VAR6>REF(VAR6,1) AND C>REF(C,1) AND C>O),L*0.95,11);
未来函数检测结果如下:
该公式包含未来函数:DYNAINFO
该公式包含未来函数:FINANCE
解密、编写股票、期货策略请联系QQ或微信同号:88652583
相关股票指标公式
原理解析:
VAR1赋值:收盘价的14日简单移动平均
VAR2赋值:C/1日前的C>1.045 AND L=H AND C=H
VAR3赋值:DYNAINFO(8)>0 AND V[VAR4赋值:C=10日内C最高值 AND H=10日内H最高值 AND C>O*1.01 AND HVAR5赋值:3*SMA((C-14日内L最低值)/(14日内H最高值-14日内L最低值)*100,5,1)]
VAR6赋值:VAR5-2*SMA(SMA((C-14日内L最低值)/(14日内H最高值-14日内L最低值)*100,5,1),3,1)
VAR8赋值:VAR6>90 AND 收盘价的有效数据周期数>30 AND 2日前的VAR6<1日前的VAR6
VAR9赋值:VAR6<10 AND 收盘价的有效数据周期数>30 AND 2日前的VAR6>1日前的VAR6
当满足条件ISLASTBAR时,在横轴0纵轴0位置书写文字
当满足条件ISLASTBAR时,在横轴1纵轴0位置书写文字
当满足条件ISLASTBAR时,在横轴0.5纵轴2位置书写文字
当满足条件ISLASTBAR时,在横轴0纵轴0位置书写文字
当满足条件ISLASTBAR时,在横轴0.07纵轴0位置书写文字
DRAWTEXT_FIX(ISLASTBAR,0.07,0.06,0,CON2STR(FINANCE(20)/100000000,2)),画红色
当满足条件ISLASTBAR时,在横轴0.14纵轴0位置书写文字
DRAWTEXT_FIX(ISLASTBAR,0.14,0.06,0,CON2STR((FINANCE(20)-FINANCE(21))/FINANCE(20)*100,2)),画洋红色
当满足条件ISLASTBAR时,在横轴0.233纵轴0位置书写文字
DRAWTEXT_FIX(ISLASTBAR,0.233,0.06,0,CON2STR(FINANCE(44),2)),画青色
当满足条件ISLASTBAR时,在横轴0.34纵轴0位置书写文字
DRAWTEXT_FIX(ISLASTBAR,0.34,0.06,0,CON2STR(C*FINANCE(1)/FINANCE(20),2)),画绿色
当满足条件ISLASTBAR时,在横轴0.4纵轴0位置书写文字
DRAWTEXT_FIX(ISLASTBAR,0.4,0.06,0,CON2STR(FINANCE(43),2)),画红色
输出主力操作线:(收盘价的14日指数移动平均), 线宽为2,COLORLIGRAY
输出主力成本线:(收盘价的55日指数移动平均), 线宽为2,画红色
输出压力:VAR1+2*收盘价的14估算标准差,DOTLINE, 画蓝色
输出支撑:VAR1-2*收盘价的14估算标准差,DOTLINE, 画蓝色
IF(主力操作线>1日前的主力操作线,主力操作线,DRAWNULL)画洋红色, 线宽为2
IF(主力操作线<1日前的主力操作线,主力操作线,DRAWNULL),画绿色, 线宽为2
STICKLINE(C/1日前的C<1.105 AND C/1日前的C>1.095 AND C=H,C,O,2,0),COLORLIMAGENTA
STICKLINE(C/1日前的C>1.105 AND OSTICKLINE(C/1日前的C>1.095 AND L=H AND C=H,C,O*0.97,2,0),COLORLIRED
STICKLINE(C/1日前的C>1.19 AND C=H,C,O,2,0),画红色
STICKLINE(C/1日前的C>0.895 AND C/1日前的C<0.905 AND C=L,C,O,2,0), 画蓝色
STICKLINE(C/1日前的C<0.895,C,O,2,0),COLORLIBLUE
STICKLINE(C/1日前的C<0.905 AND L=H AND C=H,C,O*0.97,2,0),画青色
DRAWICON(VAR3 AND NOT(VAR2),最低价*0.97,16)
DRAWICON((VAR4 AND V>=10日内V最高值 AND V>(1日前的V*1.8)),L*0.95,1)
DRAWICON((VAR8 AND VAR6<1日前的VAR6),H*1.05,12)
DRAWICON((VAR9 AND VAR6>1日前的VAR6 AND C>1日前的C AND C>O),L*0.95,11)