以下是波段稳赢选股与波段稳赢交易对应

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,0);

买:=(ZIG(3,5)>REF(ZIG(3,5),1)) AND (REF(ZIG(3,5),1)<=REF(ZIG(3,5),2)) AND (REF(ZIG
 (3,5),2)<=REF(ZIG(3,5),3));
卖:=(ZIG(3,5)<REF(ZIG(3,5),1)) AND (REF(ZIG(3,5),1)>=REF(ZIG(3,5),2)) AND (REF(ZIG
 (3,5),2)>=REF(ZIG(3,5),3));

 P1:=5;
 P2:=4;
 VARA:=LLV(LOW,P1);
 VARB:=HHV(HIGH,P1);
 K:= EMA((CLOSE-VARA)/(VARB-VARA)*100,P2);
 D:= EMA(0.667*REF(K,1)+0.333*K,2);
 BBIS:=(MA(CLOSE,2)+MA(CLOSE,3)+MA(CLOSE,5))/3;

 XG:加仓=20 OR CROSS(K,D);

 

ZIG(3,5). 使用了这个未来函数,但是请仔细参看我的运用语句:
 买:=(ZIG(3,5)>REF(ZIG(3,5),1)) AND (REF(ZIG(3,5),1)<=REF(ZIG(3,5),2)) AND (REF(ZIG(3,5),2)<=REF(ZIG(3,5),3));
卖:=(ZIG(3,5)<REF(ZIG(3,5),1)) AND (REF(ZIG(3,5),1)>=REF(ZIG(3,5),2)) AND (REF(ZIG(3,5),2)>=REF(ZIG(3,5),3));

有很多条件所以几乎不会漂移。

 如果有顾虑可替换成:
 买:=(CLOSE>REF(CLOSE,1)) AND (REF(CLOSE,1)<=REF(CLOSE,2)) AND (REF(CLOSE,2)<=REF(CLOSE,3));
卖:=(CLOSE<REF(CLOSE,1)) AND (REF(CLOSE,1)>=REF(CLOSE,2)) AND (REF(CLOSE,2)>=REF(CLOSE,3));

绝对没问题

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