通达信金山银山主图指标
源码
MA1:MA(CLOSE,15); MA66:=MA(C,2); MA6:MA(C,5); MA18:MA(C,10); TY:=C; A1:=REF(TY,10)=HHV(TY,2*10+1); B1:=FILTER(A1,10); C1:=BACKSET(B1,10+1); HD:=FILTER(C1,10); A2:=REF(TY,10)=LLV(TY,2*10+1); B2:=FILTER(A2,10); C2:=BACKSET(B2,10+1); LD:=FILTER(C2,10); A:=REF(C,BARSLAST(HD)); B:=REF(L,BARSLAST(LD)); T1:=BARSLAST(HD) T2:=BARSLAST(HD)>BARSLAST(LD) AND NOT(LD); 顶:IF(T1,A,A),COLORYELLOW,POINTDOT; 底:IF(T2,B,B),COLORGREEN,POINTDOT; VAR1:=IF(1.1>SMA(CLOSE,2,1)/SMA(CLOSE,13,2)>1.05,SMA(HIGH,21,5)*1.05,SMA(HIGH,21,2)*1.05),POINTDOT,COLORFF6600; VAR2:=IF(1.09>SMA(CLOSE,5,1)/SMA(CLOSE,15,1)>0.45,SMA(LOW,10,1),SMA(LOW,5,1)),POINTDOT,COLORF00FF0; VAR3:=IF(MA(VOL,2)>MA(VOL,3)/2>MA(VOL,5), SMA(HIGH,2,1),SMA(CLOSE,3,1)) ,COLORFFFFFF; 买入1:=DRAWTEXT(CROSS(VAR3,MA1),VAR2,'马'),COLORMAGENTA; 买入2:=DRAWTEXT(CROSS(VAR3,VAR1),VAR2,'牛'),COLORCYAN; STICKLINE(买入1,H,L,0,1),COLORYELLOW,LINETHICK2; STICKLINE(买入1,O,C,4,1),COLORYELLOW,LINETHICK2; DRAWTEXT(CROSS(MA6,顶),VAR2,'追1'),COLORMAGENTA; DRAWTEXT(CROSS(MA18,顶),VAR2,'追2'),COLORCYAN;
移动端首页 | PC端
© by gszx.com.cn Mobile Web
通达信金山银山主图指标
源码
MA1:MA(CLOSE,15);
MA66:=MA(C,2);
MA6:MA(C,5);
MA18:MA(C,10);
TY:=C;
A1:=REF(TY,10)=HHV(TY,2*10+1); B1:=FILTER(A1,10); C1:=BACKSET(B1,10+1); HD:=FILTER(C1,10);
A2:=REF(TY,10)=LLV(TY,2*10+1); B2:=FILTER(A2,10); C2:=BACKSET(B2,10+1); LD:=FILTER(C2,10);
A:=REF(C,BARSLAST(HD)); B:=REF(L,BARSLAST(LD));
T1:=BARSLAST(HD)
T2:=BARSLAST(HD)>BARSLAST(LD) AND NOT(LD);
顶:IF(T1,A,A),COLORYELLOW,POINTDOT;
底:IF(T2,B,B),COLORGREEN,POINTDOT;
VAR1:=IF(1.1>SMA(CLOSE,2,1)/SMA(CLOSE,13,2)>1.05,SMA(HIGH,21,5)*1.05,SMA(HIGH,21,2)*1.05),POINTDOT,COLORFF6600;
VAR2:=IF(1.09>SMA(CLOSE,5,1)/SMA(CLOSE,15,1)>0.45,SMA(LOW,10,1),SMA(LOW,5,1)),POINTDOT,COLORF00FF0;
VAR3:=IF(MA(VOL,2)>MA(VOL,3)/2>MA(VOL,5), SMA(HIGH,2,1),SMA(CLOSE,3,1)) ,COLORFFFFFF;
买入1:=DRAWTEXT(CROSS(VAR3,MA1),VAR2,'马'),COLORMAGENTA;
买入2:=DRAWTEXT(CROSS(VAR3,VAR1),VAR2,'牛'),COLORCYAN;
STICKLINE(买入1,H,L,0,1),COLORYELLOW,LINETHICK2;
STICKLINE(买入1,O,C,4,1),COLORYELLOW,LINETHICK2;
DRAWTEXT(CROSS(MA6,顶),VAR2,'追1'),COLORMAGENTA;
DRAWTEXT(CROSS(MA18,顶),VAR2,'追2'),COLORCYAN;