通达信三红中线主图指标 源码分享 附图

MA10:EMA(CLOSE,10),COLORGREEN;
MA20:EMA(CLOSE,20),COLORGREEN;
MA30:EMA(CLOSE,30),COLORGREEN;
IF(EMA(CLOSE,10)>=REF(EMA(CLOSE,10),1),EMA(CLOSE,10),DRAWNULL),COLORRED;
IF(EMA(CLOSE,20)>=REF(EMA(CLOSE,20),1),EMA(CLOSE,20),DRAWNULL),COLORRED;
IF(EMA(CLOSE,30)>=REF(EMA(CLOSE,30),1),EMA(CLOSE,30),DRAWNULL),COLORRED;
X_1:=EMA(CLOSE,30);
STICKLINE(CLOSE>=X_1 AND CLOSE>=OPEN,HIGH,LOW,0,1),COLOR0000AA;
STICKLINE(CLOSE>=X_1 AND CLOSE>=OPEN,OPEN,CLOSE,3,0),COLOR0000AA;
STICKLINE(CLOSE>=X_1 AND CLOSE>=OPEN,OPEN,CLOSE,2.3,0),COLOR0000CC;
STICKLINE(CLOSE>=X_1 AND CLOSE>=OPEN,OPEN,CLOSE,1.8,0),COLORRED;
STICKLINE(CLOSE>=X_1 AND CLOSE>=OPEN,OPEN,CLOSE,1,0),COLORCC66FF;
STICKLINE(CLOSE>=X_1 AND CLOSE<=OPEN,HIGH,LOW,0,1),COLOR0000AA;
STICKLINE(CLOSE>=X_1 AND CLOSE<=OPEN,OPEN,CLOSE,3,0),COLOR0000AA;
STICKLINE(CLOSE>=X_1 AND CLOSE<=OPEN,OPEN,CLOSE,2.3,0),COLOR0000CC;
STICKLINE(CLOSE>=X_1 AND CLOSE<=OPEN,OPEN,CLOSE,1.8,0),COLORRED;
STICKLINE(CLOSE>=X_1 AND CLOSE<=OPEN,OPEN,CLOSE,1,0),COLORCC66FF;
STICKLINE(CLOSE<=X_1 AND CLOSE>=OPEN,HIGH,LOW,0,1),COLORFF6600;
STICKLINE(CLOSE<=X_1 AND CLOSE>=OPEN,OPEN,CLOSE,3,0),COLORFF6600;
STICKLINE(CLOSE<=X_1 AND CLOSE>=OPEN,OPEN,CLOSE,2.3,0),COLORFF9900;
STICKLINE(CLOSE<=X_1 AND CLOSE>=OPEN,OPEN,CLOSE,1.8,0),COLORFFCC00;
STICKLINE(CLOSE<=X_1 AND CLOSE>=OPEN,OPEN,CLOSE,1,0),COLORCYAN;
STICKLINE(CLOSE<=X_1 AND CLOSE<=OPEN,HIGH,LOW,0,0),COLORFF6600;
STICKLINE(CLOSE<=X_1 AND CLOSE<=OPEN,OPEN,CLOSE,3,0),COLORFF6600;
STICKLINE(CLOSE<=X_1 AND CLOSE<=OPEN,OPEN,CLOSE,2.3,0),COLORFF9900;
STICKLINE(CLOSE<=X_1 AND CLOSE<=OPEN,OPEN,CLOSE,1.8,0),COLORFFCC00;
STICKLINE(CLOSE<=X_1 AND CLOSE<=OPEN,OPEN,CLOSE,1,0),COLORCYAN;
X_2:=REF(HIGH,8)=HHV(HIGH,2*8+1);
X_3:=FILTER(X_2,8);
X_4:=BACKSET(X_3,8+1);
X_5:=FILTER(X_4,8);
X_6:=BACKSET(ISLASTBAR,BARSLAST(X_5)+1);
X_7:=X_6>REF(X_6,1);
DRAWLINE(X_5,HIGH,X_7,HIGH,1),COLORBLACK,LINETHICK2;
X_8:=REF(LOW,8)=LLV(LOW,2*8+1);
X_9:=FILTER(X_8,8);
X_10:=BACKSET(X_9,8+1);
X_11:=FILTER(X_10,8);
X_12:=BACKSET(ISLASTBAR,BARSLAST(X_11)+1);
X_13:=X_12>REF(X_12,1);
DRAWLINE(X_11,LOW,X_13,LOW,1),COLORBLACK,LINETHICK2;
X_14:=INTPART(3*8/5);
X_15:=REF(HIGH,X_14)=HHV(HIGH,2*X_14+1);
X_16:=FILTER(X_15,X_14);
X_17:=BACKSET(X_16,X_14+1);
X_18:=IF(REF(CLOSE,1)*1.1-CLOSE<0.01,1,0);
STICKLINE(X_18,OPEN,CLOSE,3.5,0),COLOR871F78;
STICKLINE(X_18,OPEN,CLOSE,2.3,0),COLORYELLOW;
STICKLINE(X_18,HIGH,LOW,0,0),COLORYELLOW;
X_19:=STRCAT(1,STRCAT(STRCAT(STRCAT(2,HYBLOCK),STRCAT(3,DYBLOCK)),STRCAT(4,GNBLOCK)));
X_20:=STRCAT(STRCAT(5,CON2STR(TOTALCAPITAL/1000000,2)),6);
X_21:=STRCAT(STRCAT(7,CON2STR(CAPITAL/1000000,2)),6);
X_22:=STRCAT(STRCAT(8,CON2STR(CAPITAL/TOTALCAPITAL*100,2)),9);
X_23:=STRCAT(STRCAT(10,CON2STR(CAPITAL/1000000*CLOSE,2)),6);
X_24:=STRCAT(11,STRCAT(STRCAT(STRCAT(X_20,X_21),X_22),X_23));
X_25:=STRCAT(12,CON2STR(CLOSE/FINANCE(33),2));
X_26:=STRCAT(13,CON2STR(CLOSE/(FINANCE(20)/FINANCE(1)),2));
X_27:=STRCAT(14,CON2STR(CLOSE/FINANCE(34),2));
X_28:=STRCAT(15,CON2STR(FINANCE(33)/FINANCE(34)*100,2));
X_29:=STRCAT(16,CON2STR((FINANCE(20)-FINANCE(21))/FINANCE(20)*100,2));
X_30:=STRCAT(17,CON2STR(FINANCE(30)/FINANCE(20)*100,2));
X_31:=STRCAT(18,CON2STR(FINANCE(23)/FINANCE(20)*100,2));
X_32:=STRCAT(19,STRCAT(STRCAT(STRCAT(STRCAT(STRCAT(STRCAT(X_25,X_26),X_27),X_28),X_29),X_30),X_31));
DRAWTEXT_FIX(ISLASTBAR,0.005,0.02,0,X_19),COLORYELLOW;
DRAWTEXT_FIX(ISLASTBAR,0.005,0.09,0,X_24),COLORYELLOW;
DRAWTEXT_FIX(ISLASTBAR,0.005,0.16,0,X_32),COLORYELLOW;
X_33:=FINANCE(25)/FINANCE(15);
X_34:=FINANCE(44);
X_35:=FINANCE(43);
X_36:=CONST(FINANCE(38));
X_37:=CONST(FINANCE(34));
X_38:=CONST(FINANCE(25)/FINANCE(1));
X_39:=CONST(FINANCE(32));
X_40:=CONST(FINANCE(18));
X_41:=ROUND(FINANCE(40)/100000000);
X_42:=FINANCE(7)/100000000;
X_43:=DYNAINFO(51);
X_44:=DYNAINFO(17);
X_45:=DYNAINFO(40);
X_46:=ISBUYORDER;
X_47:=DYNAINFO(39)/FINANCE(43);
X_48:=DYNAINFO(7);
X_49:=DYNAINFO(13)*100;
X_50:=COSTEX(CLOSE,REF(CLOSE,BARSCOUNT(CLOSE)-1));
X_51:=DYNAINFO(3);
X_52:=DYNAINFO(4);
X_53:=X_28>3;
X_54:=X_28>0.01 AND X_28<=3;
X_55:=X_31>2;
X_56:=X_31>0;
X_57:=X_34>1;
X_58:=X_34>0;
X_59:=X_35>2;
X_60:=X_35>0.2;
X_61:=X_36>0.01;
X_62:=X_36>0.001;
X_63:=X_37>2;
X_64:=X_37>0.01;
X_65:=X_39>0.5;
X_66:=X_39>0.001;
X_67:=X_40>0.5;
X_68:=X_40>0.002;
X_69:=X_53 AND X_55 AND X_57 AND X_59 AND X_61 AND X_63 AND X_65 AND X_67;
X_70:=X_54 AND X_56 AND X_58 AND X_60 AND X_62 AND X_64 AND X_66 AND X_68;
DRAWTEXT_FIX(X_69 AND X_70=0,0.62,0.05,0,20),COLORRED;
DRAWTEXT_FIX(X_70,0.62,0.05,0,21),COLORMAGENTA;



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

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

输出MA10:收盘价的10日指数移动平均,画绿色
输出MA20:收盘价的20日指数移动平均,画绿色
输出MA30:收盘价的30日指数移动平均,画绿色
IF(收盘价的10日指数移动平均>=1日前的收盘价的10日指数移动平均,收盘价的10日指数移动平均,DRAWNULL),画红色
IF(收盘价的20日指数移动平均>=1日前的收盘价的20日指数移动平均,收盘价的20日指数移动平均,DRAWNULL),画红色
IF(收盘价的30日指数移动平均>=1日前的收盘价的30日指数移动平均,收盘价的30日指数移动平均,DRAWNULL),画红色
X_1赋值:收盘价的30日指数移动平均
当满足条件收盘价>=X_1 AND 收盘价>=开盘价时,在最高价和最低价之间画柱状线
当满足条件收盘价>=X_1 AND 收盘价>=开盘价时,在开盘价和收盘价之间画柱状线
当满足条件收盘价>=X_1 AND 收盘价>=开盘价时,在开盘价和收盘价之间画柱状线
当满足条件收盘价>=X_1 AND 收盘价>=开盘价时,在开盘价和收盘价之间画柱状线
当满足条件收盘价>=X_1 AND 收盘价>=开盘价时,在开盘价和收盘价之间画柱状线
当满足条件收盘价>=X_1 AND 收盘价<=开盘价时,在最高价和最低价之间画柱状线
当满足条件收盘价>=X_1 AND 收盘价<=开盘价时,在开盘价和收盘价之间画柱状线
当满足条件收盘价>=X_1 AND 收盘价<=开盘价时,在开盘价和收盘价之间画柱状线
当满足条件收盘价>=X_1 AND 收盘价<=开盘价时,在开盘价和收盘价之间画柱状线
当满足条件收盘价>=X_1 AND 收盘价<=开盘价时,在开盘价和收盘价之间画柱状线
当满足条件收盘价<=X_1 AND 收盘价>=开盘价时,在最高价和最低价之间画柱状线
当满足条件收盘价<=X_1 AND 收盘价>=开盘价时,在开盘价和收盘价之间画柱状线
当满足条件收盘价<=X_1 AND 收盘价>=开盘价时,在开盘价和收盘价之间画柱状线
当满足条件收盘价<=X_1 AND 收盘价>=开盘价时,在开盘价和收盘价之间画柱状线
当满足条件收盘价<=X_1 AND 收盘价>=开盘价时,在开盘价和收盘价之间画柱状线
当满足条件收盘价<=X_1 AND 收盘价<=开盘价时,在最高价和最低价之间画柱状线
当满足条件收盘价<=X_1 AND 收盘价<=开盘价时,在开盘价和收盘价之间画柱状线
当满足条件收盘价<=X_1 AND 收盘价<=开盘价时,在开盘价和收盘价之间画柱状线
当满足条件收盘价<=X_1 AND 收盘价<=开盘价时,在开盘价和收盘价之间画柱状线
当满足条件收盘价<=X_1 AND 收盘价<=开盘价时,在开盘价和收盘价之间画柱状线
X_2赋值:8日前的最高价=2*8+1日内最高价最高值
X_3赋值:X_2的8过滤
X_4赋值:BACKSET(X_3,8+1)
X_5赋值:X_4的8过滤
X_6赋值:BACKSET(ISLASTBAR,上次X_5距今天数+1)
X_7赋值:X_6>1日前的X_6
DRAWLINE(X_5,最高价,X_7,最高价,1),COLORBLACK, 线宽为2
X_8赋值:8日前的最低价=2*8+1日内最低价最低值
X_9赋值:X_8的8过滤
X_10:=BACKSET(X_9,8+1)
X_11:=X_10的8过滤
X_12:=BACKSET(ISLASTBAR,上次X_11距今天数+1)
X_13:=X_12>1日前的X_12
DRAWLINE(X_11,最低价,X_13,最低价,1),COLORBLACK, 线宽为2
X_14:=INTPART(3*8/5)
X_15:=X_14日前的最高价=2*X_14+1日内最高价最高值
X_16:=X_15的X_14过滤
X_17:=BACKSET(X_16,X_14+1)
X_18:=IF(1日前的收盘价*1.1-收盘价<0.01,1,0)
当满足条件X_18时,在开盘价和收盘价之间画柱状线
当满足条件X_18时,在开盘价和收盘价之间画柱状线
当满足条件X_18时,在最高价和最低价之间画柱状线
X_19:=STRCAT(1,STRCAT(STRCAT(STRCAT(2,HYBLOCK),STRCAT(3,DYBLOCK)),STRCAT(4,GNBLOCK)))
X_20:=STRCAT(STRCAT(5,CON2STR(TOTAL当前流通股本/1000000,2)),6)
X_21:=STRCAT(STRCAT(7,CON2STR(当前流通股本/1000000,2)),6)
X_22:=STRCAT(STRCAT(8,CON2STR(当前流通股本/TOTAL当前流通股本*100,2)),9)
X_23:=STRCAT(STRCAT(10,CON2STR(当前流通股本/1000000*收盘价,2)),6)
X_24:=STRCAT(11,STRCAT(STRCAT(STRCAT(X_20,X_21),X_22),X_23))
X_25:=STRCAT(12,CON2STR(收盘价/FINANCE(33),2))
X_26:=STRCAT(13,CON2STR(收盘价/(FINANCE(20)/FINANCE(1)),2))
X_27:=STRCAT(14,CON2STR(收盘价/FINANCE(34),2))
X_28:=STRCAT(15,CON2STR(FINANCE(33)/FINANCE(34)*100,2))
X_29:=STRCAT(16,CON2STR((FINANCE(20)-FINANCE(21))/FINANCE(20)*100,2))
X_30:=STRCAT(17,CON2STR(FINANCE(30)/FINANCE(20)*100,2))
X_31:=STRCAT(18,CON2STR(FINANCE(23)/FINANCE(20)*100,2))
X_32:=STRCAT(19,STRCAT(STRCAT(STRCAT(STRCAT(STRCAT(STRCAT(X_25,X_26),X_27),X_28),X_29),X_30),X_31))
当满足条件ISLASTBAR时,在横轴0.005纵轴0.02位置书写文字
当满足条件ISLASTBAR时,在横轴0.005纵轴0.09位置书写文字
当满足条件ISLASTBAR时,在横轴0.005纵轴0.16位置书写文字
X_33:=FINANCE(25)/FINANCE(15)
X_34:=FINANCE(44)
X_35:=FINANCE(43)
X_36:=CONST(FINANCE(38))
X_37:=CONST(FINANCE(34))
X_38:=CONST(FINANCE(25)/FINANCE(1))
X_39:=CONST(FINANCE(32))
X_40:=CONST(FINANCE(18))
X_41:=ROUND(FINANCE(40)/100000000)
X_42:=FINANCE(7)/100000000
X_43:=DYNAINFO(51)
X_44:=DYNAINFO(17)
X_45:=DYNAINFO(40)
X_46:=ISBUYORDER
X_47:=DYNAINFO(39)/FINANCE(43)
X_48:=现价
X_49:=DYNAINFO(13)*100
X_50:=COSTEX(收盘价,REF(收盘价,收盘价的有效数据周期数-1))
X_51:=DYNAINFO(3)
X_52:=开盘价
X_53:=X_28>3
X_54:=X_28>0.01 AND X_28<=3
X_55:=X_31>2
X_56:=X_31>0
X_57:=X_34>1
X_58:=X_34>0
X_59:=X_35>2
X_60:=X_35>0.2
X_61:=X_36>0.01
X_62:=X_36>0.001
X_63:=X_37>2
X_64:=X_37>0.01
X_65:=X_39>0.5
X_66:=X_39>0.001
X_67:=X_40>0.5
X_68:=X_40>0.002
X_69:=X_53 AND X_55 AND X_57 AND X_59 AND X_61 AND X_63 AND X_65 AND X_67
X_70:=X_54 AND X_56 AND X_58 AND X_60 AND X_62 AND X_64 AND X_66 AND X_68
当满足条件X_69 AND X_70=0时,在横轴0.62纵轴0.05位置书写文字
当满足条件X_70时,在横轴0.62纵轴0.05位置书写文字

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

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