dif:=ema(close,12)-ema(close,26);dea:=ema(dif,9);v1:=ma(v,5);v2:=ma(v,10);ma1:=ma(c,5);ma2:=ma(c,10);三线:if(cross(dif,dea) and cross(ma1,ma2) and cross(v1,v2),20,0),linestick,colorred;(试通过,不过金叉股不好找啊.。一...
通信达均量线多头排列: mv1:=ma(v,5);mv2:=ma(v,10);mv3:=ma(v,20);mv4:=ma(v,30);xg:mv1>mv2 and mv2>mv3 and mv3>mv4;通信达成交金额线多头排列: mam1:=ma(amount,5);mam2:=ma(amount,10);mam3:=ma(amount,20);mam4:=ma(amount,...
因为这几个条件一般不会同时满足,你的原意应该 是在一指定的天数n内达到这些条件。因此我在公式中给你加了一个参数n,你试试。 ma5:=ma(c,5);ma10:=ma(c,10);ma30:=ma(c,30);ma130:=ma(c,130);xg:count(cross(ma5,ma10),n)>0 and count(cross(ma5,ma30),n)>0 and count(c...
10日均线大于40度,20 ,30 ,60日均线多头排列的选股公式:ma(c,20)>ma(c,30) and ma(c,30)>ma(c,60) and ma(c,30)>ref(ma(c,30),1) and atan((ma(c,10)/ref(ma(c,10),1)-1)*100)*180/3.1416>=40;