as:=(c*3+o+h+l)/6;xj:=(as+0.618*ref(as,1)+0.382*ref(as,2)+0.236*ref(as,3)+0.146*ref(as,4))/2.382;hlx:=ema(hhv(xj,3),15);llx:=ema(llv(xj,3),15);ch:=cross(xj,hlx);cl:=cross(llx,xj);chh:=barslast(ch);cll:=barslast(cl);yf1:=(chhcllorcl)andnot(ch);tf:=if(yf1,llx,hlx);tfb:=(hlx+llx)/2;xjk:=sma(ema(xj,3),3,1);zwsh:=(hhv(xj,2)+hhv(xj,3)+hhv(xj,4)+hhv(xj,5))/4;sh:=ema(zwsh,21);zwsl:=(llv(xj,2)+llv(xj,3)+llv(xj,4)+llv(xj,5))/4;sl:=ema(zwsl,21);sch:=cross(xj,sh);scl:=cross(sl,xj);shh:=barslast(sch);sll:=barslast(scl);sf1:=(shhsllorscl)andnot(sch);tfs:=if(sf1,sl,sh);tfbs:=(sl+sh)/2;{k线}kx1:=(close>=open)andxj>=tfs;kx2:=(close=tfs;kx3:=(close>=open)andxj<tfs;kx4:=(close<open)andxj=tfsandxj<tf)or(xj=tf))andclose>=open;kx6:=((xj>=tfsandxj<tf)or(xj=tf))andclosetfs,tfb,tfs),color400040;fillrgn(xjtf,tfb,tf),color000060;fillrgn(xj<tf,tfb,tf),colorff2020;{k线}stickline(kx1,c,o,4,1),color4440ff;stickline(kx1,c,h,0.5,1),color4440ff;stickline(kx1,o,l,0.5,1),color4440ff;stickline(kx2,c,o 20210311