奢姿美妆达人
2024-05-27 06:56:20
最佳回答
highn:=10;aa:=ref(c,highn)=hhv(c,2*highn+1);qy:=backset(aa,highn+1);cc:=filter(qy,highn) and c=hhv(c,highn+1);ddd:=barslast(cc);gdts:=if(cc,currbarscount,0);dingbu:=if(ddd,ref(c,ddd),c);dingbu1:=ref(dingbu,ddd+1);dingbuts:=if(ddd,ref(gdts,ddd),gdts);gdcs1:=const(dingbuts);dingbuts1:=ref(dingbuts,ddd+10);lown:=10;aa1:=ref(l,lown)=llv(l,2*lown+1);qy1:=backset(aa1,lown+1);cc1:=filter(qy1,lown) and l=llv(l,lown+1);ddts:=if(cc1,currbarscount,0);dd1:=barslast(cc1);ddts1:=if(dd1,ref(ddts,dd1),ddts);ddcs1:=const(ddts1);gdcs2:=const(dingbuts1);dingbu2:=ref(dingbu1,ddd+1);ddts2:=ref(ddts1,dd1+1);ddcs2:=const(ddts2);ma5:ma(close,5),colorwhite;ma10:ma(close,10),coloryellow;ma20:ma(close,20),colormagenta;{短t}zz:=5;ac:=ref(c,zz)=hhv(c,2*zz+1);ad:=backset(ac,zz+1);ae:=filter(ad,zz) and c=hhv(c,zz+1);af:=barslast(ae);ag:=if(ae,currbarscount,0);ah:=if(af,ref(c,af),c);ai:=if(af,ref(ag,af),ag);al:=const(ai);短t:drawline(currbarscount=al,c,**lastbar,ref(c,al-1),1),dotline,colorcyan;t线:drawline(currbarscount=gdcs1,c,**lastbar,ref(c,gdcs1-1),1),dotline,colorwhite;过t:if(cross(c,t线),t线,draw**),circledot,coloryellow;drawicon(cross(c,t线),l*0.98,7);drawicon(cross(t线,c),h*1.01,8);drawicon(cross(c,短t),l*0.98,7);drawicon(cross(短t,c),h*1.01,8);-------------------------------------------------注意:公式测试成功,但在财富通软件上显示的射线会与通达信不一样(向右下倾斜)。 20210311