盤口成交量公式--源碼、絕對(duì)無未來函數(shù)(通達(dá)信)
WJ:=(HIGH+LOW+CLOSE)/3; V1:=IF(HIGH=LOW,1,HIGH-MAX(OPEN,CLOSE)); V2:=IF(HIGH=LOW,1,MAX(CLOSE,OPEN)-WJ); V3:=IF(HIGH=LOW,1,MIN(OPEN,CLOSE)-LOW); V4:=IF(HIGH=LOW,1,WJ-MIN(CLOSE,OPEN)); V5:=VOL/IF(HIGH=LOW,4,HIGH-LOW); V6:=(V1*V5); V7:=(V2*V5); V8:=(V3*V5); V9:=(V4*V5); 買入量:(V9+V8),STICK,LINETHICK7,COLORRED; 賣出量:-(V6+V7),STICK,LINETHICK7,COLORBLUE; 買賣差:(V9+V8)-(V6+V7),COLORWHITE,STICK,LINETHICK3; 日差占流通盤比:買賣差/CAPITAL*100,COLOR0099FF,POINTDOT; 買賣總差:SUM(買賣差,60),COLORYELLOW,LINETHICK2; 資金流極品公式-(無未來函數(shù) 源碼) N:1 200 3
M:1 200 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; 進(jìn)出量:=買量+賣量,COLOR00FFFF; STICKLINE(進(jìn)出量<0,0,進(jìn)出量,1,0),COLORFF6600; STICKLINE(進(jìn)出量<0,0,進(jìn)出量,1,0),COLORFF9900; STICKLINE(進(jìn)出量<0,0,進(jìn)出量,1.0,0),COLORFFCC00; STICKLINE(進(jìn)出量<0,0,進(jìn)出量,0.5,0),COLORGREEN; STICKLINE(進(jìn)出量>0,0,進(jìn)出量,1,0),COLOR000099; STICKLINE(進(jìn)出量>0,0,進(jìn)出量,1,0),COLOR0000CC; STICKLINE(進(jìn)出量>0,0,進(jìn)出量,1.0,0),COLOR0000FF; STICKLINE(進(jìn)出量>0,0,進(jìn)出量,0.5,0),COLORCC66FF; 萬手:VOL/10000,LINETHICK0,NODRAW; BB:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN)); 主動(dòng)買:=IF(CLOSE>OPEN,BB*(HIGH-LOW),IF(CLOSE<OPEN,BB*((HIGH-OPEN)+(CLOSE-LOW)),VOL/2)); 主買:主動(dòng)買/10000,COLORRED,NODRAW; 主動(dòng)賣:=IF(CLOSE>OPEN,0-BB*((HIGH-CLOSE)+(OPEN-LOW)),IF(CLOSE<OPEN,0-BB*(HIGH-LOW),0-VOL/2)); 主賣:-主動(dòng)賣/10000,COLORGREEN,NODRAW; 主凈額:(主動(dòng)買+主動(dòng)賣)/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日內(nèi)凈流入:SUM (買賣差,N), LINETHICK2,COLORGREEN; 流入:IF (N日內(nèi)凈流入>REF(N日內(nèi)凈流入,1),N日內(nèi)凈流入,DRAWNULL),COLORMAGENTA,LINETHICK2; M日內(nèi)翻紅天數(shù):COUNT(買賣差>0,M); 連紅天數(shù):BARSLASTCOUNT(買賣差>0); |
|