请老师把通达信指标改为选股公式1.短牛大牛2.短牛中牛大牛。两个选股公式n1:=5;n2:=10; stickline(c>0,0,1

- 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
汇率兑换计算器

类似问答
汇率兑换计算器

热门推荐
热门问答
最新问答
推荐问答
新手帮助
常见问题
房贷计算器-九子财经 | 备案号: 桂ICP备19010581号-1 商务联系 企鹅:2790-680461

特别声明:本网为公益网站,人人都可发布,所有内容为会员自行上传发布",本站不承担任何法律责任,如内容有该作者著作权或违规内容,请联系我们清空删除。