N:=5;
N1:=8;
VAR2:=8;
MA5:=MA(C,5);
MA10:MA(CLOSE,10);
MA20:EMA(C,14);
MA60:MA(CLOSE,60);
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);
操作:IF(MA5>MA20,MA5,MA20);
乖离:(L/MA20-1)*100,COLORFF00FF,NODRAW;
乖离1:(H/MA20-1)*100,COLORFF00FF,NODRAW;
BB:=REF(INDEXC,1)<REF(INDEXC,2) AND REF(C,2)*0.95>=REF(C,1) AND REF(O,
1)/REF(C,1)>=1.05 AND REF(C,1)<REF(O,1) AND C>O AND C/O>=1.05 AND C>REF(O,1) AND REF(vol,1)<REF(VOL,2);
STICKLINE(乖离1>=12,C,(O+C)/2,3,0),colorred;
STICKLINE(乖离<-15,C,(O+C)/2,3,0),COLORFF00FF;
STICKLINE(crOSS(C,MA20),H,L,1,0),coloryellow;
STICKLINE(CROSS(MA5,C),H,L,1,0),colorblue;
STICKLINE(BB,O,C,4,0),colorred;
STICKLINE(BB,O,H,0,0),colorred;
STICKLINE(BB,L,C,0,0),colorred;
DRAWTEXT(BB,L*0.98,’追!’),coloryellow;
IF(操作>=REF(操作,1),操作,DRAWNULL),colorred,LINETHICK2;
CC:=CROSS(VAR1,VAR2);
LC:=REF(CLOSE,1);
rsi:=(SMA(MAX(CLOSE-LC,0),6,1))/(SMA(Abs(CLOSE-LC),6,1))*100;
DRAWTEXT(CROSS(zig(3,8),REF(ZIG(3,8),1)),LOW*0.978,’见机买入’),colorred;

声明:本站所有文章,如无特殊说明或标注,均为本站原创发布。任何个人或组织,在未征得本站同意时,禁止复制、盗用、采集、发布本站内容到任何网站、书籍等各类媒体平台。如若本站内容侵犯了原著者的合法权益,可联系我们进行处理。