公式源碼: 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; 進(jìn)出量:=買量+賣量,COLORWHITE; N:=4; 凈流入:SUM(進(jìn)出量,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)); 進(jìn)出量:=買量+賣量; 進(jìn)出量>1.2*ref(進(jìn)出量,1);{今日凈流入大于昨日的20以上} 進(jìn)出量>ref(進(jìn)出量,1); {今日凈流入大于昨日凈流入}
|