cys:=(c-(0.01*ema(amount,13)/ema(v,13)))/(0.01*ema(amount,13)/ema(v,13))*100;底背离:ref(c,barslast(ref(filter(backset(ref(cys,n)=llv(cys,2*n+1),n+1),n) and cys=llv(cys,n+1),1))+1)>c and ref(cys,barslast(...
公式里,布林线中轨用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...
根据题意,选股公式如下:(提示:由于条件苛刻,不是每天都能选出股票的)vara:=(close-ref(open,29))/ref(open,29)*100;varb:=ema(0.667*ref(vara,1)+0.333*vara,5);vol>=1.3*ma(vol,5) and count(vara>=varb and vara<-17,3) and ref(low,1)...