该指标t0在主图上方显示价格,而q0则不显示,求助给予优化解决。
看看是否是这个意思------------------n:=10;t1:=const(hhvbars(v,n));t0:if(currbarscount<=n+3,const(if(t1=0,c,ref(c,t1))),draw**),colorff00ff;if(currbarscount=t1+1,t0,draw**),circledot,colorff00ff;drawtext(**lastbar,t0,' 量能**'),colorcc00cc;m:=10;q1:=const(ref(hhvbars(v,m),t1+1)+t1+1);q2:=if(currbarscount<=t1+m+3 and currbarscount>=t1+1,const(ref(c,q1)),draw**),color009900;q0:if(currbarscount<=t1+m+3,const(ref(c,q1)),draw**),color009900;if(currbarscount=q1+1,q2,draw**),circledot,color00cc00; 20210311