通达信量启动指标公式
时间:2025-01-15 14:01:15 阅读:6
指数: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;};
关键词:
上一篇: 通达信量价抄底主图指标公式
下一篇: 通达信精选二板选股指标公式