DRAWTEXT_FIX(ISLASTBAR,0.5,0,0,HYBLOCK),COLORRED;
DRAWTEXT_FIX(ISLASTBAR,0.5,0.05,0,DYBLOCK),COLORRED;
DRAWTEXT_FIX(ISLASTBAR,0.5,0.1,0,GNBLOCK),COLORRED;
STICKLINE(CLOSE/REF(CLOSE,1) =1.097 AND HIGH LOW,CLOSE,OPEN,3,0),COLORMAGENTA;
STICKLINE(REF(CLOSE,1)/CLOSE =1.097 AND HIGH LOW,CLOSE,OPEN,3,0),COLORLIBLUE;
STICKLINE(HIGH/REF(CLOSE,1) =1.097 AND HIGH CLOSE,HIGH,CLOSE,0,0),COLORMAGENTA;
STICKLINE(REF(CLOSE,1)/LOW =1.097 AND HIGH LOW,CLOSE,LOW,0,0),COLORLIBLUE;
涨幅:=(C/REF(C,1)-1)*100;{九毛八公式指标网www.9m8.cn}
X_1:=EMA(100*(CLOSE-LLV(LOW,34))/(HHV(HIGH,34)-LLV(LOW,34)),3);
X_2:=65;
X_3:=80;
X_4:=50;
X_5:=20;
MA1:MA(CLOSE,5);
MA2:MA(CLOSE,10);
MA3:MA(CLOSE,60);
X_6:=CROSS(MA1,MA2);
X_7:=CROSS(X_1,X_5);
X_8:=X_6 AND X_7 AND CROSS(HIGH,MA(CLOSE,10));
DRAWTEXT(CROSS(X_1,X_3) AND 涨幅 5,MA2,'爆发'),COLORYELLOW;
STICKLINE(CROSS(X_1,X_3) AND 涨幅 5,CLOSE,OPEN,3,0),COLORYELLOW;
DRAWTEXT(X_8 AND 涨幅 5,MA3,'吸筹'),COLORWHITE;
DRAWTEXT(CROSS(X_1,X_4) AND 涨幅 5,LOW*0.94,'加仓'),COLORMAGENTA;
DRAWTEXT(CROSS(X_1,X_2) AND 涨幅 5,LOW*0.96,'加仓'),COLORMAGENTA;
DRAWTEXT(CROSS(X_3,X_1) AND 涨幅 5,HIGH*1.01,'减仓'),COLORGREEN;