通达信黑马王指标公式源码附图通达信公式
2017-09-29 来源:网络 编辑:翔博软件
P:=2; M:=20; M1:=55; W:=21; P3:=500; N9:=89; VAR1:=MA(CLOSE,18); VAR2:=(CLOSE-VAR1)/VAR1*100; VAR3:=MA(VAR2,1); 黑马王 趋势 :VAR3; VAR4:=BARSLAST(CROSS(-10,VAR3)=1)
P:=2;
M:=20;
M1:=55;
W:=21;
P3:=500;
N9:=89;
VAR1:=MA(CLOSE,18);
VAR2:=(CLOSE-VAR1)/VAR1*100;
VAR3:=MA(VAR2,1);
黑马王趋势:VAR3;
VAR4:=BARSLAST(CROSS(-10,VAR3)=1);
VAR5:=BARSLAST(CROSS(VAR3,10)=1);
VAR6:=VAR3<-10 AND VAR4>=5;
VAR7:=VAR3>10 AND VAR5>=5;
C1:=IF(VAR3<-10 AND VAR4<=5,VAR3,0);
白马王: C1, COLORYELLOW,LINETHICK3;
C3:=IF(VAR3>10 AND VAR5<=5,VAR3,0);
黑马王: C3,COLORRED,LINETHICK3;