以下是通达信庄买卖量成交主买倍量指标详解源码

庄买卖量(成交、主买、倍量)-指标公式源码

量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:=净买<0;
净买天数: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;

声明:本站所有文章,如无特殊说明或标注,均为本站原创发布。任何个人或组织,在未征得本站同意时,禁止复制、盗用、采集、发布本站内容到任何网站、书籍等各类媒体平台。如若本站内容侵犯了原著者的合法权益,可联系我们进行处理。