庄买卖量(成交、主买、倍量)-指标公式源码
量5:=EMA(EMA(VOL,5),5);
量35:=EMA(EMA(VOL,35),35);
VAR1:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN));
成交:=VOL;
主买:=IF(CLOSE OPEN,VAR1*(HIGH-LOW),IF(CLOSE OPEN,VAR1*((HIGH-OPEN)+(CLOSE-LOW)),VOL/2)),COLOR00E521;
主卖:=IF(CLOSE OPEN,VAR1*((HIGH-CLOSE)+(OPEN-LOW)),IF(CLOSE OPEN,VAR1*(HIGH-LOW),VOL/2));
主买力度:VOL/(主买-主卖);
买卖比:主买/主卖;
昨日比:=买卖比/REF(买卖比,1);
净买:(主买-主卖)/100,NODRAW;
抢筹:买卖比 4,NODRAW;
倍量:(V/REF(V,1) =1.81 AND COUNT(C O,1)) OR (L REF(H,1) AND COUNT(O C,1) AND V/REF(V,1) =1.91),COLORYELLOW;
BB:=净买
净买天数:BARSLAST(BB),COLORRED,NODRAW;
三净买:SUM(净买,3),COLORMAGENTA,LINETHICK1,NODRAW;
五净买:SUM(净买,5),COLORYELLOW,LINETHICK1,NODRAW;
十净买:SUM(净买,10),COLORWHITE,LINETHICK1,NODRAW;
STICKLINE(主买-主卖 0,0,主买,2,0),COLORRED,LINETHICK2;
STICKLINE(主买-主卖 0,0,主卖,2,0),COLORGREEN,LINETHICK2;
DRAWTEXT(买卖比 4,主买*1.88,'抢'),COLORYELLOW;
DRAWTEXT(倍量,主买*1.23,'倍'),COLORYELLOW;
DRAWTEXT(主买力度 9,主买*3,'强'),COLORWHITE;
DRAWTEXT(主买力度 9,主买*2,'力'),COLORWHITE;