止损加仓
2016-5-16 16:17:25点击:
N1:=9;
LC := REF(CLOSE,1);
RSI:=SMA(MAX(CLOSE-LC,0),N1,1)/SMA(ABS(CLOSE-LC),N1,1)*100;
STICKLINE((REF(RSI,1)>=80 AND RSI<80),LOW,HIGH,0.8,0),coloryellow;
STICKLINE((REF(RSI,1)>=80 AND RSI<80),CLOSE,OPEN,8,0),coloryellow;
STICKLINE((REF(RSI,1)<=20 AND RSI>20),LOW,HIGH,0.8,0),colorblue;
STICKLINE((REF(RSI,1)<=20 AND RSI>20),CLOSE,OPEN,8,0),colorblue;X1:EMA(C,8),colorwhite;
X2:EMA(C,20),coloryellow;
X3:EMA(X2,20),colorgreen;
VAR4: EMA(CLOSE,8),colorwhite;
VAR5: EMA(CLOSE,20),coloryellow;
STICKLINE(VAR4>VAR5,VAR5,VAR4,0.01,0),colorred;
STICKLINE(VAR4<VAR5,VAR4,VAR5,0.01,0),coloryellow;
DRAWTEXT(CROSS(VAR5,VAR4),VAR4,'★止损'),colorgreen;
DRAWTEXT(CROSS(VAR4,VAR5),VAR4,'★加仓'),colorred;