以下是通达信资金趋势指标公式
C/C++Code复制内容到剪贴板
{资金指数(副图指标)}
主流资金:EMA(100*(C-LLV(LOW,34))/(HHV(H,34)-LLV(LOW,34)),3),COLORRED,linethick2;
非主流资金:EMA(100*(INDEXC-LLV(INDEXL,34))/(HHV(INDEXH,34)-LLV(INDEXL,34)),3),colorgreen,linethick2;
20,pointdot,colorf00ff0;
50,pointdot,colorgreen;
80,pointdot,colorwhite;
C/C++Code复制内容到剪贴板
{机构出仓区}
DTCVAR1:=DYNAINFO(5);
DTCVAR2:=BARSCOUNT(HIGH);
DTCVAR3:=(SMA((HIGH/HHV(CLOSE,120)),3,1)*100);
DTCVAR4:=IF((DTCVAR2>20),DTCVAR3,0);
DTCVAR5:=IF((HIGH<DTCVAR1),0,IF((LOW>DTCVAR1),1,(((DTCVAR1-HIGH)+0.009)/((LOW-HIGH)+0.009))));
DTCVAR6:=(DMA(DTCVAR5,(VOL/CAPITAL))*60);
DTCVAR7:=IF((((DTCVAR6>0)AND(DTCVAR6>REF(DTCVAR6,1)))AND(DTCVAR4>=88)),DTCVAR6,0);
DTCVAR8:=((3*SMA((((CLOSE-HHV(HIGH,27))/(LLV(LOW,27)-HHV(HIGH,27)))*100),5,1))-(2*SMA(SMA((((HIGH-HHV(HIGH,27))/(LLV(LOW,27)-HHV(HIGH,27)))*100),5,1),3,1)));
DTCVAR9:=EMA(DTCVAR8,8);
DTCVAR10:=((3*SMA((((HIGH-HHV(HIGH,55))/(LLV(LOW,55)-HHV(HIGH,55)))*100),5,1))-(2*SMA(SMA((((HIGH-HHV(HIGH,55))/(LLV(LOW,55)-HHV(HIGH,55)))*100),5,1),3,1)));
DTCVAR11:=(EMA(DTCVAR10,3)-10);
FILLRGN(((DTCVAR7>0)AND((DTCVAR11<20)OR((DTCVAR11>REF(DTCVAR11,1))AND(DTCVAR11<50)))),0,DTCVAR7),Culor5A5A5A;
{机构出仓区:0,COLORGREEN,LINETHICK0;}
指标说明:
该指标是软件的精华所在,可以清楚的看出一只股票中主力及散户的强弱关系。它由两条趋势线及三条水平线组成,紫色趋势线代表市场主流金,绿色趋势线代表非主流资金。指标有三条水平线,从上自下数值分别为80、50、20。80以上为超强区,20以下为超弱区,50为强弱分水岭(80—50为强势区,50—20为弱势区)。
使用方法:
当主流资金摆脱非主流资金上攻,且上穿50,表示主力在投入资金,股价上涨。当主流资金在80以上运行一段时间之后,向下穿越80,显示主力减仓股价可能走弱。
通达信资金曲线指标
超 B:=L2_AMO(0,2)/10000.0;
大 B:=L2_AMO(1,2)/10000.0;
中 B:=L2_AMO(2,2)/10000.0;
小 B:=L2_AMO(3,2)/10000.0;
超 S:=L2_AMO(0,3)/10000.0;
大 S:=L2_AMO(1,3)/10000.0;
中 S:=L2_AMO(2,3)/10000.0;
小 S:=L2_AMO(3,3)/10000.0;
资金流向:(超 B+大 B+中 B+小 B)-(超 S+大 S+中 S+小 S),NODRAW;
近 3 日:SUM(资金流向,3),NODRAW;
近 5 日:SUM(资金流向,5),NODRAW;
近 10 日:SUM(资金流向,10),NODRAW;
近 22 日:SUM(资金流向,22),NODRAW;
超级:(超 B)-(超 S),NODRAW;
大单:(大 B)-(大 S),NODRAW;
中单:(中 B)-中 S,NODRAW;
散户:(小 B)-(小 S),NODRAW;
STICKLINE(资金流向>0,0,资金流向,2,0),COLORRED;
STICKLINE(资金流向<0,0,资金流向,2,0),COLORCYAN;
评论(0)