通达信黄金阶梯精品主图公式
高1:=REF(HHV(H,120),3);
低1:=REF(LLV(L,120),3);H1:=高1-(高1-低1)*0.191;
H2:=高1-(高1-低1)*0.382;
H3:=高1-(高1-低1)*0.5;
H4:=高1-(高1-低1)*0.618;
H5:=高1-(高1-低1)*0.809;
突破:=REF(EMA(C,14),1);
A1X:=(EMA(C,10)-突破)/突破*100;
基准:=IF(A1X>=0,REF(EMA(C,10),BARSLAST(CROSS(A1X,0))+1),REF(EMA(C,10),BARSLAST(CROSS(0,A1X))+1));
STICKLINE(A1X>=0,基准,突破,3,0),COLOR000099;
STICKLINE(A1X<0,基准,突破,3,0),COLOR00CC66;
DRAWKLINE(H,O,L,C);
X1:=(C+L+H)/3;
X2:=EMA(X1,6);
X3:=EMA(X2,5);
STICKLINE(X2>=X3,LOW,HIGH,0.1,1),COLORRED;
STICKLINE(X2<X3,LOW,HIGH,0.1,1),COLORGREEN;
STICKLINE(X2>=X3,CLOSE,OPEN,2,2),COLORRED;
STICKLINE(X2>=X3,CLOSE,OPEN,3.2,0),COLOR000055;
STICKLINE(X2>=X3,CLOSE,OPEN,2.7,0),COLOR000077;
STICKLINE(X2>=X3,CLOSE,OPEN,2.1,0),COLOR000099;
STICKLINE(X2>=X3,CLOSE,OPEN,1.5,0),COLOR0000BB;
STICKLINE(X2>=X3,CLOSE,OPEN,0.9,0),COLOR0000DD;
STICKLINE(X2<X3,CLOSE,OPEN,3.2,0),COLOR006000,;
STICKLINE(X2<X3,CLOSE,OPEN,2.7,0),COLOR007500,;
STICKLINE(X2<X3,CLOSE,OPEN,2.1,0),COLOR009100,;
STICKLINE(X2<X3,CLOSE,OPEN,1.5,0),COLOR00A600,;
STICKLINE(X2<X3,CLOSE,OPEN,0.9,0),COLOR00BB00,;
STICKLINE(X2<X3,CLOSE,OPEN,0.3,0),COLOR00CC00,;
STICKLINE(CROSS(X2,X3),OPEN,CLOSE,3.2,0),COLORF000AA,;
STICKLINE(CROSS(X2,X3),OPEN,CLOSE,2.7,0),COLORF000BB,;
STICKLINE(CROSS(X2,X3),OPEN,CLOSE,2.1,0),COLORF000CC,;
STICKLINE(CROSS(X2,X3),OPEN,CLOSE,1.5,0),COLORF000DD,;
STICKLINE(CROSS(X2,X3),OPEN,CLOSE,0.9,0),COLORF000EE,;
STICKLINE(CROSS(X2,X3),OPEN,CLOSE,0.3,0),COLORF000FF,;
STICKLINE(CROSS(X3,X2),OPEN,CLOSE,3.2,0),COLORB20000;
STICKLINE(CROSS(X3,X2),OPEN,CLOSE,2.7,0),COLOREC0000;
STICKLINE(CROSS(X3,X2),OPEN,CLOSE,2.1,0),COLORFF4600;
STICKLINE(CROSS(X3,X2),OPEN,CLOSE,1.5,0),COLORFF6300;
STICKLINE(CROSS(X3,X2),OPEN,CLOSE,0.3,0),COLORFFAB00;
石:=(HHV(HIGH,21)-CLOSE)/(HHV(HIGH,21)-LLV(LOW,21))*100-10;
榴:=(CLOSE-LLV(LOW,21))/(HHV(HIGH,21)-LLV(LOW,21))*100;
花:=SMA(石,13,8);
开:=CEILING(SMA(榴,13,8));
编著:=SMA(花,21,8);
主力潜伏:=COUNT(开-编著<30,30)=30,NODRAW;
GX:=REF(主力潜伏,1)=1 AND 主力潜伏<1 ,NODRAW;
主力进场:IF(GX,30,0),COLORMAGENTA,LINETHICK3,NODRAW;
DRAWTEXT(GX,L*0.96,'【主力进场】'),COLORCYAN;
STICKLINE(GX,CLOSE,OPEN,3,0),COLORYELLOW,LINETHICK3;
STICKLINE(GX,L*0.98,L*0.97,5,0),COLORCYAN,LINETHICK3;
STICKLINE(GX,L*0.96,L*0.95,5,0),COLORYELLOW,LINETHICK3;
BB13:=ATAN(EMA((C+L+H)/3,13)-REF(EMA((C+L+H)/3,13),1))*3.1416*10;
MAVOL3:=MA(VOL,60);
MAVOB:=HHV(VOL,60);
MAVLB:=LLV(VOL,60);
VAR1001:=ZIG(3,10)<REF(ZIG(3,10),1) AND REF(ZIG(3,10),1)>REF(ZIG(3,10),2);
VAR2002:=ZIG(3,10)>REF(ZIG(3,10),1) AND REF(ZIG(3,10),1)<REF(ZIG(3,10),2);
STICKLINE(VAR1001,C,O,3,0),COLORYELLOW,LINETHICK2;
STICKLINE(VAR1001,H,L,1,0),COLORYELLOW,LINETHICK2;
STICKLINE(VAR2002,C,O,3,0),COLORFF00FF,LINETHICK2;
STICKLINE(VAR2002,H,L,1,0),COLORFF00FF,LINETHICK2;