通达信资金净流入指标选股公式
-
相关简介:公式源码: VOL,VOLSTICK; VAR1:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN)); 成交:VOL; 主买:IF(CLOSEOPEN,VAR1*(HIGH-LOW), IF(CLOSEOPEN,VAR1*((HIGH-OPEN)+(CLOSE-LOW)),VOL/2))*1.5,COLORRED,LINETHICK2; 主卖:IF(CLOSEOPEN,0-VAR1*((HIGH-CLOSE)+(OPEN-LOW)), IF(CLOSEOPEN,0-VAR1*
-
文章来源:股海网作者:股海网发布时间:2014-01-05浏览次数:
公式源码:
VOL,VOLSTICK;
VAR1:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN));
成交:VOL;
主买:IF(CLOSE>OPEN,VAR1*(HIGH-LOW),
IF(CLOSE<OPEN,VAR1*((HIGH-OPEN)+(CLOSE-LOW)),VOL/2))*1.5,COLORRED,LINETHICK2;
主卖:IF(CLOSE>OPEN,0-VAR1*((HIGH-CLOSE)+(OPEN-LOW)),
IF(CLOSE<OPEN,0-VAR1*(HIGH-LOW),0-VOL/2))*1.5,COLORGREEN,LINETHICK2;
AA:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN));
买量:=IF(CLOSE>OPEN,AA*(HIGH-LOW),IF(CLOSE<OPEN,AA*((HIGH-OPEN)+(CLOSE-LOW)),VOL/2)),LINETHICK0,COLORRED;
卖量:=IF(CLOSE>OPEN,0-AA*((HIGH-CLOSE)+(OPEN-LOW)),IF(CLOSE<OPEN,0-AA*(HIGH-LOW),0-VOL/2)),LINETHICK0,COLORGREEN;
进出量:=买量+卖量,COLORWHITE;
N:=4;
净流入:SUM(进出量,N),LINETHICK0,COLORMAGENTA;
换手: VOL/CAPITAL*100,VOLSTICK , COLORYELLOW;
市值: CAPITAL/100*CLOSE/10000, COLORCYAN;
条件选股公式:
第一个是:今日净流入大于昨日的20以上;第二个是:今日净流入大于昨日净流入。
VAR1:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN));
主买:=IF(CLOSE>OPEN,VAR1*(HIGH-LOW),
IF(CLOSE<OPEN,VAR1*((HIGH-OPEN)+(CLOSE-LOW)),VOL/2))*1.5;
主卖:=IF(CLOSE>OPEN,0-VAR1*((HIGH-CLOSE)+(OPEN-LOW)),
IF(CLOSE<OPEN,0-VAR1*(HIGH-LOW),0-VOL/2))*1.5;
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));
进出量:=买量+卖量;
进出量>1.2*ref(进出量,1);{今日净流入大于昨日的20以上}
进出量>ref(进出量,1); {今日净流入大于昨日净流入}