通达信:以上涨趋势回调的低点向右自动画延长线的公式 下跌趋势以反弹前的低点向右画延长线的公式怎么写

24Frames杂谈 2024-05-30 09:55:33
最佳回答
n:=5;a1:=ref(h,n)=hhv(h,2*n+1); b1:=filter(a1,n); c1:=backset(b1,n+1); d1:=filter(c1,n),nodraw;a2:=ref(l,n)=llv(l,2*n+1); b2:=filter(a2,n); c2:=backset(b2,n+1); d2:=filter(c2,n),nodraw;e1:=(ref(llv(l,2*n),1)+ref(hhv(h,2*n),1))/2; e2:=(h+l)/2;h1:=(d1 and not(d2 and e1>=e2)) or **lastbar or barscount(c)=1;l1:=(d2 and not(d1 and e1<e2)); h2:=d1 and not(d2 and e1>=e2);x1:=ref(barslast(h1),1)+1; f1:=backset(h1 and count(l1,x1)>0,llvbars(if(l1,l,10000),x1));g1:=f1>ref(f1,1);i1:=backset(g1,2); ld:=i1>ref(i1,1),linethick0;t1:=backset(**lastbar,barslast(ld)+1); u1:=t1>ref(t1,1);t2:=backset(u1,ref(barslast(ld),1)+2); u2:=t2>ref(t2,1);t3:=backset(u2,ref(barslast(ld),1)+2); u3:=t3>ref(t3,1);t4:=backset(u3,ref(barslast(ld),1)+2); u4:=t4>ref(t4,1);t5:=backset(u4,ref(barslast(ld),1)+2); u5:=t5>ref(t5,1);t6:=backset(u5,ref(barslast(ld),1)+2); u6:=t6>ref(t6,1);低一:drawline(u1,l,ref(u1,1),ref(l,1),1)colorgreen;低二:drawline(u2,l,ref(u2,1),ref(l,1),1)colorgreen;低三:drawline(u3,l,ref(u3,1),ref(l,1),1)colorgreen;低四:drawline(u4,l,ref(u4,1),ref(l,1),1)colorgreen;低五:drawline(u5,l,ref(u5,1),ref(l,1),1)colorgreen;低六:drawline(u6,l,ref(u6,1),ref(l,1),1)colorgreen;别忘记点采纳了。 20210311
汇率兑换计算器

类似问答
汇率兑换计算器

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

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