d:=ma(close,80)-ma(close,10)/3;{收盘价的80日简单移动平均-收盘价的10日简单移动平均/3} xg:if(close<d and vol/240>ma(vol,5)/240 and close>ref(close,1)*1.08 and close(close,13)*1.3,1,0);{如果符合抄底则选股,否则返回0} 狂飙蚂蚁博客编写,还有一个...
diff:=ema(close,6)-ema(close,10);dea:=ema(diff,5);macd:=2*(diff-dea);金叉信号1:=cross(close,ma(close,34)) and cross(ma(close,3),ma(close,8));a1:=diff<ref(diff,1) and diff<0;a2:=barslast(a1) and macd...
公式如下:选择的范围太大,我给你加了点限制,让你有更多的选择空间。ma30:=ma(c,30);diff:=ema(close,12)-ema(close,26); dea:=ema(diff,9); macd:=2*(diff-dea); fh1:=ref(macd,1)<ref(macd,2) and ref(macd,2)<ref(macd,3) and ref(macd,3)&...
k:=max((h+l)/2,(c+o)/2);bbi:=(ma(c,3)+ma(c,6)+ma(c,12)+ma(c,24))/4;b:k>=bbi or bbi>=ref(bbi,1);或----k:=max((h+l)/2,(c+o)/2);bbi:=(ma(c,3)+ma(c,6)+ma(c,12)+ma(c,24))/4;b:cross(k,bbi) or bbi>=r...
我看了一下 你的这个红绿箭头 用到了未来数据。所以做出来也没什么用,不准确的。highn:=10;lown:=10;highd**play:=0;lowd**play:=0;zgd**play:=0;mad**play:=0;aa:=ref(h,highn)=hhv(h,2*highn+1);qy:=backset(aa,highn+1);cc:=filter(qy,highn) and h=hh...
var11:=1;var22:=((((2*close)+high)+low) /4);var4:=llv(low,5);var5:=hhv(high,4);k:=(ema((((var22-var4)/(var5-var4))*100),4)*var11);d:=(ema(((0.667*ref(k,1))+(0.333*k)),2)*var11);xg:cross(k,d) and k<...