- Alive
2024-11-16 06:58:27
最佳回答
{短牛中牛大牛同现选股} var1:=c-ref(c,1); var2:=100*ema(ema(var1,6),6)/ema(ema(abs(var1),6),6); ma5:=ema(c,5); ma13:=ema(c,13); up:=drawline(l=llv(l,barslast(cross(ma13,ma5))+1),llv(l,barslast(cross(ma13,ma5))+1),h=hhv(h,barslast(cross(ma5,ma13))+1),hhv(h,barslast(cross(ma5,ma13))+1),0); down:=drawline(h=hhv(h,barslast(cross(ma5,ma13))+1),hhv(h,barslast(cross(ma5,ma13))+1),l=llv(l,barslast(cross(ma13,ma5))+1),llv(l,barslast(cross(ma13,ma5))+1),0); hr:=hhv(high,55); hry:=llv(low,55); hry11:=hr*hry; hry33:=sqrt(hry11); 短牛:=(llv(var2,2)=llv(var2,7) and count(var2<0,2) and cross(var2,ma(var2,2))) and ref(down,1)<ref(down,2) and up>ref(down,1); 中牛:=ref(down,1)<ref(down,2) and up>ref(down,1) and c<hhv(h,21)*0.82; 大牛:=ref(down,1)<ref(down,2) and up>ref(down,1) and c<hry33; 选三牛合一:短牛+中牛+大牛=3; -------------------------------------------------------- {短牛大牛选股} var1:=c-ref(c,1); var2:=100*ema(ema(var1,6),6)/ema(ema(abs(var1),6),6); ma5:=ema(c,5); ma13:=ema(c,13); up:=drawline(l=llv(l,barslast(cross(ma13,ma5))+1),llv(l,barslast(cross(ma13,ma5))+1),h=hhv(h,barslast(cross(ma5,ma13))+1),hhv(h,barslast(cross(ma5,ma13))+1),0); down:=drawline(h=hhv(h,barslast(cross(ma5,ma13))+1),hhv(h,barslast(cross(ma5,ma13))+1),l=llv(l,barslast(cross(ma13,ma5))+1),llv(l,barslast(cross(ma13,ma5))+1),0); hr:=hhv(high,55); hry:=llv(low,55); hry11:=hr*hry; hry33:=sqrt(hry11); 短牛:=(llv(var2,2)=llv(var2,7) and count(var2<0,2) and cross(var2,ma(var2,2))) and ref(down,1)<ref(down,2) and up>ref(down,1); 中牛:=ref(down,1)<ref(down,2) and up>ref(down,1) and c<hhv(h,21)*0.82; 大牛:=ref(down,1)<ref(down,2) and up>ref(down,1) and c<hry33; 选三牛之一:短牛+中牛+大牛>0; {说明:由于函数drawline在大智慧中表现为一些无用的线段,所以,改了也没有任何意义。这一函数是通达信的特有函数} 20210311