{综合条件-xg—i am not a ace}m1:=ma(close,5);m2:=ma(close,10);m3:=ma(close,20);m4:=ma(close,60);m5:=ma(close,120);xg1:=m1>m2 and m2>m3 and m3>m4 and m4>m5;voler:=vol;mvol1:=ma(voler,5); mvol2:=ma(voler,10);xg2:=mvol1>mvol2;dif:=ema(close,12)-ema(close,26);dea:=ema(dif,9);macd:=(dif-dea)*2;xg3:=cross(macd,0) {or macd>ref(macd,1)};va:=if(close>ref(close,1),vol,-vol);obv:=sum(if(close=ref(close,1),0,va),0);mobv:=ma(obv,30);xg4:=mobv>ref(mobv,1);hbxg:xg1 and xg2 and xg3 and xg4;虽通过测试,不知是否符合汝意? {个人看法,仅供参考。} 20210311
t1:=cross(ma(c,5),ma(c,10));t2:=cross(ma(v,5),ma(v,10));t3:=obv>ref(obv,1);xg:t1 and t2 and t3;参考资料:http://tieba.baidu.com/f?kw=%b9%c9%c6%b1%b9%ab%ca%bd%d7%a8%bc%d2
m5:=ma(c,5);m10:=ma(c,10);m24:=ma(c,24);m72:=ma(c,72);b1:=abs(m5-m72)/m72<0.01;b2:=abs(m10-m72)/m72<0.03;b3:=abs(m24-m72)/m72<0.03;x:=b1 and b2 and b3 and c>m72; ex**t(x,3);
ma2:=ema(c,2);ma5:=ema(c,5);ma13:=ema(c,13);ma34:=ema(c,34);ma55:=ema(c,55);ycx:=ma5>=ref(ma5,1);h1:=max(max(ma5,ma13),ma34);l1:=min(min(ma5,ma13),ma34);金蜘蛛:h1<c and o<l1 and ycx and ma2>r...
{参数设置}{n 1-100-4}{s 1-100-2}{m 1-100-20}a:=if(close>sar(n,s,m),sar(n,s,m),draw**);b:=if(close<sar(n,s,m),sar(n,s,m),draw**);xg:close>sar(n,s,m) and ref(close,1)<ref((sar(n,s,m)),1) and c&g...
a1:=hhv(c,1800)>llv(c,1800)*1.6 and llv(c,1800)*2<hhv(c,1800) and count(c/ref(c,1)>0.098,100)>=1 and barscount(close)>600 ;a2:= (c-ma(c,200))/ma(c,200)<0.2 { 相对于200天线正乖离小于20%...