资金流向买入之买选股指标公式

VAR1:=AMOUNT/((HIGH-LOW)*2-Abs(CLOSE-OPEN));

流入亿:=IF(CLOSE>OPEN,VAR1*(HIGH-LOW),IF(CLOSE<OPEN,VAR1*((HIGH-OPEN)+(CLOSE-LOW)),AMOUNT/2))/100000000;

流出亿:=IF(CLOSE>OPEN,0-VAR1*((HIGH-CLOSE)+(OPEN- LOW)),IF(CLOSE<OPEN,0-VAR1*(HIGH-LOW),0-AMOUNT/2))/100000000;

差亿:=流入亿+流出亿;

净:=EMA(EMA(差亿,2),2);

净1:=EMA(净,2);

流:=EMA(净1,7);

净流:=3*EMA(净1+流,2);买:crOSS(净流,0);