選股
投信
Input:SITCARatioThreshold(1.5);
Var:SITCA(0), SITCARatio(0), NetV(0), SVR(0);
SITCA = GetField("投信買賣超", "D");
SITCARatio = GetField("投信持股比例", "D");
NetV = V - GetField("當日沖銷張數", "D");
SVR = SITCA / NetV;
Condition1 = trueall(V > 500, 5); // 最近 5 天的成交量都超過 500 張
Condition2 = SVR > SVR[1] and SVR >= 0.10 and SVR[1] > 0.05; // 投信的買超增加,而且近 1 天佔超過 10%,前一天超過 5%
Condition3 = SITCARatio < SITCARatioThreshold; // 投信持股比例小於 1.5%
Condition4 = (C-O) / O >= 0.04; // 成交價與開盤價比超過 4%(當日收紅 K)
Condition100=Condition1 and Condition2 and Condition3 and Condition4;
If Condition100 Then Ret=1;