优化成交量(副图)-指标公式源码
VAR1:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN));
量:AMOUNT/100000000,NODRAW;
买:IF(CLOSE>OPEN,VAR1*(HIGH-LOW),IF(CLOSE<OPEN,VAR1*((HIGH-OPEN)+(CLOSE-LOW)),VOL/2)),COLORRED,POINTDOT;
卖:IF(CLOSE>OPEN,VAR1*((HIGH-CLOSE)+(OPEN-LOW)),IF(CLOSE<OPEN,VAR1*(HIGH-LOW),VOL/2)),COLOR00FF00,POINTDOT;
STICKLINE(VOL>0,VOL,0,2,0),COLORMAGENTA;
STICKLINE(买>0,0,买,2,0),COLORRED;
STICKLINE(卖>0,0,卖,0.8,0),COLOR00FF00;
比%:买/VOL*100,COLORWHITE,NODRAW;
启:MA(V,5)COLORGREEN;
洗:MA(V,35)COLORRED;
异:MA(V,135)COLORWHITE;
换:VOL/CAPITAL*100,POINTDOT COLORMAGENTA;
五换:SUM(换,5),COLORYELLOW;
十换:SUM(换,10),COLORGREEN;
二十换:SUM(换,20),COLORFFFFFF;
三十换:SUM(换,30),COLORYELLOW;
A股:CAPITAL/1000000,LINETHICK0,COLORWHITE;
DRAWTEXT(CROSS(启,洗)AND V>洗 AND V>异 AND 洗<异,V,'★'),COLORYELLOW;