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