通达信——精选指标《ASI优化》指标源码
<p data-first-child></p><p >指标源码:</p><blockquote >LC:=REF(CLOSE,1);<br/> AA:=ABS(HIGH-LC);<br/> BB:=ABS(LOW-LC);<br/> CC:=ABS(HIGH-REF(LOW,1));<br/> DD:=ABS(LC-REF(OPEN,1));<br/> R:=IF(AA>BB AND AA>CC,AA+BB/2+DD/4,IF(BB>CC AND BB>AA,BB+AA/2+DD/4,CC+DD/4));<br/> X:=(CLOSE-LC+(CLOSE-OPEN)/2+LC-REF(OPEN,1));<br/> SI:=8*X/R*MAX(AA,BB);<br/> ASI:SUM(SI,0),COLORRED,LINETHICK2;<br/> MASI:MA(ASI,34),COLORWHITE,LINETHICK2;<br/> N:=60;<br/> 左峰高:=REF(HHV(ASI,N),1);<br/> 突破:=REF(COUNT(ASI<左峰高,2)=2,1) AND ASI>左峰高;<br/> DRAWTEXT(突破,ASI*1.01,"突破"),COLORWHITE;<br/> DRAWTEXT(CROSS(ASI,MASI) AND C/REF(C,1)>1.04,ASI,"黄金叉"),COLORYELLOW;<br/> P:=1;<br/> AA1:=REF(ASI,P)=HHV(ASI,2*P+1);<br/> BB1:=FILTER(AA1,P);<br/> CC1:=BACKSET(BB1,P+1);<br/> DD1:=FILTER(CC1,P);{高点}<br/> AA2:=REF(ASI,P)=LLV(ASI,2*P+1);<br/> BB2:=FILTER(AA2,P);<br/> CC2:=BACKSET(BB2,P+1);<br/> DD2:=FILTER(CC2,P);{低点}<br/> 前期高点:REF(ASI,BARSLAST(DD1)),COLORFF00FF,NODRAW;<br/> 前期低点:REF(ASI,BARSLAST(DD2)),COLOR00FF00,NODRAW;<br/> STICKLINE(C>0,前期低点,前期低点,1,0),COLOR00FF00;<br/> STICKLINE(C>0,前期高点,前期高点,1,0),COLORFF00FF; <br/> DRAWTEXT(CROSS(ASI,前期高点),前期高点*1.01,"突破一"),COLORFF33FF;</blockquote><h2>欢迎大家自行尝试! 关于指标大家可以私信找我免费领取!</h2> 希望更多人一起分享,感谢! 路过,学习下 真是 收益 匪浅 爱分享,爱生活
页:
[1]