新捉妖通达信公式 主图 源码附图
X_1:=STRCAT(HYBLOCK,40);
X_2:=STRCAT(X_1,DYBLOCK);
X_3:=STRCAT(X_2,40);
DRAWTEXT_FIX(ISLASTBAR,0,0,0,STRCAT(X_3,GNBLOCK)),COLORLIRED;
DRAWTEXT_FIX(ISLASTBAR,0,0.03,0,EXTERNSTR(0,3)),COLORWHITE;
DRAWTEXT_FIX(ISLASTBAR,0,0.06,0,EXTERNSTR(0,6)),COLORLIBLUE;
DRAWTEXT_FIX(ISLASTBAR,0,0.09,0,EXTERNSTR(0,12)),COLORLIGREEN;
DRAWTEXT_FIX(ISLASTBAR,0,0.15,0,FGBLOCK),COLORLIMAGENTA;
DRAWTEXT_FIX(ISLASTBAR,0,0.12,0,EXTERNSTR(0,1)),COLORYELLOW;
X_4:=ABS((3.14*CLOSE/4-EMA(CLOSE,20))/EMA(CLOSE,20));
X_5:=DMA(2.2*CLOSE/4,X_4);
分界线:EMA(X_5,200)*1.118,COLORMAGENTA,LINETHICK2;
持股线:(MA(CLOSE,3)+MA(CLOSE,6)+MA(CLOSE,12)+MA(CLOSE,24))/4,COLORRED,LINETHICK2;
X_6:=CLOSE/分界线;
X_7:=X_6*((1.88*CLOSE+HIGH+LOW)/4);
X_8:=(X_7-分界线)/分界线/3.3;
X_9:=X_7-X_8*X_7;
涨速线:IF(X_9<分界线 AND X_9<CLOSE*0.15,分界线*0.85,X_9),COLORYELLOW,LINETHICK2;
X_10:=MA((LOW+HIGH+CLOSE)/3,5);
压力:HHV(X_10,60),COLORCYAN,LINETHICK2;
支撑:MA(REF(LLV(CLOSE,30),1),2),COLORLIGRAY;
顶线:SUM(CLOSE,21)/29*1.6,DOTLINE,COLORFF9900;
X_11:=ABS(((3.48*CLOSE+HIGH+LOW)/4-EMA(CLOSE,20))/EMA(CLOSE,20));
X_12:=DMA((2.15*CLOSE+LOW+HIGH)/4,X_11);
金线王:EMA(X_12,200)*1.118,COLOR0080FF;
X_13:=CLOSE>REF(CLOSE,1)*1.093 AND CLOSE=HIGH;
X_14:=DYNAINFO(13)>0;
X_15:=REF(X_13,1) AND REF(X_13,2) AND (REF(CLOSE>LOW,1) OR REF(CLOSE>LOW,2));
X_16:=REF(X_13,3) AND REF(X_13,2);
X_17:=X_15 OR X_16 AND REF(CLOSE>REF(CLOSE,1) AND CLOSE>OPEN*1.02,1) AND CLOSE>OPEN AND CLOSE<REF(CLOSE,1) AND LOW>REF(LOW,1) AND VOL<REF(VOL,1);
DRAWTEXT(X_17,LOW*0.99,1231),COLORYELLOW;
X_18:=CONST(LLVBARS(LOW,10));
X_19:=CONST(REF(HIGH,X_18));
X_20:=CONST(CURRBARSCOUNT);
X_21:=CONST(BARSLAST(CURRBARSCOUNT>X_20+X_18 AND HIGH>X_19));
X_22:=CONST(REF(HIGH,X_21));
X_23:=CONST(BARSLAST(CURRBARSCOUNT>X_20+X_21 AND HIGH>X_22));
X_24:=CONST(REF(HIGH,X_23));
X_25:=10;
X_26:=CONST(LLVBARS(LOW,X_25));
X_27:=CONST(REF(HIGH,X_26));
X_28:=CONST(CURRBARSCOUNT);
X_29:=CONST(BARSLAST(CURRBARSCOUNT>X_28+X_26 AND HIGH>X_27));
X_30:=CONST(REF(HIGH,X_29));
X_31:=CONST(BARSLAST(CURRBARSCOUNT>X_28+X_29 AND HIGH>X_30));
X_32:=CONST(REF(HIGH,X_31));
洗盘杀入线:DRAWLINE(CURRBARSCOUNT=10+1,X_32,ISLASTBAR,X_32,1),COLORGREEN;
DRAWTEXT(ISLASTBAR,X_32,1232),COLORGREEN;
X_33:=10;
X_34:=CONST(HHVBARS(VOL,10));
量能评台:IF(CURRBARSCOUNT<=X_33+3,CONST(IF(X_34=0,CLOSE,REF(CLOSE,X_34))),DRAWNULL),COLORLIRED;
NOTEXT_新量能点:IF(CURRBARSCOUNT=X_34+1,量能评台,DRAWNULL),CIRCLEDOT,COLORWHITE;
DRAWTEXT(ISLASTBAR,量能评台,1233),COLORLIRED;
STICKLINE(X_13,OPEN,CLOSE,1.1,0),COLORYELLOW;
STICKLINE(CLOSE/REF(CLOSE,1)<0.93 AND LOW=CLOSE,OPEN,CLOSE,1,0),COLORGREEN;
未来函数检测结果如下:
该公式包含未来函数:DYNAINFO
解密、编写股票、期货策略请联系QQ或微信同号:88652583
相关股票指标公式
原理解析:
X_1赋值:STRCAT(HYBLOCK,40)
X_2赋值:STRCAT(X_1,DYBLOCK)
X_3赋值:STRCAT(X_2,40)
DRAWTEXT_FIX(ISLASTBAR,0,0,0,STRCAT(X_3,GNBLOCK)),COLORLIRED
DRAWTEXT_FIX(ISLASTBAR,0,0.03,0,EXTERNSTR(0,3)),画白色
DRAWTEXT_FIX(ISLASTBAR,0,0.06,0,EXTERNSTR(0,6)),COLORLIBLUE
DRAWTEXT_FIX(ISLASTBAR,0,0.09,0,EXTERNSTR(0,12)),COLORLIGREEN
当满足条件ISLASTBAR时,在横轴0纵轴0.15位置书写文字
DRAWTEXT_FIX(ISLASTBAR,0,0.12,0,EXTERNSTR(0,1)),画黄色
X_4赋值:(3.14*收盘价/4-收盘价的20日指数移动平均的绝对值/收盘价的20日指数移动平均)
X_5赋值:D2.2*收盘价/4的X_4日简单移动平均
输出分界线:X_5的200日指数移动平均*1.118,画洋红色, 线宽为2
输出持股线:(收盘价的3日简单移动平均+收盘价的6日简单移动平均+收盘价的12日简单移动平均+收盘价的24日简单移动平均)/4,画红色, 线宽为2
X_6赋值:收盘价/分界线
X_7赋值:X_6*((1.88*收盘价+最高价+最低价)/4)
X_8赋值:(X_7-分界线)/分界线/3.3
X_9赋值:X_7-X_8*X_7
如果X_9<分界线 AND X_9<收盘价*0.15返回分界线*0.85否则返回X_9
X_10:=MA((最低价+最高价+收盘价)/3,5)
输出压力:60日内X_10最高值,画青色, 线宽为2
输出支撑:MA(REF(30日内收盘价最低值,1),2),COLORLIGRAY
输出顶线:21的收盘价日累和/29*1.6,DOTLINE,COLORFF9900
X_11:=((3.48*收盘价+最高价+最低价的绝对值/4-收盘价的20日指数移动平均)/收盘价的20日指数移动平均)
X_12:=DMA((2.15*收盘价+最低价+最高价)/4,X_11)
输出金线王:X_12的200日指数移动平均*1.118,COLOR0080FF
X_13:=收盘价>1日前的收盘价*1.093 AND 收盘价=最高价
X_14:=DYNAINFO(13)>0
X_15:=1日前的X_13 AND 2日前的X_13 AND (1日前的收盘价>最低价 OR 2日前的收盘价>最低价)
X_16:=3日前的X_13 AND 2日前的X_13
X_17:=X_15 OR X_16 AND 1日前的收盘价>收盘价 AND 收盘价>开盘价*1.02,1) AND 收盘价>开盘价 AND 收盘价<1日前的收盘价 AND 最低价>1日前的最低价 AND 成交量<1日前的成交量
当满足条件X_17时,在最低价*0.99和1231位置书写文字
X_18:=CONST(LLVBARS(最低价,10))
X_19:=CONST(X_18日前的最高价)
X_20:=CONST( 到最后交易的周期)
X_21:=CONST(上次 到最后交易的周期>X_20+X_18 AND 最高价>X_19距今天数)
X_22:=CONST(X_21日前的最高价)
X_23:=CONST(上次 到最后交易的周期>X_20+X_21 AND 最高价>X_22距今天数)
X_24:=CONST(X_23日前的最高价)
X_25:=10
X_26:=CONST(LLVBARS(最低价,X_25))
X_27:=CONST(X_26日前的最高价)
X_28:=CONST( 到最后交易的周期)
X_29:=CONST(上次 到最后交易的周期>X_28+X_26 AND 最高价>X_27距今天数)
X_30:=CONST(X_29日前的最高价)
X_31:=CONST(上次 到最后交易的周期>X_28+X_29 AND 最高价>X_30距今天数)
X_32:=CONST(X_31日前的最高价)
输出洗盘杀入线:DRAWLINE( 到最后交易的周期=10+1,X_32,ISLASTBAR,X_32,1),画绿色
当满足条件ISLASTBAR时,在X_32和1232位置书写文字
X_33:=10
X_34:=CONST(HHVBARS(成交量,10))
输出量能评台:IF( 到最后交易的周期<=X_33+3,CONST(IF(X_34=0,收盘价,X_34日前的收盘价)),DRAWNULL),COLORLIRED
如果 到最后交易的周期=X_34+1返回量能评台否则返回DRAWNULL
当满足条件ISLASTBAR时,在量能评台和1233位置书写文字
当满足条件X_13时,在开盘价和收盘价之间画柱状线
STICKLINE(收盘价/1日前的收盘价<0.93 AND 最低价=收盘价,开盘价,收盘价,1,0),画绿色