通达信指标公式源码概况:
指标类别: 通达信指标公式
授权方式: 免费版
指标评级: ★★★★★
指标分类: 策略
画线方法: 副图
主力资金进出指标公式
N:=5;M:=13;
AA:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN));
买量:=IF(CLOSEOPEN,AA*(HIGH-LOW),IF(CLOSEOPEN,AA*((HIGH-OPEN)+(CLOSE-LOW)),VOL/2)),LINETHICK0,COLORRED;
卖量:=IF(CLOSEOPEN,0-AA*((HIGH-CLOSE)+(OPEN-LOW)),IF(CLOSEOPEN,0-AA*(HIGH-LOW),0-VOL/2)),LINETHICK0,COLORCYAN;
进出量:=买量+卖量,COLOR00FFFF;
STICKLINE(进出量0,0,进出量,4,0),COLORFF6600;
STICKLINE(进出量0,0,进出量,3,0),COLORFF9900;
STICKLINE(进出量0,0,进出量,1.5,0),COLORFFCC00;
STICKLINE(进出量0,0,进出量,0.5,0),COLORCYAN;
STICKLINE(进出量0,0,进出量,4,0),COLOR000099;
STICKLINE(进出量0,0,进出量,3,0),COLOR0000CC;
STICKLINE(进出量0,0,进出量,1.5,0),COLOR0000FF;
STICKLINE(进出量0,0,进出量,0.5,0),COLORCC66FF;
N日内净流入:SUM(进出量,N),LINETHICK2,COLORGREEN;
流入:IF(N日内净流入REF(N日内净流入,1),N日内净流入,DRAWNULL),COLORRED,LINETHICK2;
连红天:BARSLASTCOUNT(进出量0);
M日内翻红天:COUNT(进出量0,M),COLORRED;
走熊天:BARSLASTCOUNT(N日内净流入0),COLORCYAN;
走牛天:BARSLASTCOUNT(N日内净流入0),COLORRED;
强势天:BARSLASTCOUNT((N日内净流入REF(N日内净流入,1))0 AND N日内净流入0);
弱势天:BARSLASTCOUNT((N日内净流入REF(N日内净流入,1))0 AND N日内净流入0);
MAV:=(C*2+H+L)/4;
SK:=EMA(MAV,5)-EMA(MAV,22);
SD:=EMA(SK,5);
资金动能:(2*(SK-SD))*3.8,COLORSTICK;
动能支撑:=EMA(资金动能,4);
STICKLINE(资金动能动能支撑,0,资金动能,1,0),COLORGREEN;
STICKLINE(资金动能=动能支撑,0,资金动能,1,0),COLORRED;
{黄柱}
DIF:=EMA(CLOSE,12)-EMA(CLOSE,26);
DEA:=EMA(DIF,9);
MACD:=2*(DIF-DEA);
MACD红:=MACD=-0.009;
昨天绿:=REF(资金动能,1)REF(动能支撑,1);
今天红:=资金动能动能支撑;
绿转红:=昨天绿 AND 今天红;
红中绿转红:=MACD红 AND 绿转红;
STICKLINE(红中绿转红,资金动能,0,2,0),COLORYELLOW;
擎天线:动能支撑,COLORMAGENTA,LINETHICK2;
DD:IF(擎天线REF(擎天线,1),擎天线,DRAWNULL),COLORGREEN,LINETHICK2;
大资金进出指标公式
N:=9;
TYP := (HIGH + LOW + CLOSE)/3;
RS:=SUM(IF(TYP>REF(TYP,1),TYP*VOL,0),N)/SUM(IF(TYP<=REF(TYP,1),TYP*VOL,0),N);
MFI:=100-100/(1+RS);
资金流量:MFI,NODRAW;
A1:=SUM(IF(MFI>REF(MFI,1),VOL,IF(MFI<REF(MFI,1),-VOL,0)),0);{OBV}
RSV:=(A1-LLV(A1,34))/(HHV(A1,34)-LLV(A1,34))*100;
K:SMA(RSV,5,1);
D:SMA(K,3,1);
J:3*K-2*D;
50,COLORGRAY;
80,COLORRED;
筹码空间:IF(WINNER(CLOSE),WINNER(CLOSE)*100,20),VOLSTICK;
TX80:80,POINTDOT, COLORYELLOW;
DX20:20,POINTDOT, COLORGREEN;
VAR1:=LLV(LOW,21);
VAR2:=HHV(HIGH,21);
K: EMA((CLOSE-VAR1)/(VAR2-VAR1)*100,6),COLORRED;
D: EMA(0.667*REF(K,1)+0.333*K,2),COLORGREEN;
VAR3:=LLV(LOW,55);
VAR4:=HHV(HIGH,34);
VAR5:=EMA((CLOSE-VAR3)/(VAR4-VAR3)*100,3);
VAR6:=(K+VAR5)/2;
VAR7:=EMA(0.667*REF(VAR5,1)+0.333*K,2);
VAR8:=EMA(VAR6,5);
VAR9:EMA(0.667*REF(VAR8,1)+0.333*VAR8,2);
DRAWICON(LONGCROSS(D,K,0.1),D,2),COLORRED;
DRAWICON(LONGCROSS(K,D,0.1),K,1),COLORGREEN;
评论(0)