X_1:=REF(EMA((H+L+C)/3,9),1);
X_2:=EMA(HHV(HIGH,9),3);
X_3:=EMA(LLV(LOW,9),3);
主力操盘线:EMA(X_1*2-X_3,5),COLORMAGENTA,LINETHICK2;
NOTEXT11:IF(CLOSE<主力操盘线,主力操盘线,DRAWNULL),COLORLIGREEN,LINETHICK2;
DRAWKLINE(HIGH,OPEN,LOW,CLOSE);
X_5:=(REF(CLOSE,1)-CLOSE)/REF(CLOSE,1)*100>=10;
STICKLINE(X_5,CLOSE,OPEN,2,0),COLORGREEN;
X_6:=DMA(CLOSE,VOL/CAPITAL);
X_7:=(CLOSE/REF(CLOSE,1)-1)*100>7;
X_8:=(CLOSE/REF(CLOSE,1)-1)*100<=(-3);
X_9:=OPEN<主力操盘线 AND CLOSE>主力操盘线 AND X_7;
STICKLINE(X_9,OPEN,CLOSE,3,0),COLORYELLOW;
DRAWTEXT(X_9,LOW*0.95,'↑主力进')COLORYELLOW;
CPR:=CLOSE=OPEN OR (CLOSE+0.005-REF(CLOSE,1))/REF(CLOSE,1)*100>=10;
STICKLINE(CPR,CLOSE,OPEN,1.7,0),COLOR00CCEE;
STICKLINE(CPR,LOW,HIGH,0,0),COLOR00AACC;
CPR1:=(CLOSE-REF(CLOSE,1))/REF(CLOSE,1)*100>=6.98;
STICKLINE(CPR1,CLOSE,CLOSE*1,1.7,0),COLOR00DDDD;
STICKLINE(CPR1,CLOSE,CLOSE*1,0,0),COLOR00AACC;
CPR2:=(CLOSE-REF(CLOSE,1))/REF(CLOSE,1)*100>4.99;
STICKLINE(CPR2,OPEN,OPEN*1,1.7,0),COLOR00DDDD;
STICKLINE(CPR2,OPEN,OPEN*1,0,0),COLOR00AACC;
DRAWTEXT_FIX(1,0.01,0.17,0,GNBLOCK),COLORMAGENTA;
DRAWTEXT_FIX(1,0.01,0.01,0,HYBLOCK),COLORRED;
DRAWTEXT_FIX(1,0.01,0.08,0,DYBLOCK),COLORYELLOW;