盤整跳空法人買超股

By | 2023-03-16

蠻多人都喜歡那種盤整幾天後跳空上漲的個股,我同事發現,如果這樣的股票追高的買氣是來自法人,那麼短線上漲的機率就高很多。

要符合這種情況的個股,需要具備下列條件

一,近期呈現盤整格局

二,最近一個交易日開盤跳空向上

三,股本超過12億

四,法人買超張數佔成交量扣除當沖的張數比重要非常的高

以下是我同事寫的腳本

Input:SPeriod(2); 
Input:Len(12); 
Var:Amount(0),Ratio(0); 

// 計算 
Amount=GetField("法人買賣超張數"); 
Ratio=100*Summation(Amount,SPeriod)/Summation(V-GetField("當日沖銷張數"),SPeriod);

Value1=Highest(H[1],Len); 
Value2=Lowest(L[1],Len); 
//---------------------------------------- 
// 選股條件 

// 盤整區間 
Condition2=Value1<1.045*Value2; 
// 開盤跳空 
ConditIon3=O>1.015*H[1]; 
// 股本>12E 
Condition4=GetField("股本(億)","D")>12; 
// 個股條件 
Condition100=Condition2 and Condition3 and Condition4; 

//---------------------------------------- 
// 選股條件 

// 法人區間買超 
Condition101=Ratio>=1.8; 
// 個股條件(籌碼相關) 

// 篩選 
If Condition100 and Condition101 Then 
Ret=1; 


 

拿這個腳本去回測過去比年的所有普通股,停損停利設為7%,回測報告如下圖

這是一個勝率及績效都算穩定的交易策略,大家可以再看看怎麼優化它