exp1:="expma.exp1";exp2:="expma.exp2";aa:=cross(exp1,exp2);tt:=barslast(aa);aa1:=c<o;bb:=sar(4,2,20);xg:count(aa1,tt)=1 and aa1 and "macd.macd">0 and "kdj.j"<80 and c>bb; 20210311
lowv:=llv(low,9);highv:=hhv(high,9);rsv:=ema((close-lowv)/(highv-lowv)*100,3);k:ema(rsv,3);d:ma(k,3);a1:=barslast(ref(cross(k,d),1));底背离:ref(close,a1+1)>close and k>ref(k,a1+1)and cross(k,d);dra...
{百度3} n:=3;{大阳线实体的幅度,可调} n1:=3;{第一次大阳后调整的天数,可调} 涨幅:=(c/ref(c,1)-1)*100;大阳线:=(c/o-1)*100>n;选股:barslast(涨幅>5 and 大阳线)>=n1 and llv(l,barslast(涨幅>5 and 大阳线))>ref(l,barslast(涨幅>5 and 大阳线)...
神仙大趋势h1:=ema(close,6),colorwhite; h2:=ema(神仙大趋势h1,18),colorgreen; h3:=ema(close,108),coloryellow;cross(神仙大趋势h1,max(h2,h3)) or (神仙大趋势h1>max(h2,h3) and ref(c,1)<ref(c,2) and c>ref(max(c,o),1));
m0:=finance(7);m1:=100*vol/(finance(7)/100)>3;m2:=winner(c)*100>80;m3:=ref(c,1)*1.01;m4:=ref(c,1)*1.035;m5:=ref(c,1)*0.99;m6:=ref(c,1)*0.965;m7:=c>=m3 and c;m8:=c<=m5 and c>=m6;m9:=if(c...
输出波段选5ri:统计5日中满足ma1上穿ma2andma1>昨日ma1andma2>昨日ma2 =1ma1:ma(close,m1);ma2:ma(close,m2);ma3:ma(close,m3);ma4:ma(close,m4);drawtext(cross(ma1,ma2) and ma1>ref(ma1,1) and ma2>ref(ma2,1),ma2,&...