流通盘(亿):CAPITAL/1000000,COLORLIBLUE;
成交额(亿):AMOUNT/100000000,COLORYELLOW,LINETHICK1;
买:=IF(O=C AND (C-REF(C,1))/REF(C,1)*100>9.8,AMOUNT,AMOUNT/((H-L)*2-Abs(O-C))*(C-L));
买%:=买/AMOUNT*100,COLORMAGENTA,NODRAW;
流入亿元:AMOUNT*买%/10000000000,COLORRED,NODRAW;
流出亿元:AMOUNT/100000000-流入亿元,COLORGREEN,NODRAW;
{ _通达信股票指标公式}
BB:=vol/((HIGH-LOW)*2-ABS(CLOSE-OPEN));
主动买:=IF(CLOSE>OPEN,BB*(HIGH-LOW),IF(CLOSE<OPEN,BB*((HIGH-OPEN)+(CLOSE-LOW)),VOL/2));
主买:=主动买/10000;
主动卖:=IF(CLOSE>OPEN,0-BB*((HIGH-CLOSE)+(OPEN-LOW)),IF(CLOSE<OPEN,
0-BB*(HIGH-LOW),0-VOL/2))*-1,LINETHICK1,COLORGREEN;
主卖:=主动卖/10000;
主卖1:=主动卖-主动买;
EXPM:=expma(主卖1,10),COLORGRAY,DOTLINE;
EXPM0.1:EXPMA(EXPM,2),COLORCYAN,LINETHICK1;
EXPM0.2:=EXPMA(EXPM0.1,2),COLORGREEN,LINETHICK1;
EXPM0.3:EXPMA(EXPM0.2,2),COLORWHITE,LINETHICK1;