涨跌动能线:EMA(C,5),COLORFFFFFF; 进出决策线:EMA(C,21),COLOREE00EE,LINETHICK1;
IF(进出决策线<REF(进出决策线,1),进出决策线,DRAWNULL),colorgreen;
多空趋势线:EMA(C,99),colorgreen,LINETHICK1;
DRAWTEXT(CROSS(C,进出决策线),L*1.00,'←满仓'),coloryellow;
DRAWTEXT(CROSS(进出决策线,C),H*1.00,'←清仓'),COLORFFFFFF;
DRAWICON(CROSS(涨跌动能线,进出决策线),进出决策线*1.00,5);
DRAWICON(CROSS(进出决策线,涨跌动能线),进出决策线*1.00,6);
W1:=C=HHV(C,21);
W2:=BARSLAST(W1);
W3:=IF(W2>0,REF(C,W2),REF(C,W2));
W4:=CROSS(C,REF(W3,1));
突破盘整:=W4 AND COUNT(W4,5)=1;
DRAWICON(突破盘整,L-0.10,1);
STICKLINE(C>=O,C,O,3.0,0),colorred;
STICKLINE(C<O,C,O,3.0,0),COLOR00CD00;
STICKLINE(1,C,O,0,0),COLORCCCCCC;
|
