上证指数和深成指中的vol是怎样计算出来的?
动买卖盘资”“主动买卖盘资金”指标==================================================量:=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(流入资金>流出资金,流入资金,流出资金,6,0),colorred;stickline(流入资金<流出资金,流出资金,流入资金,6,0),colorgreen; 20210311