通信达均量线多头排列: 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,...
{多头选股公式}{一、各均}ma5:ma(c,5);ma10:ma(c,10);ma20:ma(c,20); ma60;ma(c,60);ma120:ma(c,120);{二、多头趋势即各周期均价线趋势向上(各均价线大于昨日均价线且收盘价破10日均价线)}dt:ma5>ref(ma5,1) and ma5>ma10 and ma10>ref(ma10,1) and ma10>...
{第一个}a:=ma(c,5);b:=ma(c,10);d:=ma(c,20);e:=ma(c,30);f:=a<b and b<d and d<e;xg:f and c<a;{第二个}a:=ma(c,5);b:=ma(c,10);d:=ma(c,20);e:=ma(c,30);f:=a<b and b<d and d<e;xg:count(f,2)=2 ...
因为这几个条件一般不会同时满足,你的原意应该 是在一指定的天数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...