通達信主力資金主買主賣差指標公式
- 指標類別: 通達信指標公式
- 授權方式: 免費版
- 指標評級: ★★★★★
- 指標分類: 量能
- 畫線方法: 副圖
- 日期:2021-07-05 來源:互聯網
通達信主力資金主買主賣差指標公式:
N:=3;M:=8;
AA:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN));
買量:=IF(CLOSE>OPEN,AA*(HIGH-LOW),IF(CLOSE<OPEN,AA*((HIGH-OPEN)+(CLOSE-LOW)),VOL/2)),LINETHICK0,COLORRED;
賣量:=IF(CLOSE>OPEN,0-AA*((HIGH-CLOSE)+(OPEN-LOW)),IF(CLOSE<OPEN,0-AA*(HIGH-LOW),0-VOL/2)),LINETHICK0,COLORCYAN;
進出量:=買量+賣量,COLOR00FFFF;
STICKLINE(進出量<0,0,進出量,1,0),COLORFF6600;
STICKLINE(進出量<0,0,進出量,1,0),COLORFF9900;
STICKLINE(進出量<0,0,進出量,1.0,0),COLORFFCC00;
STICKLINE(進出量<0,0,進出量,0.5,0),COLORGREEN;
STICKLINE(進出量>0,0,進出量,1,0),COLOR000099;
STICKLINE(進出量>0,0,進出量,1,0),COLOR0000CC;
STICKLINE(進出量>0,0,進出量,1.0,0),COLOR0000FF;
STICKLINE(進出量>0,0,進出量,0.5,0),COLORCC66FF;
萬手:VOL/10000,LINETHICK0,NODRAW;
BB:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN));
主動買:=IF(CLOSE>OPEN,BB*(HIGH-LOW),IF(CLOSE<OPEN,BB*((HIGH-OPEN)+(CLOSE-LOW)),VOL/2));
主買:主動買/10000,COLORRED,NODRAW;
主動賣:=IF(CLOSE>OPEN,0-BB*((HIGH-CLOSE)+(OPEN-LOW)),IF(CLOSE<OPEN,0-BB*(HIGH-LOW),0-VOL/2));
主賣:-主動賣/10000,COLORGREEN,NODRAW;
主凈額:(主動買+主動賣)/10000,NODRAW;
VAR1:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN));
買:=IF(CLOSE>OPEN,VAR1*(HIGH-LOW),IF(CLOSE<OPEN,VAR1*((HIGH-OPEN)+(CLOSE-LOW)),VOL/2)),COLORRED;
賣:=IF(CLOSE>OPEN,0-VAR1*((HIGH-CLOSE)+(OPEN-LOW)),IF(CLOSE<OPEN,0-VAR1*(HIGH-LOW),0-VOL/2)),COLOR00FF00 ;
買賣差:=(買+賣);
買賣比:ABS(買/賣);
N日內凈流入:SUM (買賣差,N), LINETHICK2,COLORGREEN;
流入:IF (N日內凈流入>REF(N日內凈流入,1),N日內凈流入,DRAWNULL),COLORMAGENTA,LINETHICK2;
M日內翻紅天數:COUNT(買賣差>0,M);
連紅天數:BARSLASTCOUNT(買賣差>0);
通達信主力資金主買主賣差指標公式實例圖解:
通達信主力資金主買主賣差指標公式