合并(买入股票和乖离买入)同时满足两个条件再预警
2019/12/3 18:54:35
公式编写说明:
条件1:AA05:=MA(C,5);五日乖离率:=(C-AA05)/AA05*100;AA30:=MA(C,30);三拾日乖离率:=(C-AA30)/AA30*100;MR:=COUNT(CROSS(五日乖离率,0),3)>=1 AND 三拾日乖离率>REF(三拾日乖离率,1) AND AA05>REF(AA05,1) AND (C/REF(C,1)-1)*100>5 AND REF(C,1)<AA30;买入:FILTER(MR,10);条件2:V11:=3*SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1)-2*SMA(SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1),3,1); 趋势线:= EMA(V11,3); V12:=(趋势线-REF(趋势线,1))/REF(趋势线,1)*100; AA:=(趋势线<=13) AND FILTER((趋势线<=13),15);买入股票:趋势线<=13 AND V12>13;现在要写入一个条件里,同时满足,再预警,请高手帮忙怎么输出合并,谢谢了。
公式源码回答:
这样就应该可以了
AA05:=MA(C,5);
五日乖离率:=(C-AA05)/AA05*100;
AA30:=MA(C,30);
三拾日乖离率:=(C-AA30)/AA30*100;
MR:=COUNT(CROSS(五日乖离率,0),3)>=1 AND 三拾日乖离率>REF(三拾日乖离率,1) AND AA05>REF(AA05,1) AND (C/REF(C,1)-1)*100>5 AND REF(C,1)<AA30;
V11:=3*SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1)-2*SMA(SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1),3,1);
趋势线:= EMA(V11,3);
V12:=(趋势线-REF(趋势线,1))/REF(趋势线,1)*100;
AA:=(趋势线<=13) AND FILTER((趋势线<=13),15);
买入股票:趋势线<=13 AND V12>13 AND FILTER(MR,10);
投股票 网 www.tou18. cn
股市公式下载推荐