盤(pán)口成交量公式--源碼,、絕對(duì)無(wú)未來(lái)函數(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); 買(mǎi)入量:(V9+V8),STICK,LINETHICK7,COLORRED; 賣(mài)出量:-(V6+V7),STICK,LINETHICK7,COLORBLUE; 買(mǎi)賣(mài)差:(V9+V8)-(V6+V7),COLORWHITE,STICK,LINETHICK3; 日差占流通盤(pán)比:買(mǎi)賣(mài)差/CAPITAL*100,COLOR0099FF,POINTDOT; 買(mǎi)賣(mài)總差:SUM(買(mǎi)賣(mài)差,60),COLORYELLOW,LINETHICK2; 資金流極品公式-(無(wú)未來(lái)函數(shù) 源碼) N:1 200 3
M:1 200 8 AA:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN)); 買(mǎi)量:=IF(CLOSE>OPEN,AA*(HIGH-LOW),IF(CLOSE<OPEN,AA*((HIGH-OPEN)+(CLOSE-LOW)),VOL/2)),LINETHICK0,COLORRED; 賣(mài)量:=IF(CLOSE>OPEN,0-AA*((HIGH-CLOSE)+(OPEN-LOW)),IF(CLOSE<OPEN,0-AA*(HIGH-LOW),0-VOL/2)),LINETHICK0,COLORCYAN; 進(jìn)出量:=買(mǎi)量+賣(mài)量,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; 萬(wàn)手:VOL/10000,LINETHICK0,NODRAW; BB:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN)); 主動(dòng)買(mǎi):=IF(CLOSE>OPEN,BB*(HIGH-LOW),IF(CLOSE<OPEN,BB*((HIGH-OPEN)+(CLOSE-LOW)),VOL/2)); 主買(mǎi):主動(dòng)買(mǎi)/10000,COLORRED,NODRAW; 主動(dòng)賣(mài):=IF(CLOSE>OPEN,0-BB*((HIGH-CLOSE)+(OPEN-LOW)),IF(CLOSE<OPEN,0-BB*(HIGH-LOW),0-VOL/2)); 主賣(mài):-主動(dòng)賣(mài)/10000,COLORGREEN,NODRAW; 主凈額:(主動(dòng)買(mǎi)+主動(dòng)賣(mài))/10000,NODRAW; VAR1:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN)); 買(mǎi):=IF(CLOSE>OPEN,VAR1*(HIGH-LOW),IF(CLOSE<OPEN,VAR1*((HIGH-OPEN)+(CLOSE-LOW)),VOL/2)),COLORRED; 賣(mài):=IF(CLOSE>OPEN,0-VAR1*((HIGH-CLOSE)+(OPEN-LOW)),IF(CLOSE<OPEN,0-VAR1*(HIGH-LOW),0-VOL/2)),COLOR00FF00 ; 買(mǎi)賣(mài)差:=(買(mǎi)+賣(mài)); 買(mǎi)賣(mài)比:ABS(買(mǎi)/賣(mài)); N日內(nèi)凈流入:SUM (買(mǎi)賣(mài)差,N), LINETHICK2,COLORGREEN; 流入:IF (N日內(nèi)凈流入>REF(N日內(nèi)凈流入,1),N日內(nèi)凈流入,DRAWNULL),COLORMAGENTA,LINETHICK2; M日內(nèi)翻紅天數(shù):COUNT(買(mǎi)賣(mài)差>0,M); 連紅天數(shù):BARSLASTCOUNT(買(mǎi)賣(mài)差>0); |
|
來(lái)自: 伍新新 > 《函數(shù)理論》