x1:=count(ma(c,5)>ref(ma(c,5),1),5)=5;x2:=count(ma(c,10)>ref(ma(c,10),1),5)=5;x3:=count(ma(c,20)>ref(ma(c,20),1),5)=5;x4:=vol/capital=3;x5:c>ma(c,5);x6:vol/shgzg*100>6;x:x1 and x2 and x3 and x4 and x5...
公式里,布林线中轨用20日均线代替。两者其实是一样的。ma5:=ma(c,5);ma20:=ma(c,20);t1:=c/ref(c,1)<1.025 and c>ref(c,1) and v<ref(v,1);{ 题目缩量没说明什么是缩量,这里认为是比前一天的成交量小就是缩量,而不是2根k线都跟前面同一根k线相比}t2:=close<ma20;t3:=ref(c,1)&g...
分开二个公式去选股var0:=vol/close/2;var1:=sum(if(var0 > 100 and close > ref(close,1),var0,0),0);var2:=sum(if(var0 > 100 and close < ref(close,1),var0,0),0);var3:=sum(if(var0 < 100 and close >...