N:=5;
VAR1:=4*SMA((CLOSE-LLV(LOW,5))/(HHV(HIGH,5)-LLV(LOW,5))*100,5,1)-
3*SMA(SMA((CLOSE-LLV(LOW,5))/(HHV(HIGH,5)-LLV(LOW,5))*100,5,1),3.2,1);
VAR2:=8;
LC:=REF(CLOSE,1);
RSI:=((SMA(MAX((CLOSE - LC),0),3,1) / SMA(ABS((CLOSE - LC)),3,1)) * 100);
卖:CROSS(88,RSI),STICK,LINETHICK1,COLORFFFF00;
DRAWTEXT(卖>0,0.7,'  ★卖'),COLORFFFF00;
STICKLINE(卖,0,1,3,0),COLORBBBB00;
买:CROSS(VAR1,VAR2),COLOR00FFFF,STICK,LINETHICK1;
DRAWTEXT(买>0,0.6,'  ★买'),COLOR00FFFF;
STICKLINE(买,0,1,3,0),COLOR0000FF;
量:=IF(CURRBARSCOUNT=1 AND PERIOD=5,VOL*240/FROMOPEN,DRAWNULL);
放量:FILTER(IF(FROMOPEN<220,量,VOL)>2*((REF(VOL,1)+REF(VOL,2)+REF(VOL,3)+REF(VOL,4))/4) AND C>O,5),STICK,LINETHICK1,COLORFFFFFF;
DRAWTEXT(放量>0,0.8,'★放量'),COLOR00FFFF;
EMA3:=EMA(C,3);
EMA13:=EMA(C,13);
EMA21:=EMA(C,21);
HR2:=EMA3>=REF(EMA3,3) AND EMA13>=REF(EMA13,1) AND EMA21>=REF(EMA21,1) AND CROSS(C,EMA3) AND CROSS(C,EMA13) AND CROSS(C,EMA21);
止跌买:HR2 AND FILTER(HR2,10),COLOR4080FF,STICK,LINETHICK1;
DRAWTEXT(止跌买>0,0.2,'★止跌买'),COLORFFFFFF;
加:CROSS(MA(C,3),MA(C,9)) AND C>=REF(C,1) AND C>O,COLORFFFFFF,STICK,LINETHICK1;
DRAWTEXT(加>0,0.5,'★加'),COLORFFFFFF;字符串截取指令
A0:=(L+H+C*2)/4;
A1:=EMA(A0,N);
A1X:=(A1-REF(A1,1))/REF(A1,1)*100;
清:IF(A1X<0 AND REF(A1X,1)>=0 ,1,0),COLORFFFF15,STICK,LINETHICK1;
DRAWTEXT(清>0,0.5,'★减'),COLORFFFF15;
MTM:=C-REF(C,1);
DX:=100*EMA(EMA(MTM,6),6)/EMA(EMA(ABS(MTM),6),6);
YXF:=IF(LLV(DX,2)=LLV(DX,7) AND COUNT(DX<0,2) AND CROSS(DX,MA(DX,2)),1,0);
短线:IF(FILTER(YXF=1,5),20,-10)=20,STICK,LINETHICK1;
DRAWTEXT(短线>0,0.4,'★短线'),COLOR00FFFF;

版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系QQ:729038198,我们将在24小时内删除。