ihzx 发表于 2021-8-21 14:01:55

大智慧流量分析指标公式

<p>AA:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN));<br />
买量:=IF(CLOSE&gt;OPEN,AA*(HIGH-LOW),IF(CLOSE&lt;OPEN,AA*((HIGH-OPEN)+ (CLOSE-LOW)),VOL/2)){,LINETHICK0,COLORRED};<br />
卖量:=IF(CLOSE&gt;OPEN,0-AA*((HIGH-CLOSE)+(OPEN-LOW)),IF(CLOSE&lt;OPEN,0- AA*(HIGH-LOW),0-VOL/2)){,LINETHICK0,COLORCYAN};<br />
进出量:=买量+卖量{,COLOR00FFFF,LINETHICK0};<br />
STICKLINE(进出量&lt;0,0,进出量,5,0),COLORFF6600;<br />
STICKLINE(进出量&lt;0,0,进出量,4,0),COLORFF9900;<br />
STICKLINE(进出量&lt;0,0,进出量,2.5,0),COLORFFCC00;<br />
STICKLINE(进出量&lt;0,0,进出量,0.5,0),COLORCYAN;<br />
STICKLINE(进出量&gt;0,0,进出量,5,0),COLOR000099;<br />
STICKLINE(进出量&gt;0,0,进出量,4,0),COLOR0000CC;<br />
STICKLINE(进出量&gt;0,0,进出量,4.5,0),COLOR0000FF;<br />
STICKLINE(进出量&gt;0,0,进出量,1.5,0),COLORCC66FF;<br />
N:=5;<br />
M:=13;<br />
五日内净流入:SUM(进出量,N),LINETHICK2,COLORGREEN;<br />
流入:IF(五日内净流入&gt;REF(五日内净流入,1),五日内净流入,0),COLORRED,LINETHICK2;<br />
连红天:BARSLAST(COUNT(进出量&gt;0,n));<br />
十三日内翻红天:COUNT(进出量&gt;0,M),COLORRED;<br />
走熊天:BARSLAST (COUNT(五日内净流入&lt;0,n)),COLORCYAn;<br />
走牛天:BARSLAST (COUNT(五日内净流入&gt;0,n)),COLORRED;<br />
强势天:BARSLAST (COUNT((五日内净流入&gt;REF(五日内净流入,n))&gt;0 AND 五日内净流入&gt;0,n));<br />
弱势天:BARSLAST (COUNT((五日内净流入&lt;REF(五日内净流入,n))&gt;0 AND 五日内净流入&lt;0,n));</p>
<p></p>
<p>&nbsp;</p>
页: [1]
查看完整版本: 大智慧流量分析指标公式