天宫印 副图指标CXH1:=(2*CLO...
天宫印 副图指标
CXH1:=(2*CLOSE+HIGH+LOW)/4;
CXH2:=EMA(CXH1,4);
CXH3:=EMA(CXH2,4);
CXH4:=EMA(CXH3,4);
VAR1:=(CXH4-REF(CXH4,1))/REF(CXH4,1)*1000;
VAR2:=(CLOSE-LLV(LOW,20))/(HHV(HIGH,20)-LLV(LOW,20))*100;
VAR3:=SMA(SMA(VAR2,3,1),3,1)/28.57;
VAR4:=EMA(VAR3,5);
操盘:=3*VAR3-2*VAR4;
A1:=CROSS(操盘,VAR3) AND VAR3<2.1 AND C>O;
天官印:A1,LINETHICK;
STICKLINE(A1,33,18,9,0),COLORWHITE;
DRAWTEXT(A1,26,'天官印'),COLOR0080FF;
STICKLINE(VAR1>=0,VAR1,0,2,0),COLORRED;
STICKLINE(VAR1<0,VAR1,0,2,0),COLORGREEN;
GZ:=AMOUNT/VOL/100;
ZBIAO:=MA(GZ,13);
ZBIAO1:=EMA(VOL,13);
ZBIAO2:=EMA(AMOUNT,13);
ZBIAO3:=ZBIAO2/ZBIAO1/100;
ZBIAO4:=(CLOSE-ZBIAO3)/ZBIAO3*100;
ZBIAO5:=EMA(VOL/CAPITAL*100,13);
ZERO:0,COLORWHITE;
DRAWTEXT_FIX(CURRBARSCOUNT=120,0.4,0.01,0,''),COLORGREEN;
STICKLINE(ZBIAO5>6.1 AND ZBIAO4>5,2,0,2,0),COLORGREEN;
STICKLINE(ZBIAO5>3.8 AND ZBIAO4>5,1.5,0,2,0),COLORYELLOW;
STICKLINE(ZBIAO5>2.1 AND ZBIAO4>5,1,0,2,0),COLORCYAN;
STICKLINE(ZBIAO5>1.8 AND ZBIAO4>5,0.5,0,2,0),COLORBLUE;