VAR1:=(H+L+O+C*2)/5;
VAR2:=EMA(VAR1,21);
VAR3:=STD(VAR1,23);
VAR4:=EMA(VAR1,2);
VARA:=(VAR1-VAR2)*100/VAR3;
K:=(EMA(VARA,23)+100)/2-3,COLOR00FFFF,DOTLINE;
D:SMA(K,5,1),COLORFFFF00,DOTLINE;
J:4*K-3*D,COLORFF00FF,LINETHICK2;
IF(J>REF(J,1),J,DRAWNULL)COLORRED,LINETHICK2;
IF(J<=REF(J,1),J,DRAWNULL)COLORBLUE,LINETHICK2;
BU1:=FILTER(J>REF(J,1)AND J<REF(J,3)
AND J<K AND VAR4>REF(VAR4,1)
AND K>=REF(K,1) AND J<40
OR crOSS(J,K) AND CROSS(J,D)
AND J<40 OR J>REF(J,1) AND J<-20,7),COLORRED,NODRAW;
SE2:=FILTER(J<=REF(J,1) AND J>80,8),COLORCYAN,NODRAW;
买入:TTFILTER(BU1,SE2,SE2,BU1,4),COLORRED,NODRAW;
卖出:TTFILTER(BU1,SE2,SE2,BU1,3),COLORCYAN,NODRAW;
DRAWICON(买入,J*0.95,1);
DRAWICON(卖出,J*1.05,2);
趋势维持线:EMA(J,5),COLORYELLOW;
声明:本站所有文章,如无特殊说明或标注,均为本站原创发布。任何个人或组织,在未征得本站同意时,禁止复制、盗用、采集、发布本站内容到任何网站、书籍等各类媒体平台。如若本站内容侵犯了原著者的合法权益,可联系我们进行处理。
评论(0)