通达信——精选指标《趋势》指标源码
<p data-first-child></p><p >指标源码:</p><blockquote > 趋势:SMA(((CLOSE-LLV(LOW,28))/(HHV(HIGH,28)-LLV(LOW,28))*100),3,1),COLORYELLOW;<br/> DRAWBAND(趋势,RGB(155,50,50),50,RGB(0,100,50));<br/> {STICKLINE(趋势>50,趋势,50,6,0),COLORFF00FF;<br/> STICKLINE(趋势<50,趋势,50,6,0),COLORGREEN;}<br/> 转强:IF(趋势>50,趋势,DRAWNULL),COLOR0000FF;<br/> 转弱:IF(趋势<50,趋势,DRAWNULL),COLORGREEN;<br/> RSV:=(CLOSE-LLV(CLOSE,9))/(HHV(CLOSE,9)-LLV(CLOSE,9))*100;<br/> K:=SMA(RSV,3,1);<br/> D:=SMA(K,3,1);<br/> TYP:=(HIGH+LOW+CLOSE)/3;<br/> CCI:=(TYP-MA(TYP,14))/(0.015*AVEDEV(TYP,14));<br/> DIFF:=EMA(CLOSE,2)-EMA(CLOSE,55);<br/> DEA:=EMA(DIFF,6);<br/> MACD:=2*(DIFF-DEA);<br/> 转点:=IF(K>D AND CCI>0 AND DIFF>DEA AND MACD>0,1,0);<br/> STICKLINE(转点=1,50,50,2,0),COLORYELLOW;<br/> STICKLINE(转点=0,50,50,2,0),COLORCYAN;<br/> STICKLINE(C,90,90,1,0),COLORYELLOW;<br/> STICKLINE(C,10,10,1,0),COLORCYAN;</blockquote><h2>欢迎大家自行尝试! 关于指标大家可以私信找我免费领取!</h2> 爱分享,爱生活 my god!好东西!
页:
[1]