通达信量启动选股 一个稳稳不输的精准公式 源码

指数:INDEXC,NODRAW;
涨跌:INDEXC-REF(INDEXC,1),NODRAW;
日DIF:="MACD.DIF",COLORWHITE;
日DEA:="MACD.DEA",COLORWHITE,LINETHICK2;
日金:IF(CROSS(日DIF,日DEA),0.1,0),COLORYELLOW;

月DIFF:MACD.DIF#MONTH;
月DEAF:MACD.DEA#MONTH;
周DIFF:MACD.DIF#WEEK;
周DEAF:MACD.DEA#WEEK;


TDXSTEP279:DRAWBAND(月DIFF,RGB(178,34,34),月DEAF,RGB(34,139,34));
TDXSTEP280:DRAWBAND(周DIFF,RGB(255,0,0),周DEAF,RGB(0,255,0));
MACDF周金叉:CROSS(周DIFF,周DEAF)*0.3,COLORRED,LINETHICK2;
MACDF月金叉:CROSS(月DIFF,月DEAF)*0.4,COLORYELLOW,LINETHICK2;
XA_1:=DRAWTEXT(MACDF周金叉=1,0.35,0.5115);
XA_2:=EMA(CLOSE,12)-EMA(CLOSE,26);
DRAWTEXT_FIX(1,0,0,0,9),COLORRED;
XA_3:=EMA(XA_2,9);
MACDF:(XA_2-XA_3)*2,COLORSTICK;
XA_4:=EMA(XA_2,9);
XA_5:=XA_2>XA_4;
XA_6:=XA_2<XA_4;
低位金叉:IF(CROSS(XA_2,XA_3) AND XA_2<(-0.1),MACDF+0.03,DRAWNULL),CROSSDOT,COLORRED,LINETHICK3;
TDXSTEP282:IF(CROSS(XA_2,XA_3) AND XA_2<(-0.1),MACDF+0.06,DRAWNULL),CIRCLEDOT,COLORYELLOW,LINETHICK5;
DRAWICON(TDXSTEP282>0,MACDF+0.1,1);
XA_7:=EMA(CLOSE,12/2)-EMA(CLOSE,26/2);
XA_8:=EMA(XA_7,9/2);
XA_9:=(XA_7-XA_8)*2;
XA_10:=EMA(CLOSE,12)-EMA(CLOSE,26);
XA_11:=EMA(XA_10,9);
XA_12:=(XA_10-XA_11)*2;
XA_13:=MACD.DIF#WEEK;
XA_14:=MACD.DEA#WEEK;
XA_15:=(XA_13-XA_14)*2;
XA_16:=MACD.DIF#MONTH;
XA_17:=MACD.DEA#MONTH;
XA_18:=(XA_16-XA_17)*2;
XA_19:=(CLOSE-LLV(LOW,36))/(HHV(HIGH,36)-LLV(LOW,36));
XA_20:=SMA(XA_19,3,1);
XA_21:=SMA(XA_20,3,1);
XA_22:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9));
XA_23:=SMA(XA_22,3,1);
XA_24:=SMA(XA_23,3,1);
XA_25:=3*XA_23-2*XA_24;
XA_26:=KDJ.K#WEEK;
XA_27:=KDJ.D#WEEK;
XA_28:=KDJ.K#MONTH;
XA_29:=KDJ.D#MONTH;
XA_30:=MAX(MA(CLOSE,5),MA(CLOSE,10));
XA_31:=MIN(MA(CLOSE,5),MA(CLOSE,10));
XA_32:=CLOSE>XA_30;
XA_33:=CLOSE<XA_31;
XA_34:=CLOSE>=XA_31 AND CLOSE<=XA_30;
XA_35:=MAX(MA(CLOSE,10),MA(CLOSE,20));
XA_36:=MIN(MA(CLOSE,10),MA(CLOSE,20));
XA_37:=CLOSE>XA_35;
XA_38:=CLOSE<XA_36;
XA_39:=CLOSE>=XA_36 AND CLOSE<=XA_35;
XA_40:=MAX(MA(CLOSE,20),MA(CLOSE,28));
XA_41:=MIN(MA(CLOSE,20),MA(CLOSE,28));
XA_42:=CLOSE>XA_40;
XA_43:=CLOSE<XA_41;
XA_44:=CLOSE>=XA_41 AND CLOSE<=XA_40;
XA_45:=MAX(MA(CLOSE,60),MA(CLOSE,120));
XA_46:=MIN(MA(CLOSE,60),MA(CLOSE,120));
XA_47:=CLOSE>XA_45;
XA_48:=CLOSE<XA_46;
XA_49:=CLOSE>=XA_36 AND CLOSE<=XA_35;
XA_50:=MAX(MA(INDEXC,60),MA(INDEXC,120));
XA_51:=MIN(MA(INDEXC,60),MA(INDEXC,120));
XA_52:=INDEXC>XA_50;
XA_53:=INDEXC<XA_51;
XA_54:=INDEXC>=XA_51 AND INDEXC<=XA_50;
XA_55:=XA_32 AND XA_37 AND XA_42 AND XA_47 AND XA_52;
XA_56:=XA_9>0 AND XA_12>0 AND XA_15>0;
XA_57:=XA_20>=XA_21 AND XA_23>=XA_24 AND XA_26>=XA_27 AND XA_28>=XA_29;
XA_58:=XA_56 AND XA_57;
XA_59:=XA_16>REF(XA_16,25);
XA_60:=XA_13>REF(XA_13,1);
XA_61:=XA_59 AND XA_60;
XA_62:=CROSS(XA_13,XA_14) AND XA_57 AND XA_13>REF(XA_13,1);
XA_63:=XA_56 AND XA_57 AND REF(XA_15<0,1) AND XA_13>REF(XA_13,1);
XA_64:=XA_15>0 AND REF(XA_12<0,1) AND XA_26>=XA_27 AND REF(XA_26<XA_27,1) AND XA_13>REF(XA_13,1);
XA_65:=CROSS(XA_23,XA_24) AND (XA_24<40 OR XA_24>60);
XA_66:=CROSS(XA_26,XA_27) AND (XA_27<40 OR XA_27>60);
XA_67:=CROSS(XA_28,XA_29) AND (XA_29<40 OR XA_29>60);
XA_68:=XA_15>0 AND (XA_66 AND XA_65) OR (XA_66 AND XA_67) OR (XA_65 AND XA_67) OR (XA_65 AND XA_66 AND XA_67);
XA_69:=XA_56 AND XA_57 AND XA_18>0 AND XA_13>REF(XA_13,5);
XA_70:=XA_55 AND XA_69 AND REF(XA_69!=1,1) OR XA_69 AND XA_55 AND REF(XA_55!=1,1);
XA_71:=XA_15>0 AND XA_18>0 AND REF(XA_18<0,1) AND XA_13>REF(XA_13,5) AND DYNAINFO(17)>3;
XA_72:=XA_62 OR XA_63 OR XA_68 OR XA_64 OR XA_71 OR XA_70;
XA_73:=MIN(CLOSE,OPEN)-LOW<HIGH-MAX(CLOSE,OPEN) AND CLOSE<REF(CLOSE,1);
STICKLINE(XA_73,0,0.5,1,1),COLORGREEN,LINETHICK2;
STICKLINE(XA_72,0,1,1,0),COLORRED;
{TDXSTEP101:DRAWTEXT(XA_62,0.8,16),COLORYELLOW;
TDXSTEP102:DRAWTEXT(XA_63,0.9,17),COLORYELLOW;
TDXSTEP103:DRAWTEXT(XA_64,0.5,18),COLORYELLOW;
TDXSTEP105:DRAWTEXT(XA_70,0.7,19),COLORYELLOW;
TDXSTEP106:DRAWTEXT(XA_71,0.3,20),COLORYELLOW;
TDXSTEP108:DRAWTEXT(XA_68,0.6,21),COLORYELLOW;};



未来函数检测结果如下:
该公式包含未来函数:DYNAINFO
该公式包含未来函数:#MONTH
该公式包含未来函数:#WEEK

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

输出指数:INDEXC,NODRAW
输出涨跌:INDEXC-1日前的INDEXC,NODRAW
日DIF赋值:"MACD.DIF",画白色
日DEA赋值:"MACD.DEA",画白色, 线宽为2
输出日金:IF(日DIF上穿日DEA,0.1,0),画黄色
输出月DIFF:MACD.DIF#MONTH
输出月DEAF:MACD.DEA#MONTH
输出周DIFF:MACD.DIF#WEEK
输出周DEAF:MACD.DEA#WEEK
输出TDXSTEP279:DRAWBAND(月DIFF,RGB(178,34,34),月DEAF,RGB(34,139,34))
输出TDXSTEP280:DRAWBAND(周DIFF,RGB(255,0,0),周DEAF,RGB(0,255,0))
输出MACDF周金叉:周DIFF上穿周DEAF*0.3,画红色, 线宽为2
输出MACDF月金叉:月DIFF上穿月DEAF*0.4,画黄色, 线宽为2
当满足条件MACDF周金叉=1时,在0.35和0.5115位置书写文字
XA_2赋值:收盘价的12日指数移动平均-收盘价的26日指数移动平均
当满足条件1时,在横轴0纵轴0位置书写文字
XA_3赋值:XA_2的9日指数移动平均
输出MACDF:(XA_2-XA_3)*2,COLORSTICK
XA_4赋值:XA_2的9日指数移动平均
XA_5赋值:XA_2>XA_4
XA_6赋值:XA_2 输出低位金叉:IF(XA_2上穿XA_3 AND XA_2<(-0.1),MACDF+0.03,DRAWNULL),CROSSDOT,画红色, 线宽为3
输出TDXSTEP282:IF(XA_2上穿XA_3 AND XA_2<(-0.1),MACDF+0.06,DRAWNULL),CIRCLEDOT,画黄色, 线宽为5
当满足条件TDXSTEP282>0时,在MACDF+0.1和1之间画图标
XA_7赋值:收盘价的12/2日指数移动平均-收盘价的26/2日指数移动平均
XA_8赋值:XA_7的9/2日指数移动平均
XA_9赋值:(XA_7-XA_8)*2
XA_10:=收盘价的12日指数移动平均-收盘价的26日指数移动平均
XA_11:=XA_10的9日指数移动平均
XA_12:=(XA_10-XA_11)*2
XA_13:=MACD.DIF#WEEK
XA_14:=MACD.DEA#WEEK
XA_15:=(XA_13-XA_14)*2
XA_16:=MACD.DIF#MONTH
XA_17:=MACD.DEA#MONTH
XA_18:=(XA_16-XA_17)*2
XA_19:=(收盘价-36日内最低价最低值)/(36日内最高价最高值-36日内最低价最低值)
XA_19的3日[1日权重]移动平均
XA_20的3日[1日权重]移动平均
XA_22:=(收盘价-9日内最低价最低值)/(9日内最高价最高值-9日内最低价最低值)
XA_22的3日[1日权重]移动平均
XA_23的3日[1日权重]移动平均
XA_25:=3*XA_23-2*XA_24
XA_26:=KDJ.K#WEEK
XA_27:=KDJ.D#WEEK
XA_28:=KDJ.K#MONTH
XA_29:=KDJ.D#MONTH
XA_30:=MAX(收盘价的5日简单移动平均,收盘价的10日简单移动平均)
XA_31:=MIN(收盘价的5日简单移动平均,收盘价的10日简单移动平均)
XA_32:=收盘价>XA_30
XA_33:=收盘价 XA_34:=收盘价>=XA_31 AND 收盘价<=XA_30
XA_35:=MAX(收盘价的10日简单移动平均,收盘价的20日简单移动平均)
XA_36:=MIN(收盘价的10日简单移动平均,收盘价的20日简单移动平均)
XA_37:=收盘价>XA_35
XA_38:=收盘价 XA_39:=收盘价>=XA_36 AND 收盘价<=XA_35
XA_40:=MAX(收盘价的20日简单移动平均,收盘价的28日简单移动平均)
XA_41:=MIN(收盘价的20日简单移动平均,收盘价的28日简单移动平均)
XA_42:=收盘价>XA_40
XA_43:=收盘价 XA_44:=收盘价>=XA_41 AND 收盘价<=XA_40
XA_45:=MAX(收盘价的60日简单移动平均,收盘价的120日简单移动平均)
XA_46:=MIN(收盘价的60日简单移动平均,收盘价的120日简单移动平均)
XA_47:=收盘价>XA_45
XA_48:=收盘价 XA_49:=收盘价>=XA_36 AND 收盘价<=XA_35
XA_50:=MAX(INDEXC的60日简单移动平均,INDEXC的120日简单移动平均)
XA_51:=MIN(INDEXC的60日简单移动平均,INDEXC的120日简单移动平均)
XA_52:=INDEXC>XA_50
XA_53:=INDEXC XA_54:=INDEXC>=XA_51 AND INDEXC<=XA_50
XA_55:=XA_32 AND XA_37 AND XA_42 AND XA_47 AND XA_52
XA_56:=XA_9>0 AND XA_12>0 AND XA_15>0
XA_57:=XA_20>=XA_21 AND XA_23>=XA_24 AND XA_26>=XA_27 AND XA_28>=XA_29
XA_58:=XA_56 AND XA_57
XA_59:=XA_16>25日前的XA_16
XA_60:=XA_13>1日前的XA_13
XA_61:=XA_59 AND XA_60
XA_62:=XA_13上穿XA_14 AND XA_57 AND XA_13>1日前的XA_13
XA_63:=XA_56 AND XA_57 AND 1日前的XA_15<0 AND XA_13>1日前的XA_13
XA_64:=XA_15>0 AND 1日前的XA_12<0 AND XA_26>=XA_27 AND 1日前的XA_261日前的XA_13
XA_65:=XA_23上穿XA_24 AND (XA_24<40 OR XA_24>60)
XA_66:=XA_26上穿XA_27 AND (XA_27<40 OR XA_27>60)
XA_67:=XA_28上穿XA_29 AND (XA_29<40 OR XA_29>60)
XA_68:=XA_15>0 AND (XA_66 AND XA_65) OR (XA_66 AND XA_67) OR (XA_65 AND XA_67) OR (XA_65 AND XA_66 AND XA_67)
XA_69:=XA_56 AND XA_57 AND XA_18>0 AND XA_13>5日前的XA_13
XA_70:=XA_55 AND XA_69 AND 1日前的XA_69!=1 OR XA_69 AND XA_55 AND 1日前的XA_55!=1
XA_71:=XA_15>0 AND XA_18>0 AND 1日前的XA_18<0 AND XA_13>5日前的XA_13 AND DYNAINFO(17)>3
XA_72:=XA_62 OR XA_63 OR XA_68 OR XA_64 OR XA_71 OR XA_70
XA_73:=收盘价和开盘价的较小值-最低价<最高价-收盘价和开盘价较大值 AND 收盘价<1日前的收盘价
当满足条件XA_73时,在0和0.5之间画柱状线
当满足条件XA_72时,在0和1之间画柱状线
当满足条件XA_62时,在0.8和16位置书写文字
当满足条件XA_63时,在0.9和17位置书写文字
当满足条件XA_64时,在0.5和18位置书写文字
当满足条件XA_70时,在0.7和19位置书写文字
当满足条件XA_71时,在0.3和20位置书写文字
当满足条件XA_68时,在0.6和21位置书写文字
}

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

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