外資廣度指標

By | 2022-07-01

今年這一波空頭市場,外資一直意志堅定的站在賣方:

拉長來看,外資長期站在那一邊,幾乎與大盤的波段趨勢同步。

解鈴還需繋鈴人,行情何時到底?還是要看外資何時回心轉意開始由空偏多。

一般大家在看外資動向時,看的都是外資買賣超,今天跟大家介紹一個不一樣的角度:看看外資買超的指標股家數,也就是不看買超金額,而是看買超家數。

這個自訂指標我稱之為「外資廣度指標」。

下面是我寫的腳本:

array:lead[100](0);
lead[1]=GetSymbolField("1102.tw","外資買賣超張數","D");//台泥
lead[2]=GetSymbolField("2317.tw","外資買賣超張數","D");//鴻海
lead[3]=GetSymbolField("1216.tw","外資買賣超張數","D");//統一
lead[4]=GetSymbolField("1301.tw","外資買賣超張數","D");//台塑
lead[5]=GetSymbolField("1304.tw","外資買賣超張數","D");//台聚
lead[6]=GetSymbolField("1312.tw","外資買賣超張數","D");//國喬
lead[7]=GetSymbolField("1326.tw","外資買賣超張數","D");//台化
lead[8]=GetSymbolField("1455.tw","外資買賣超張數","D");//集盛
lead[9]=GetSymbolField("1476.tw","外資買賣超張數","D");//儒鴻
lead[10]=GetSymbolField("1477.tw","外資買賣超張數","D");//聚陽
lead[11]=GetSymbolField("1513.tw","外資買賣超張數","D");//中興電
lead[12]=GetSymbolField("1515.tw","外資買賣超張數","D");//力山
lead[13]=GetSymbolField("1521.tw","外資買賣超張數","D");//大億
lead[14]=GetSymbolField("1527.tw","外資買賣超張數","D");//鑽全
lead[15]=GetSymbolField("1560.tw","外資買賣超張數","D");//中砂
lead[16]=GetSymbolField("1565.tw","外資買賣超張數","D");//精華
lead[17]=GetSymbolField("1582.tw","外資買賣超張數","D");//信錦
lead[18]=GetSymbolField("1605.tw","外資買賣超張數","D");//華新
lead[19]=GetSymbolField("1717.tw","外資買賣超張數","D");//長興
lead[20]=GetSymbolField("1723.tw","外資買賣超張數","D");//中碳
lead[21]=GetSymbolField("1726.tw","外資買賣超張數","D");//永記
lead[22]=GetSymbolField("1736.tw","外資買賣超張數","D");//喬山
lead[23]=GetSymbolField("1773.tw","外資買賣超張數","D");//勝一
lead[24]=GetSymbolField("1795.tw","外資買賣超張數","D");//美時
lead[25]=GetSymbolField("1907.tw","外資買賣超張數","D");//永豊餘
lead[26]=GetSymbolField("2002.tw","外資買賣超張數","D");//中鋼
lead[27]=GetSymbolField("2006.tw","外資買賣超張數","D");//東鋼
lead[28]=GetSymbolField("2015.tw","外資買賣超張數","D");//豊興
lead[29]=GetSymbolField("2029.tw","外資買賣超張數","D");//盛餘
lead[30]=GetSymbolField("2027.tw","外資買賣超張數","D");//大成鋼
lead[31]=GetSymbolField("2031.tw","外資買賣超張數","D");//新光鋼
lead[32]=GetSymbolField("2049.tw","外資買賣超張數","D");//上銀
lead[33]=GetSymbolField("2059.tw","外資買賣超張數","D");//川湖
lead[34]=GetSymbolField("2103.tw","外資買賣超張數","D");//台橡
lead[35]=GetSymbolField("2105.tw","外資買賣超張數","D");//正新
lead[36]=GetSymbolField("2204.tw","外資買賣超張數","D");//中華車
lead[37]=GetSymbolField("2207.tw","外資買賣超張數","D");//和泰車
lead[38]=GetSymbolField("2231.tw","外資買賣超張數","D");//為升
lead[39]=GetSymbolField("2233.tw","外資買賣超張數","D");//宇隆
lead[40]=GetSymbolField("2301.tw","外資買賣超張數","D");//光寶
lead[41]=GetSymbolField("2303.tw","外資買賣超張數","D");//聯電
lead[42]=GetSymbolField("2308.tw","外資買賣超張數","D");//台達電
lead[43]=GetSymbolField("2313.tw","外資買賣超張數","D");//華通
lead[44]=GetSymbolField("2324.tw","外資買賣超張數","D");//仁寶
lead[45]=GetSymbolField("2327.tw","外資買賣超張數","D");//國巨
lead[46]=GetSymbolField("2330.tw","外資買賣超張數","D");//台積電
lead[47]=GetSymbolField("2337.tw","外資買賣超張數","D");//旺宏
lead[48]=GetSymbolField("2344.tw","外資買賣超張數","D");//華邦電
lead[49]=GetSymbolField("2345.tw","外資買賣超張數","D");//智邦
lead[50]=GetSymbolField("2347.tw","外資買賣超張數","D");//聯強
lead[51]=GetSymbolField("2352.tw","外資買賣超張數","D");//佳世達
lead[52]=GetSymbolField("2353.tw","外資買賣超張數","D");//宏碁
lead[53]=GetSymbolField("2354.tw","外資買賣超張數","D");//鴻準
lead[54]=GetSymbolField("2357.tw","外資買賣超張數","D");//華碩
lead[55]=GetSymbolField("2368.tw","外資買賣超張數","D");//金像電
lead[56]=GetSymbolField("2376.tw","外資買賣超張數","D");//技嘉
lead[57]=GetSymbolField("2377.tw","外資買賣超張數","D");//微星
lead[58]=GetSymbolField("2379.tw","外資買賣超張數","D");//瑞昱
lead[59]=GetSymbolField("2382.tw","外資買賣超張數","D");//廣達
lead[60]=GetSymbolField("2383.tw","外資買賣超張數","D");//台光電
lead[61]=GetSymbolField("2385.tw","外資買賣超張數","D");//群光
lead[62]=GetSymbolField("2393.tw","外資買賣超張數","D");//億光
lead[63]=GetSymbolField("2395.tw","外資買賣超張數","D");//研華
lead[64]=GetSymbolField("2408.tw","外資買賣超張數","D");//南亞科
lead[65]=GetSymbolField("2409.tw","外資買賣超張數","D");//友達
lead[66]=GetSymbolField("2439.tw","外資買賣超張數","D");//美律
lead[67]=GetSymbolField("2449.tw","外資買賣超張數","D");//京元電
lead[68]=GetSymbolField("2454.tw","外資買賣超張數","D");//聯發科
lead[69]=GetSymbolField("2603.tw","外資買賣超張數","D");//長榮
lead[70]=GetSymbolField("2606.tw","外資買賣超張數","D");//裕民
lead[71]=GetSymbolField("2610.tw","外資買賣超張數","D");//華航
lead[72]=GetSymbolField("2615.tw","外資買賣超張數","D");//萬海
lead[73]=GetSymbolField("2707.tw","外資買賣超張數","D");//晶華
lead[74]=GetSymbolField("2729.tw","外資買賣超張數","D");//瓦城
lead[75]=GetSymbolField("2731.tw","外資買賣超張數","D");//雄獅
lead[76]=GetSymbolField("2912.tw","外資買賣超張數","D");//統一超
lead[77]=GetSymbolField("3008.tw","外資買賣超張數","D");//大立光
lead[78]=GetSymbolField("3034.tw","外資買賣超張數","D");//聯詠
lead[79]=GetSymbolField("3037.tw","外資買賣超張數","D");//欣興
lead[80]=GetSymbolField("3042.tw","外資買賣超張數","D");//晶技
lead[81]=GetSymbolField("3130.tw","外資買賣超張數","D");//104
lead[82]=GetSymbolField("3231.tw","外資買賣超張數","D");//緯創
lead[83]=GetSymbolField("3406.tw","外資買賣超張數","D");//玉晶光
lead[84]=GetSymbolField("3481.tw","外資買賣超張數","D");//群創
lead[85]=GetSymbolField("3576.tw","外資買賣超張數","D");//聯合再生
lead[86]=GetSymbolField("3665.tw","外資買賣超張數","D");//貿聯
lead[87]=GetSymbolField("3702.tw","外資買賣超張數","D");//大聯大
lead[88]=GetSymbolField("3707.tw","外資買賣超張數","D");//漢磊
lead[89]=GetSymbolField("3708.tw","外資買賣超張數","D");//上緯
lead[90]=GetSymbolField("3711.tw","外資買賣超張數","D");//日月光
lead[91]=GetSymbolField("3714.tw","外資買賣超張數","D");//富采
lead[92]=GetSymbolField("4438.tw","外資買賣超張數","D");//廣越
lead[93]=GetSymbolField("5434.tw","外資買賣超張數","D");//崇越
lead[94]=GetSymbolField("6269.tw","外資買賣超張數","D");//台郡
lead[95]=GetSymbolField("6285.tw","外資買賣超張數","D");//啟碁
lead[96]=GetSymbolField("6505.tw","外資買賣超張數","D");//台塑化
lead[97]=GetSymbolField("9910.tw","外資買賣超張數","D");//豊泰
lead[98]=GetSymbolField("9921.tw","外資買賣超張數","D");//巨大
lead[99]=GetSymbolField("8299.tw","外資買賣超張數","D");//群聯
lead[100]=GetSymbolField("8086.tw","外資買賣超張數","D");//宏捷科
variable:i(0),count(0);
count=0;
for i=1 to 100 begin
if lead[i]>=lead[i][1] 
and lead[i]>=100
//外資買超大於100張,且不比前一天少
then 
count=count+1;
end;
plot1(average(count,15),"外資廣度指標");



根據這個腳本,畫出來的圖如下:

 

 

這是算出每天符合外資買超超過100張且買超張數不比前一天少的指標股家數,然後取15日移動平均。

這個數字如果突破25,通常後市仍有高點,如果超過30,就要小心高處不勝寒。

如果這個指標呈現上升趨勢,表示外資愈買愈多的股票數在增加,呈現下跌趨勢,則是外資縮手的情況愈來愈普遍。