量:=vol;
额:=AMOUNT/10000000;
AA:=VOL/((HIGH-LOW)*2-Abs(CLOSE-OPEN));
主买:=IF(CLOSE>OPEN,AA*(HIGH-LOW),IF(CLOSE<OPEN,AA*((HIGH-OPEN)+(CLOSE-LOW)),VOL/2));
{ _最新股票指标公式}
主卖:=IF(CLOSE>OPEN,0-AA*((HIGH-CLOSE)+(OPEN-LOW)),IF(CLOSE<OPEN,0-AA*(HIGH-LOW),0-VOL/2));
换手:VOL/CAPITAL*100;
流通盘:CAPITAL/1000000;
流入资金:MA(主买,4);
流出资金:MA((0-主卖),4);
BB:=(主买+主卖);
STICKLINE(流入资金>流出资金,流入资金,流出资金,1.6,0),COLORRED;
STICKLINE(流入资金<流出资金,流出资金,流入资金,1.6,0),COLORGREEN;