通达信小金鱼成交量公式
{小金鱼成交量}
VOLUME:VOL,VOLSTICK;
VAR1:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN));
主买: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(主买>0,0,主买,2,0),COLORRED;
{STICKLINE(主卖>0,主买,VOL,2,1),COLOR00FF80;}
STICKLINE(主买<REF(主买,1)AND 主买>0,0,主买,2,0),COLOR00FFFF;主力成本:COST(5),POINTDOT;
获利了结: COST(98),POINTDOT;N:=20,NODRAW;
T1:=CONST(HHVBARS(V,N));
反转A:IF(CURRBARSCOUNT<=N+7,CONST(IF(T1=0,C,REF(C,T1))),DRAWNULL),COLORWHITE;
DRAWNUMBER(CURRBARSCOUNT=1,反转A*0.922,反转A),COLORRED;
IF(CURRBARSCOUNT=T1+1,反转A,DRAWNULL),,COLORMAGENTA;
DRAWTEXT(ISLASTBAR,反转A*0.962,' 反转平台');
V2:MA(VOLUME,2),LINETHICK3;
V3:MA(VOLUME,3),LINETHICK3;
V15:MA(VOLUME,15),LINETHICK3;
换手:VOL/CAPITAL*100,POINTDOT;
十日换手:SUM(换手,10);
成交额(千万):AMOUNT/10000000,POINTDOT;
流通盘(亿):CAPITAL/1000000,POINTDOT;
流通市值(亿):(CAPITAL/100*C)/10000,POINTDOT,COLOR33CCFF;
400; |