一线乾坤 低位金叉 通达信副图指标 源码 贴图
指数:INDEXC,NODRAW;涨跌:INDEXC-REF(INDEXC,1),NODRAW;
月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;
VAR1:=DRAWTEXT(MACDF周金叉=1,0.35,0.5115);
VAR2:=EMA(CLOSE,12)-EMA(CLOSE,26);
DRAWTEXT_FIX(1,0,0,0,9),COLORRED;
VAR3:=EMA(VAR2,9);
MACDF:(VAR2-VAR3)*2,COLORSTICK;
VAR4:=EMA(VAR2,9);
VAR5:=VAR2 VAR4;
VAR6:=VAR2 VAR4;
低位金叉:IF(CROSS(VAR2,VAR3) AND VAR2 (-0.1),MACDF+0.03,DRAWNULL),CROSSDOT,COLORRED,LINETHICK3;
TDXSTEP282:IF(CROSS(VAR2,VAR3) AND VAR2 (-0.1),MACDF+0.06,DRAWNULL),CIRCLEDOT,COLORYELLOW,LINETHICK5;
DRAWICON(TDXSTEP282 0,MACDF+0.1,1);
VAR7:=EMA(CLOSE,12/2)-EMA(CLOSE,26/2);
VAR8:=EMA(VAR7,9/2);
VAR9:=(VAR7-VAR8)*2;
VAR10:=EMA(CLOSE,12)-EMA(CLOSE,26);
VAR11:=EMA(VAR10,9);
VAR12:=(VAR10-VAR11)*2;
VAR13:=MACD.DIF#WEEK;
VAR14:=MACD.DEA#WEEK;
VAR15:=(VAR13-VAR14)*2;
VAR16:=MACD.DIF#MONTH;
VAR17:=MACD.DEA#MONTH;
VAR18:=(VAR16-VAR17)*2;
VAR19:=(CLOSE-LLV(LOW,36))/(HHV(HIGH,36)-LLV(LOW,36));
VAR20:=SMA(VAR19,3,1);
VAR21:=SMA(VAR20,3,1);
VAR22:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9));
VAR23:=SMA(VAR22,3,1);
VAR24:=SMA(VAR23,3,1);
VAR25:=3*VAR23-2*VAR24;
VAR26:=KDJ.K#WEEK;
VAR27:=KDJ.D#WEEK;
VAR28:=KDJ.K#MONTH;
VAR29:=KDJ.D#MONTH;
VAR30:=MAX(MA(CLOSE,5),MA(CLOSE,10));
VAR31:=MIN(MA(CLOSE,5),MA(CLOSE,10));
VAR32:=CLOSE VAR30;
VAR33:=CLOSE VAR31;
VAR34:=CLOSE =VAR31 AND CLOSE =VAR30;
VAR35:=MAX(MA(CLOSE,10),MA(CLOSE,20));
VAR36:=MIN(MA(CLOSE,10),MA(CLOSE,20));
VAR37:=CLOSE VAR35;
VAR38:=CLOSE VAR36;
VAR39:=CLOSE =VAR36 AND CLOSE =VAR35;
VAR40:=MAX(MA(CLOSE,20),MA(CLOSE,28));
VAR41:=MIN(MA(CLOSE,20),MA(CLOSE,28));
VAR42:=CLOSE VAR40;
VAR43:=CLOSE VAR41;
VAR44:=CLOSE =VAR41 AND CLOSE =VAR40;
VAR45:=MAX(MA(CLOSE,60),MA(CLOSE,120));
VAR46:=MIN(MA(CLOSE,60),MA(CLOSE,120));
VAR47:=CLOSE VAR45;
VAR48:=CLOSE VAR46;
VAR49:=CLOSE =VAR36 AND CLOSE =VAR35;
VAR50:=MAX(MA(INDEXC,60),MA(INDEXC,120));
VAR51:=MIN(MA(INDEXC,60),MA(INDEXC,120));
VAR52:=INDEXC VAR50;
VAR53:=INDEXC VAR51;
VAR54:=INDEXC =VAR51 AND INDEXC =VAR50;
VAR55:=VAR32 AND VAR37 AND VAR42 AND VAR47 AND VAR52;
VAR56:=VAR9 0 AND VAR12 0 AND VAR15
VAR57:=VAR20 =VAR21 AND VAR23 =VAR24 AND VAR26 =VAR27 AND VAR28 =VAR29;
VAR58:=VAR56 AND VAR57;
VAR59:=VAR16 REF(VAR16,25);
VAR60:=VAR13 REF(VAR13,1);
VAR61:=VAR59 AND VAR60;
VAR62:=CROSS(VAR13,VAR14) AND VAR57 AND VAR13 REF(VAR13,1);
VAR63:=VAR56 AND VAR57 AND REF(VAR15 0,1) AND VAR13 REF(VAR13,1);
VAR64:=VAR15 0 AND REF(VAR12 0,1) AND VAR26 =VAR27 AND REF(VAR26 VAR27,1) AND VAR13 REF(VAR13,1);
VAR65:=CROSS(VAR23,VAR24) AND (VAR24 40 OR VAR24
VAR66:=CROSS(VAR26,VAR27) AND (VAR27 40 OR VAR27
VAR67:=CROSS(VAR28,VAR29) AND (VAR29 40 OR VAR29
VAR68:=VAR15 0 AND (VAR66 AND VAR65) OR (VAR66 AND VAR67) OR (VAR65 AND VAR67) OR (VAR65 AND VAR66 AND VAR67);
VAR69:=VAR56 AND VAR57 AND VAR18 0 AND VAR13 REF(VAR13,5);
VAR70:=VAR55 AND VAR69 AND REF(VAR69!=1,1) OR VAR69 AND VAR55 AND REF(VAR55!=1,1);
VAR71:=VAR15 0 AND VAR18 0 AND REF(VAR18 0,1) AND VAR13 REF(VAR13,5) AND DYNAINFO(17)
VAR72:=VAR62 OR VAR63 OR VAR68 OR VAR64 OR VAR71 OR VAR70;
VAR73:=MIN(CLOSE,OPEN)-LOW HIGH-MAX(CLOSE,OPEN) AND CLOSE REF(CLOSE,1);
STICKLINE(VAR73,0,0.5,1,1),COLORGREEN,LINETHICK2;
STICKLINE(VAR72,0,1,1,0),COLORRED;
TDXSTEP101:DRAWTEXT(VAR62,0.8,16),COLORYELLOW;
TDXSTEP102:DRAWTEXT(VAR63,0.9,17),COLORYELLOW;
TDXSTEP103:DRAWTEXT(VAR64,0.5,18),COLORYELLOW;
TDXSTEP105:DRAWTEXT(VAR70,0.7,19),COLORYELLOW;
TDXSTEP106:DRAWTEXT(VAR71,0.3,20),COLORYELLOW;
TDXSTEP108:DRAWTEXT(VAR68,0.6,21),COLORYELLOW;