M1:=5;
M2:=35;
M3:=135;
VOLUME:VOL,COLOR009000,LINETHICK4;
V1:MA(VOLUME,M1),COLORWHITE;
V2:MA(VOLUME,M2),COLORYELLOW;
V3:MA(VOLUME,M3),COLORRED;
地量:=VOL<LLV(VOL,14)*1.001;
STICKLINE(地量>0,0,VOL,7,0),COLORYELLOW;
VAR1:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN));
主动买盘:=IF(CLOSE>OPEN,VAR1*(HIGH-LOW),IF(CLOSE<OPEN,VAR1*((HIGH-OPEN)+(CLOSE-LOW)),VOL/2));
主动卖盘:=IF(CLOSE>OPEN,0-VAR1*((HIGH-CLOSE)+(OPEN-LOW)),IF(CLOSE<OPEN,0-VAR1*(HIGH-LOW),0-VOL/2));
买卖盘比:-(主动买盘/主动卖盘),COLORYELLOW;
STICKLINE(主动买盘>0,0,主动买盘,1,0),COLORRED;
{STICKLINE(主动卖盘<0,VOL,主动买盘,1,0),COLOR00FF00;}
换手:=VOL/CAPITAL*100;
STICKLINE(换手>0,0,主动买盘,6,0),COLOR9900AA;
STICKLINE(换手>0,VOL,主动买盘,6,1);
STICKLINE(地量>0,0,VOL,7,0),COLORYELLOW;
|