ihzx 发表于 2021-8-26 22:56:42

通达信跟踪资金源码


         <p>以下是通达信跟踪资金源码(无源码的请下载附件导入)</p>
<div class="con" id="rjsmad1"></div>
<p><a href='images/' title='通达信' target='_blank'>通达信</a><a href='images/www.tdxclub.com' title='指标' target='_blank'>指标</a>跟踪资金</p>
<p>PJJ:=DMA((((HIGH + LOW) + (CLOSE * 2)) / 4),0.9);<br>
JJ:=REF(EMA(PJJ,3),1);<br>
QJJ:=(VOL / (((HIGH - LOW) * 2) - ABS((CLOSE - OPEN))));<br>
XVL:=(IF((CLOSE &gt; OPEN),(QJJ * (HIGH - LOW)),IF((CLOSE &lt; OPEN),(QJJ * ((HIGH - OPEN) + (CLOSE - LOW))),(VOL / 2))) + IF((CLOSE &gt; OPEN),(0 - (QJJ * ((HIGH - CLOSE) + (OPEN - LOW)))),IF((CLOSE &lt; OPEN),(0 - (QJJ * (HIGH - LOW))),(0 - (VOL / 2)))));<br>
ZLL:=(VOL / CAPITAL);<br>
HSL1:=IF((ZLL &gt; 10),10,ZLL);<br>
HSL:=((XVL / 20) / 1.15);<br>
攻击流量:=(((HSL * 0.55) + (REF(HSL,1) * 0.33)) + (REF(HSL,2) * 0.22));<br>
GJJ:=EMA(攻击流量,8);<br>
LLJX:=EMA(攻击流量,3);<br>
STICKLINE(((HSL * 0.4) &gt;= 0),((HSL * 0.4) +LLJX),0,3,0),COLOR00FFFF;<br>
STICKLINE(((HSL * 0.4) &lt; 0),((HSL * 0.4) +LLJX),0,3,0),COLOR00FF00;<br>
资金流入:=IF((HSL*0.4+LLJX)&gt;0,(HSL*0.4+LLJX),DRAWNULL),COLORRED;<br>
资金流出:=IF((HSL*0.4+LLJX)&lt;0,(HSL*0.4+LLJX),DRAWNULL),COLOR00FF00;<br>
资金进出:=(HSL*0.4+LLJX),LINETHICK0;<br>
万元:=AMOUNT/10000{0000},VOLSTICK,COLORFF00FF;<br>
资金净进出:IF((HSL*0.4+LLJX)&gt;0,资金流入,资金流出),COLORWHITE,POINTDOT;<br>
进出比例%:IF((HSL*0.4+LLJX)&gt;0,资金流入/万元*100,资金流出/万元*100),COLORYELLOW;<br>
连红天1:=BARSLASTCOUNT(资金净进出&gt;0),,COLORA20FFD,NODRAW;<br>
连红天2:=IF(连红天1=0,REF(连红天1,1),连红天1),,COLORA20FFD,NODRAW;<br>
连红天3:=IF(连红天2=0,REF(连红天1,2),连红天2),,COLORA20FFD,NODRAW;<br>
连红天4:=IF(连红天3=0,REF(连红天1,3),连红天3),,COLORA20FFD,NODRAW;<br>
近期连红天:IF(连红天4=0,REF(连红天1,4),连红天4),,COLORYELLOW,NODRAW;<br>
最多连红天1:=MAX(REF(近期连红天,1),近期连红天),COLORYELLOW,NODRAW;<br>
最多连红天2:=MAX(最多连红天1,REF(近期连红天,2)),COLORYELLOW,NODRAW;<br>
最多连红天3:=MAX(最多连红天2,REF(近期连红天,3)),COLORYELLOW,NODRAW;<br>
最多连红天4:=MAX(最多连红天3,REF(近期连红天,4)),COLORYELLOW,NODRAW;<br>
最多连红天5:=MAX(最多连红天4,REF(近期连红天,5)),COLORYELLOW,NODRAW;<br>
最多连红天:MAX(最多连红天5,REF(近期连红天,6)),COLORYELLOW,NODRAW;<br>
三日资金:SUM(资金进出,3),COLORWHITE,NODRAW;<br>
五日资金:SUM(资金进出,5),COLORFF00FF,NODRAW;<br>
十日资金:SUM(资金进出,10),COLOR0000FF,NODRAW;<br>
资金流量:=LLJX,LINETHICK0,COLOR0000FF;<br>
STICKLINE((资金流量 &gt; 0),资金流量,0,3,0),COLOR0000FF;<br>
STICKLINE((资金流量 &lt; 0),资金流量,0,3,0),COLORFF3300;<br>
黄柱初出蓝:=REF(资金流出,1)&lt;0 AND 资金流入&gt;30 AND C&gt;O AND C&gt;REF(C,1) AND C&gt;MA(C,3);<br>
X:=(3*C+2*L+O+H)/7;<br>
多空线:=(20*X+19*REF(X,1)+18*REF(X,2)+17*REF(X,3)+16*REF(X,4)+15*REF(X,5)+14*REF(X,6)<br>
+13*REF(X,7)+12*REF(X,8)+11*REF(X,9)+10*REF(X,10)+9*REF(X,11)+8*REF(X,12)<br>
+7*REF(X,13)+6*REF(X,14)+5*REF(X,15)+4*REF(X,16)+3*REF(X,17)+2*REF(X,18)+<br>
REF(X,20))/210;<br>
长黄柱:= 资金流入&gt;300 AND CROSS(C,多空线);<br>
DRAWTEXT(黄柱初出蓝,-30,'★'),COLORFF00FF;<br>
DRAWTEXT(长黄柱 ,((HSL * 0.4) * 1.5)*1.4 ,'★'),COLORRED;<br>
&nbsp;</p>
<p><br>
</p>
页: [1]
查看完整版本: 通达信跟踪资金源码