指标名
年线寻龙 通达信天罗地网主图指标
指标代码
年线:MA(CLOSE,250),LINETHICK1,COLORWHITE,DOTLINE;
E3:EMA(CLOSE,5),DOTLINE,COLORCYAN;
E5:EMA(CLOSE,8),DOTLINE,COLORCYAN;
E8:EMA(CLOSE,10),DOTLINE,COLORCYAN;
E10:EMA(CLOSE,12),DOTLINE,COLORCYAN;
E12:EMA(CLOSE,15),DOTLINE,COLORCYAN;
E30:EMA(CLOSE,60),DOTLINE,COLORGREEN;
E35:EMA(CLOSE,65),DOTLINE,COLORGREEN;
E40:EMA(CLOSE,70),DOTLINE,COLORGREEN;
E45:EMA(CLOSE,75),DOTLINE,COLORGREEN;
E50:EMA(CLOSE,80),DOTLINE,COLORGREEN;
VAR1:=IF(CLOSE>E3 AND LOW<E3,1,0);
VAR2:=IF(CLOSE>E5 AND LOW<E5,1,0);
VAR3:=IF(CLOSE>E8 AND LOW<E8,1,0);
VAR4:=IF(CLOSE>E10 AND LOW<E10,1,0);
VAR5:=IF(CLOSE>E12 AND LOW<E12,1,0);
VAR6:=IF(CLOSE>E30 AND LOW<E30,1,0);
VAR7:=IF(CLOSE>E35 AND LOW<E35,1,0);
VAR8:=IF(CLOSE>E40 AND LOW<E40,1,0);
VAR9:=IF(CLOSE>E45 AND LOW<E45,1,0);
VAR10:=IF(CLOSE>E50 AND LOW<E50,1,0);
VAR11:=VAR1+VAR2+VAR3+VAR4+VAR5;
VAR12:=VAR6+VAR7+VAR8+VAR9+VAR10;
VAR13:=MIN(MIN(MIN(MIN(E3,E5),E8),E10),E12);
VAR14:=MAX(MAX(MAX(MAX(E30,E35),E40),E45),E50);
VAR15:=(CLOSE/REF(CLOSE,1)-1)*100;
VAR16:=VAR11+VAR12>=8 AND VAR15>0;
VAR17:=EVERY(VAR13>VAR14,5) AND VAR11=5 AND VAR15>0;
VAR18:="RSI.RSI1#WEEK"(9);
VAR19:=CROSS(VAR18>50>REF(VAR18>50,1),0.5);
VAR20:=EMA(CLOSE,12)-EMA(CLOSE,26);
VAR21:=CROSS(VAR20,EMA(VAR20,9));
VAR22:=CROSS(EMA(VAR20,9),VAR20);
VAR23:=CONST(SUMBARS(VAR21,2)-BARSLAST(VAR22))>2;
VAR24:=SUMBARS(VAR21,2)-BARSLAST(VAR22);
VAR25:=CONST(FINDHIGHBARS(VAR20,BARSLAST(VAR22),VAR24,1))+1;
VAR26:=CONST(FINDLOWBARS(VAR20,BARSLAST(VAR21),VAR24,1))+1;
VAR28:=CONST(FINDHIGH(HIGH,BARSLAST(VAR22),VAR24,1));
VAR29:=CONST(FINDLOW(LOW,BARSLAST(VAR21),VAR24,1));{股口袋WWW.GUKOUDAI.COM}
IF(E3>REF(E3,1),E3,DRAWNULL),COLORMAGENTA;
IF(E5>REF(E5,1),E5,DRAWNULL),COLORMAGENTA;
IF(E8>REF(E8,1),E8,DRAWNULL),COLORMAGENTA;
IF(E10>REF(E10,1),E10,DRAWNULL),COLORMAGENTA;
IF(E12>REF(E12,1),E12,DRAWNULL),COLORMAGENTA;
IF(E30>REF(E30,1),E30,DRAWNULL),COLORRED;
IF(E35>REF(E35,1),E35,DRAWNULL),COLORRED;
IF(E40>REF(E40,1),E40,DRAWNULL),COLORRED;
IF(E45>REF(E45,1),E45,DRAWNULL),COLORRED;
IF(E50>REF(E50,1),E50,DRAWNULL),COLORRED;
STICKLINE(VAR16,OPEN,CLOSE,3,0),COLORYELLOW;
STICKLINE(VAR17,OPEN,CLOSE,3,0),COLORMAGENTA;
DRAWTEXT(VAR19,LOW, '阶底'),COLORGREEN;
前高:IF(VAR23,IF(CURRBARSCOUNT<=VAR25,VAR28,DRAWNULL),DRAWNULL),COLORMAGENTA,DOTLINE;
前低:IF(VAR23,IF(CURRBARSCOUNT<=VAR26,VAR29,DRAWNULL),DRAWNULL),COLORGREEN,DOTLINE;
代码释义
MA 函数用于计算简单移动平均线。
EMA 函数用于计算指数移动平均线。
LINETHICK 参数用于设置线的宽度。
COLOR 参数用于设置线的颜色。
DOTLINE 参数表示线的样式为点线