通达信启动活跃关注区间副图指标 源码分享 附图

X_1:=MA(CLOSE,5);
X_2:=MA(CLOSE,10);
X_3:=MA(CLOSE,20);
X_4:=EMA(CLOSE,60);
X_5:=IF(BARSCOUNT(CLOSE)+1>100,X_4,X_3);
X_6:=(X_2-X_4)/X_4;
X_7:=CLOSE/REF(CLOSE,20)<1.2 AND X_2>REF(X_2,1) AND CLOSE<LLV(LOW,80)*1.5;
X_8:=(CLOSE-X_2)/X_2;
X_9:=(CLOSE-X_3)/X_3;
X_10:=(CLOSE-X_4)/X_4;
X_11:=0.01*AMOUNT/VOL;
X_12:=VOL/CAPITAL;
X_13:=MA(X_12,5);
X_14:=MA(X_12,20);
X_15:=EMA(X_12,60);
X_16:=CLOSE/REF(CLOSE,1)>1.099 AND CLOSE=HIGH AND LOW<CLOSE;
X_17:=CLOSE/REF(CLOSE,1)>1.099 AND LOW=HIGH;
X_18:=HIGH/REF(CLOSE,1)>1.099 OR CLOSE/REF(CLOSE,1)>1.09 AND CLOSE/REF(CLOSE,1)>1.065 AND CLOSE/REF(CLOSE,1)<1.0992 AND CLOSE>X_11;
X_19:=CLOSE/REF(CLOSE,1)>1.05 AND (X_12>REF(X_12,1) OR X_12>MAX(X_13,X_15)) AND CLOSE>X_11 AND X_8<0.12;
X_20:=X_16 OR X_18 OR X_19;
X_21:=BARSLAST(X_20);
X_22:=REF(X_11,X_21);
X_23:=REF(LOW,1)<MAX(REF(X_2,1),REF(X_3,1)) AND CLOSE>X_2;
X_24:=INDEXC;
X_25:=(INDEXC-MA(INDEXC,10))/MA(INDEXC,10);
X_26:=3*(X_8-X_25);
X_27:=X_26>0 OR (X_26>(-0.1) AND X_26>REF(X_26,1));
X_28:=SUM(X_26,10);
X_29:=10;
X_30:=3;
X_31:=(MA(CLOSE,3)+MA(CLOSE,6)+MA(CLOSE,12)+MA(CLOSE,24))/4;
X_32:=X_31+X_30*STD(X_31,X_29);
X_33:=X_31-X_30*STD(X_31,X_29);
X_34:=(X_32-X_33)/10;
X_35:=X_34<0.4 AND LLV(X_34,5)<3*LLV(X_34,100) OR X_34<0.2;
X_36:=CLOSE/REF(CLOSE,1)>1.03 AND CLOSE/REF(CLOSE,1)<1.11 AND CLOSE/X_2<1.13;
X_37:=X_12<MAX(X_13,X_14);
X_38:=COUNT(X_37,7)>=4;
X_39:=X_12>1.35*REF(X_12,1) AND X_12<7*REF(X_12,1) AND X_12>1.5 AND X_12>X_13 AND REF(X_38,1);
X_40:=X_23 AND X_39 AND X_36 AND X_27 AND X_35;
X_41:=0.6*(X_2>X_3 OR X_2>REF(X_2,1) OR X_11>X_2 AND X_26>(-0.02));
X_42:=0.5*(COUNT(CLOSE/REF(CLOSE,1)>1.06,60)>=6 OR COUNT(X_16,60)>=2 OR COUNT(X_16 OR X_19,30)>=1 OR COUNT(X_26>0.1,120)>20);
X_43:=0.2*(X_12>MAX(X_15,X_13) OR X_13>X_15 OR X_16) OR X_16 OR X_19 AND (X_12>MIN(X_15,X_13) AND CLOSE>X_2 OR X_26>0) OR X_13>=REF(X_13,1) AND CLOSE>REF(CLOSE,1);
X_44:=0.5*(X_43 OR X_41 AND X_42);
X_45:=X_16 OR X_19 AND X_44 AND X_26>0 AND X_6<0.23 AND X_10<0.25 AND X_7;
X_46:=BARSLAST(X_45);
活跃区间:X_44 AND EVERY(X_44,X_46+1),COLORRED;
X_47:=COUNT(X_45,0);
X_48:=X_45 AND 活跃区间 AND COUNT(X_45,0)=1;
X_49:=X_45 AND 活跃区间 AND REF(活跃区间!=1,1) AND COUNT(X_45,0)>1;
X_50:=X_45 AND 活跃区间 AND REF(X_44=0,1) AND COUNT(X_45,0)<=1;
启动:IF(COUNT(X_45,0)>1,X_49,X_48 OR (X_50 AND X_7)),LINETHICK0;
X_51:=BARSLAST(X_49);
X_52:=REF(X_11,X_51);
X_53:=REF(OPEN,X_51);
X_54:=REF(LOW,X_51);
X_55:=REF(X_2,X_51);
X_56:=X_52*0.95;
X_57:=IF(X_53<X_52*0.98,MAX(X_54,X_56),X_56);
X_58:=0.2*(HHV(CLOSE,5)/CLOSE>1.06 AND HHV(X_8,6)>0.08 AND CLOSE>0.95*X_2 AND CLOSE<1.09*X_2 AND LOW/X_2<1.01 AND 活跃区间);
关注区间:0.6*(活跃区间 AND (CLOSE>=X_57 OR CLOSE>X_2) AND X_51<=6 AND X_51>0),LINETHICK0;
X_59:=0.3*(X_43 AND X_26>0);
X_60:=FILTER(0.6*(活跃区间 AND (CLOSE>=X_57 OR CLOSE>X_2) AND X_51<=6 AND X_51>0),6);
STICKLINE(启动,0,2,2,0),COLORYELLOW;
STICKLINE(关注区间>0,0,2,2,0),COLOR9B85E5;



未来函数检测结果如下:
该公式包含未来函数:CAPITAL

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

X_1赋值:收盘价的5日简单移动平均
X_2赋值:收盘价的10日简单移动平均
X_3赋值:收盘价的20日简单移动平均
X_4赋值:收盘价的60日指数移动平均
X_5赋值:IF(收盘价的有效数据周期数+1>100,X_4,X_3)
X_6赋值:(X_2-X_4)/X_4
X_7赋值:收盘价/20日前的收盘价<1.2 AND X_2>1日前的X_2 AND 收盘价<80日内最低价最低值*1.5
X_8赋值:(收盘价-X_2)/X_2
X_9赋值:(收盘价-X_3)/X_3
X_10:=(收盘价-X_4)/X_4
X_11:=0.01*成交额/成交量
X_12:=成交量/当前流通股本
X_13:=X_12的5日简单移动平均
X_14:=X_12的20日简单移动平均
X_15:=X_12的60日指数移动平均
X_16:=收盘价/1日前的收盘价>1.099 AND 收盘价=最高价 AND 最低价<收盘价
X_17:=收盘价/1日前的收盘价>1.099 AND 最低价=最高价
X_18:=最高价/1日前的收盘价>1.099 OR 收盘价/1日前的收盘价>1.09 AND 收盘价/1日前的收盘价>1.065 AND 收盘价/1日前的收盘价<1.0992 AND 收盘价>X_11
X_19:=收盘价/1日前的收盘价>1.05 AND (X_12>1日前的X_12 OR X_12>X_13和X_15较大值) AND 收盘价>X_11 AND X_8<0.12
X_20:=X_16 OR X_18 OR X_19
X_21:=上次X_20距今天数
X_22:=X_21日前的X_11
X_23:=1日前的最低价<1日前的X_2和1日前的X_3较大值 AND 收盘价>X_2
X_24:=INDEXC
X_25:=(INDEXC-INDEXC的10日简单移动平均)/INDEXC的10日简单移动平均
X_26:=3*(X_8-X_25)
X_27:=X_26>0 OR (X_26>(-0.1) AND X_26>1日前的X_26)
X_28:=10的X_26日累和
X_29:=10
X_30:=3
X_31:=(收盘价的3日简单移动平均+收盘价的6日简单移动平均+收盘价的12日简单移动平均+收盘价的24日简单移动平均)/4
X_32:=X_31+X_30*X_31的X_29估算标准差
X_33:=X_31-X_30*X_31的X_29估算标准差
X_34:=(X_32-X_33)/10
X_35:=X_34<0.4 AND 5日内X_34最低值<3*100日内X_34最低值 OR X_34<0.2
X_36:=收盘价/1日前的收盘价>1.03 AND 收盘价/1日前的收盘价<1.11 AND 收盘价/X_2<1.13
X_37:=X_12 X_38:=统计7日满足X_37的天数>=4
X_39:=X_12>1.35*1日前的X_12 AND X_12<7*1日前的X_12 AND X_12>1.5 AND X_12>X_13 AND 1日前的X_38
X_40:=X_23 AND X_39 AND X_36 AND X_27 AND X_35
X_41:=0.6*(X_2>X_3 OR X_2>1日前的X_2 OR X_11>X_2 AND X_26>(-0.02))
X_42:=0.5*(COUNT(收盘价/1日前的收盘价>1.06,60)>=6 OR COUNT(X_16,60)>=2 OR COUNT(X_16 OR X_19,30)>=1 OR COUNT(X_26>0.1,120)>20)
X_43:=0.2*(X_12>X_15和X_13较大值 OR X_13>X_15 OR X_16) OR X_16 OR X_19 AND (X_12>X_15和X_13的较小值 AND 收盘价>X_2 OR X_26>0) OR X_13>=1日前的X_13 AND 收盘价>1日前的收盘价
X_44:=0.5*(X_43 OR X_41 AND X_42)
X_45:=X_16 OR X_19 AND X_44 AND X_26>0 AND X_6<0.23 AND X_10<0.25 AND X_7
X_46:=上次X_45距今天数
输出活跃区间:X_44 AND X_44最近X_46+1日一直存在,画红色
X_47:=统计0日满足X_45的天数
X_48:=X_45 AND 活跃区间 AND 统计0日满足X_45的天数=1
X_49:=X_45 AND 活跃区间 AND 1日前的活跃区间!=1 AND 统计0日满足X_45的天数>1
X_50:=X_45 AND 活跃区间 AND 1日前的X_44=0 AND 统计0日满足X_45的天数<=1
输出启动:IF(统计0日满足X_45的天数>1,X_49,X_48 OR (X_50 AND X_7)),LINETHICK0
X_51:=上次X_49距今天数
X_52:=X_51日前的X_11
X_53:=X_51日前的开盘价
X_54:=X_51日前的最低价
X_55:=X_51日前的X_2
X_56:=X_52*0.95
X_57:=IF(X_53 X_58:=0.2*(5日内收盘价最高值/收盘价>1.06 AND 6日内X_8最高值>0.08 AND 收盘价>0.95*X_2 AND 收盘价<1.09*X_2 AND 最低价/X_2<1.01 AND 活跃区间)
输出关注区间:0.6*(活跃区间 AND (收盘价>=X_57 OR 收盘价>X_2) AND X_51<=6 AND X_51>0),LINETHICK0
X_59:=0.3*(X_43 AND X_26>0)
X_60:=FILTER(0.6*(活跃区间 AND (收盘价>=X_57 OR 收盘价>X_2) AND X_51<=6 AND X_51>0),6)
当满足条件启动时,在0和2之间画柱状线
当满足条件关注区间>0时,在0和2之间画柱状线

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

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