同花顺获利比副图指标 源码介绍
同花顺获利比副图指标 源码
本指标通过对成交量的计算,配合价格走势,揭示主力的进出情况。
红柱代表今天买盘大于卖盘的差额,蓝柱代表今天卖盘大于买盘的差额。
使用指标时请配合大盘、成交量等因素综合判断。
获利比:IF(WINNER(CLOSE),WINNER(CLOSE)*100,20);
VOLUME:=MA(VOL,1),COLOR005000;
MA5:MA(VOL,5),COLOR400080;
MA10:MA(VOL,10),COLOR808080;
AA:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN));
买量:IF(CLOSE>OPEN,AA*(HIGH-LOW),IF(CLOSE<OPEN,AA*((HIGH-OPEN)+(CLOSE-LOW)),
VOL/2)),colorred, LINETHICK0;
卖量:IF(CLOSE>OPEN,0-AA*((HIGH-CLOSE)+(OPEN-LOW)),IF(CLOSE<OPEN,0-AA*(HIGH-LOW),0-VOL/2)),colorgreen,LINETHICK0;
进出量:买量+卖量,COLOR400080;
VAR7B:=IF(TROUGHBARS(3,6,1)=0 AND HIGH>LOW+0.04,4,0);
STICKLINE(REF(VAR7B>0,1),VOL,0,2.1,0),coloryellow,LINETHICK1;
买:REF(VAR7B>0,1),coloryellow,LINETHICK1;
VAR3:=PEAKBARS(3,6,1)<10;
VAR5:=IF(VAR3=1,2,0);
顶:= IF(VAR5=2,2,0);
卖:顶>REF(顶,1),colorgreen;
STICKLINE(顶>REF(顶,1),VOL,0,2.1,0),colorgreen;
STICKLINE(进出量<0,0,进出量,3.0,0),COLORFF6600;
STICKLINE(进出量<0,0,进出量,2.0,0),COLORFF9900;
STICKLINE(进出量<0,0,进出量,0.0,0),COLORFFCC00;
STICKLINE(进出量<0,0,进出量,0.0,0),COLORFFCC00;
STICKLINE(进出量<0,0,进出量,0.0,0),colorcyan;
STICKLINE(进出量>0,0,进出量,3.0,0),COLOR000099;
STICKLINE(进出量>0,0,进出量,2.0,0),COLOR0000CC;
STICKLINE(进出量>0,0,进出量,0.0,0),COLOR0000FF;
STICKLINE(进出量>0,0,进出量,0.0,0),COLORCC66FF;
gd47082