Author Archives: 發財橘子

短線交易之10分鐘K多次探底後回昇

先前有跟大家提過我作當沖或隔日沖時,喜歡的型態,其中一個就是多次打下去就彈上來,殺了幾次空頭肯定會手軟,這時極可能就是短線作多的好機會

於是我請公司的高手高手高高手寫了以下的腳本

value1=lowest(C,5);
//5期最低收盤價
value5=average(C,10);
//5期均價
condition1=L<value1 and minlist(C,O)>L*1.005;
//低比近5最低收盤價還低且影線長度要有
condition2=condition1 and C>O;
//上面那個條件加上紅K
value3=countif(condition1,10);
//最近影線的次數
value4=countif(condition2,5);
//紅K且影線的次數
if value3 crosses over 2 and value4>0 and C<value5 and C>value1[1] then ret=1;
//如果影線次數三次或以上而且裡面有一個是紅K而且前一段為空頭且收盤不破收盤底就出訊號

用這個腳本去跑先前介紹過的觀察名單,近半年的回測,停損停利都設為7%,回測報告如下

2019032601

雖然空頭市場也是輸,但整體績效算是比大盤好上不少。

 

從細產業指標看今年的產業輪動現象

今年受到中美貿易戰,智慧型手機市場漸趨成熟的影響,台股在產業輪動上,出現了一些微妙的變化,我想透過XQ產業模組中的細產業指標,跟大家分享我的一些觀察。

一,市場交易重心集中在關鍵零組件

下圖是昨天各細產業佔市場總成交量比重排名靠前的細產業

2019032501

扣除第一個中概股指標之外,其餘細產業裡,主要的重心還是在像光學鏡頭,被動元件,PCB,軟板以及半導體從製造,設計到封裝,代表整個市場的重心主要還是在尋找IT供應

水泥業是少數例外,這跟今年大陸華中地區水泥價格居高不下息息相關。

二,表現好的也主要集中在關鍵零組件

下圖是今年以來各個細產業的漲幅超過15%的細產業

2019032602這份名單顯示,目前的台股市場結構中,IT相關零組件的相關題材,還是最容易受市場各方勢力的認同。

三,近一個月開始出現各種題材百花爭鳴

下圖是近一個月漲幅排名靠前的細產業

2019032503

可以發現,像是internet相關,軟體,自行車,原料藥,飛機零組件等等傳產,生化,軟體等非3C硬體製造行業,開始冒出一些表現不錯的股票,顯示在股東會密集召開前夕,非市場主流產業的大股東們,也很賣力的在爭取市場的認同。

我很習慣從一到三月的產業輪動,去了解今年市場有沒有新興的細產業可能變成當年主流,例如大家可以看下圖

2019032504

我們會發現,去年初被動元件細產業是領先大盤創新高的

同理,我們今年可以特別留意那些領先大盤的細產業

下圖是各種常用指數跟細產業指數今年以來的漲幅排名

2019032505

從上圖,至少我們要特別留意今年漲幅是比中型100指數表現更好的細產業。

 

不用寫程式就能設計,回測及執行交易策略的方法

一個成功的交易策略,需要投資智慧加上程式設計能力,前者才能歸納出有效的交易規則,後者才能把規則變成電腦可以了解並自動執行的程序。 但難就難在,有投資智慧的人,大都不會寫程式,會寫程式的人,還在累積投資智慧中,很多XQ的客戶,一直希望我們可以發展出不用寫程式,就能讓他把投資規則自動轉換為程式的方法,今天這一篇就是來介紹Step by Step,試著用現成的工具,不寫程式地完成交易策略的方法。

一個股票的交易策略,通常包括了選股及交易時機兩個課題,前者在XS是放在選股平台中來完成,後者則是需要用策略雷達。我試著舉例,不寫程式的,透過這兩個平台,完成一個可以實戰的交易策略。

如果您的交易標的是所有的普通股,不用選股,或是您有一組手作的自選股名單,程式是用來選擇交易的時點,那麼您可以從DJscript編輯器,或策略雷達中,找出您要跑的內建策略

例如暴量起漲  ,然後按加入雷達,在選擇執行商品時,您的自選股或所有商品即可

2019032212

 

要回測這個策略好不好,在DJscript上按回測,會跳出以下的視窗

2019032213

把參數及出場條件設好,就可以回測了

如果您是從選股到交易時機都要自動化,流程會複雜一點,

我舉個例子跟大家說明

首先,先跟大家介紹我的交易策略

我是希望找到

1.獲利穩定的公司

2.昨天主力買超

3.營收年增率在所有股票中,排名前 5 00名

4.過去一陣子箱型整理後昨天突破

5.今天暴量起漲

前三者是選股條件,第四個則是進場時機

首先,打開XS的選股中心,為這個選股策略取個名字,然後請參考下圖的步驟

2019032201

1.先選擇”選股條件”這個頁籤

2.透過2的關鍵字查詢功能,輸入”EPS”這三個字後,

3.系統列出內建跟EPS相關的選股條件,選擇資料頻率是年

4.從中挑到連續N年每股稅後淨利都大於M元的選股條件,然後把參數 5跟2填進去。

5.點撃該選股條件前面的”+”號,就可以把這條件加進您的策略中

 

接下來如下圖,用同樣的方法,把近一日主力買超大於500張加到策略中

2019032202

接下來把頁籤從”選股條件”切換為”排行規則”,如下圖

2019032203

接下來再把頁籤從”排行規則”切換到”選股腳本”,輸入”箱”這個字,然後找出箱型整理突破的腳本,把它加入選股策略中

2019032204

然後把上圖排行前30名的參數改成500,之後再按完成鍵就可以完成選股策略,這樣就可以挑出符合條件的股票如下圖

2019032205

接上來必須把這個選股策略每天的選股結果要能夠被拿到策略雷達中來使用,這樣才能在符合選股條件的標的,盤中暴量起漲時進場,所以要把這個選股策略設為每日自動執行

2019032206

設為每日自動執行之後,接下來請打開Djscript編輯器,輸入關鍵字”暴量” 這樣就可以找到系統內建的暴量剛起漲這個腳本,然後按上方的”加入雷達”按鈕

2019032209

這時就會跳出策略雷達的設定頁,

2019032210

請在執行商品的地方引用您的選股策略

這樣完整的交易策略就設定完成了

從頭到尾是不是沒有寫過一行程式碼呢?

如果要知道這策略能不能用,請在編輯器裡按回測

2019032211

執行的的標的記得按選股,然後找出選股策略

這樣就可以回測了

回測後如果數字不滿意,可以調整左邊的參數調整區,找到最佳的參數

(不過因為是舉例,這個策略的回測效果不好,大家千萬別用)

 

透過以上的流程,一行程式碼都不用寫,引用系統內建的腳本,一樣可以把一個交易策略從設計,回測到執行通通做完。

接下來我們會一直收集各種常用的投資智慧,把它放到系統內建的腳本中,讓大家只要調整數不用寫程式,就可以把自己的投資智慧完全程式化。

不過我想大家可能覺得這樣的介面好複雜,原因是當初是希望讓會寫程式的朋友跟不會寫程式的朋友都可以使用同一個介面,人家說有一好就沒有兩好,我們接下來會思考如何讓不會寫程式的朋友有專屬的,更簡化的頁面,不過要做的事情很多,工程師有限,PM也缺稀,現階段我們先讓大家有更多的內建腳本可以直接引用比較實在。

 

 

 

選股常用語的對應程式集(二)

昨天的常用語法反應熱烈,我這人很簡單,基本就是個人來瘋,所以今天就繼續分享選股時經常用到的常用語法。

一,RSI低檔回昇

input:period(12,"計算天期");
input:limitline(20,"低點位置");
if rsi(close,period) cross over limitline
then ret=1;

二,股價轉強

input:length(10);
 
variable: sumUp(0), sumDown(0), up(0), down(0),RS(0);
 
if CurrentBar = 1 then
 
begin
 
sumUp = Average(maxlist(close - close[1], 0), length);
 
sumDown = Average(maxlist(close[1] - close, 0), length);
 
end
 
else
 
begin
 
up = maxlist(close - close[1], 0);
 
down = maxlist(close[1] - close, 0);
 
 
sumUp = sumUp[1] + (up - sumUp[1]) / length;
 
sumDown = sumDown[1] + (down - sumDown[1]) / length;
 
end;
 
if sumdown<>0
 
then rs=sumup/sumdown;
 
if rs crosses over 4
 
 
then ret=1;

這裡用的是相對強度RS來作為轉強的衡量標準

三,連續幾日都出量

input:z(20,"均量計算天期");
input:n(2000,"均量上限");
input:m(2,"近幾日天期數");
input:k(4000,"近幾日量下限");

if average(volume,z)[m-1]<n
and trueall(volume>k,m)
then ret=1;

上面的參數是說過去 20天均量不到兩千張但近兩天成交量都超過四千張,這四個數字都是可以自行調整的。

四,RSI背離

value1=rsi(close,10);
if deviate(close,value1,10)=1
 and linearregslope(value1,10)>0.45
then ret=1;

這裡用到deviate這個自訂函數,函數的腳本如下

input:price(numericsimple),index1(numericsimple),length(numericsimple);
if length<5
then raiseruntimeerror("計算期別請超過五期");
value1=linearregslope(price,length);
value2=linearregslope(index1,length);

if value1>0 and value2<0
then deviate=-1
else
if value1<0 and value2>0
then deviate=1
else
deviate=0;

如果第一個數列往下走而第二個數列往上時,deviate的回傳值是1,如果第一個數列往上走而第二個數列往下時,回傳值是-1,如果兩個數列同方向,回傳值是0

上面的腳本裡的意思就是過去十天股價往下走,但RSI是往上走。

五,盤整後價量都創區間新高

input:period(20,"盤整的天數");
input:day(2,"創高的期別");
input:ratio(5,"盤整的最大波動範圍");
if highest(close,period)[1]<lowest(close,period)[1]*(1+ratio/100)
//過去一段期間上下震盪不到一定的百分比
and close > highest(high,day)[1]
//價過兩日高
and volume >average(volume,day)[1]
//量比兩日多
and close>average(close,5)
//站上五日均線
then ret=1;

六,籌碼被收集中

value1=GetField("買進公司家數","D");
value2=GetField("賣出公司家數","D");
input:day(10,"計算天數");
input:count(6,"符合條件天數");
if countif(value1<value2,day)>=count
then ret=1;

一段時間裡有超過多少天買進家數少於賣出家數,代表籌碼從眾多的券商分公司進到少數特定的券商分點。

七,排除特定行業的寫法

settotalbar(1);

input:exclude_1(0, "排除XQ建築");
input:exclude_2(0, "排除XQ金融");
input:exclude_3(0, "排除XQ航運");

variable: XQ_group (callfunction("XQ_類股"));
variable: XS_industry_group (callfunction("XS_行業組"));
variable: XS_industry (callfunction("XS_行業"));
variable: XS_sub_industry (callfunction("XS_子行業"));

condition1 = true;
if exclude_1 = 1 and XQ_group = "建材營造" then condition1 = false;
if exclude_2 = 1 and XQ_group = "金融保險" then condition1 = false;
if exclude_3 = 1 and XQ_group = "航運業" then condition1 = false;
if condition1 = true then ret = 1;

outputfield(1, XQ_group, 0, "XQ 類股");

有時候選股策略想要排除特定行業,上面的例子是排除金融業,房地產業及航運業。

這裡有用callfunction呼叫了一個函數XQ_類股

函數的腳本如下

Switch(Symbol)
Begin
 case "1101.TW" : retval = "水泥";
 case "1102.TW" : retval = "水泥";
 case "1103.TW" : retval = "水泥";
 case "1104.TW" : retval = "水泥";
 case "1108.TW" : retval = "水泥";
 case "1109.TW" : retval = "水泥";
 case "1110.TW" : retval = "水泥";
 case "1201.TW" : retval = "食品";
 case "1203.TW" : retval = "食品";
 case "1210.TW" : retval = "食品";
 case "1213.TW" : retval = "食品";
 case "1215.TW" : retval = "食品";
 case "1216.TW" : retval = "食品";
 case "1217.TW" : retval = "食品";
 case "1218.TW" : retval = "食品";
 case "1219.TW" : retval = "食品";
 case "1220.TW" : retval = "食品";
 case "1225.TW" : retval = "食品";
 case "1227.TW" : retval = "食品";
 case "1229.TW" : retval = "食品";
 case "1231.TW" : retval = "食品";
 case "1232.TW" : retval = "食品";
 case "1233.TW" : retval = "食品";
 case "1234.TW" : retval = "食品";
 case "1235.TW" : retval = "食品";
 case "1236.TW" : retval = "食品";
 case "1256.TW" : retval = "食品";
 case "1702.TW" : retval = "食品";
 case "1737.TW" : retval = "食品";
 case "1258.TW" : retval = "食品";
 case "1264.TW" : retval = "食品";
 case "4205.TW" : retval = "食品";
 case "4207.TW" : retval = "食品";
 case "4712.TW" : retval = "食品";
 case "1301.TW" : retval = "塑膠";
 case "1303.TW" : retval = "塑膠";
 case "1304.TW" : retval = "塑膠";
 case "1305.TW" : retval = "塑膠";
 case "1307.TW" : retval = "塑膠";
 case "1308.TW" : retval = "塑膠";
 case "1309.TW" : retval = "塑膠";
 case "1310.TW" : retval = "塑膠";
 case "1312.TW" : retval = "塑膠";
 case "1313.TW" : retval = "塑膠";
 case "1314.TW" : retval = "塑膠";
 case "1315.TW" : retval = "塑膠";
 case "1319.TW" : retval = "塑膠";
 case "1321.TW" : retval = "塑膠";
 case "1323.TW" : retval = "塑膠";
 case "1324.TW" : retval = "塑膠";
 case "1325.TW" : retval = "塑膠";
 case "1326.TW" : retval = "塑膠";
 case "1337.TW" : retval = "塑膠";
 case "1339.TW" : retval = "塑膠";
 case "1340.TW" : retval = "塑膠";
 case "4306.TW" : retval = "塑膠";
 case "4303.TW" : retval = "塑膠";
 case "4304.TW" : retval = "塑膠";
 case "4305.TW" : retval = "塑膠";
 case "8354.TW" : retval = "塑膠";
 case "9950.TW" : retval = "塑膠";
 case "1402.TW" : retval = "紡織纖維";
 case "1409.TW" : retval = "紡織纖維";
 case "1410.TW" : retval = "紡織纖維";
 case "1413.TW" : retval = "紡織纖維";
 case "1414.TW" : retval = "紡織纖維";
 case "1416.TW" : retval = "紡織纖維";
 case "1417.TW" : retval = "紡織纖維";
 case "1418.TW" : retval = "紡織纖維";
 case "1419.TW" : retval = "紡織纖維";
 case "1423.TW" : retval = "紡織纖維";
 case "1434.TW" : retval = "紡織纖維";
 case "1439.TW" : retval = "紡織纖維";
 case "1440.TW" : retval = "紡織纖維";
 case "1441.TW" : retval = "紡織纖維";
 case "1443.TW" : retval = "紡織纖維";
 case "1444.TW" : retval = "紡織纖維";
 case "1445.TW" : retval = "紡織纖維";
 case "1446.TW" : retval = "紡織纖維";
 case "1447.TW" : retval = "紡織纖維";
 case "1449.TW" : retval = "紡織纖維";
 case "1451.TW" : retval = "紡織纖維";
 case "1452.TW" : retval = "紡織纖維";
 case "1453.TW" : retval = "紡織纖維";
 case "1454.TW" : retval = "紡織纖維";
 case "1455.TW" : retval = "紡織纖維";
 case "1456.TW" : retval = "紡織纖維";
 case "1457.TW" : retval = "紡織纖維";
 case "1459.TW" : retval = "紡織纖維";
 case "1460.TW" : retval = "紡織纖維";
 case "1463.TW" : retval = "紡織纖維";
 case "1464.TW" : retval = "紡織纖維";
 case "1465.TW" : retval = "紡織纖維";
 case "1466.TW" : retval = "紡織纖維";
 case "1467.TW" : retval = "紡織纖維";
 case "1468.TW" : retval = "紡織纖維";
 case "1469.TW" : retval = "紡織纖維";
 case "1470.TW" : retval = "紡織纖維";
 case "1472.TW" : retval = "紡織纖維";
 case "1473.TW" : retval = "紡織纖維";
 case "1474.TW" : retval = "紡織纖維";
 case "1475.TW" : retval = "紡織纖維";
 case "1476.TW" : retval = "紡織纖維";
 case "1477.TW" : retval = "紡織纖維";
 case "4414.TW" : retval = "紡織纖維";
 case "4426.TW" : retval = "紡織纖維";
 case "4438.TW" : retval = "紡織纖維";
 case "4401.TW" : retval = "紡織纖維";
 case "4402.TW" : retval = "紡織纖維";
 case "4406.TW" : retval = "紡織纖維";
 case "4413.TW" : retval = "紡織纖維";
 case "4417.TW" : retval = "紡織纖維";
 case "4419.TW" : retval = "紡織纖維";
 case "4420.TW" : retval = "紡織纖維";
 case "4429.TW" : retval = "紡織纖維";
 case "4432.TW" : retval = "紡織纖維";
 case "4433.TW" : retval = "紡織纖維";
 case "1503.TW" : retval = "電機機械";
 case "1504.TW" : retval = "電機機械";
 case "1506.TW" : retval = "電機機械";
 case "1507.TW" : retval = "電機機械";
 case "1512.TW" : retval = "電機機械";
 case "1513.TW" : retval = "電機機械";
 case "1514.TW" : retval = "電機機械";
 case "1515.TW" : retval = "電機機械";
 case "1517.TW" : retval = "電機機械";
 case "1519.TW" : retval = "電機機械";
 case "1521.TW" : retval = "電機機械";
 case "1522.TW" : retval = "電機機械";
 case "1524.TW" : retval = "電機機械";
 case "1525.TW" : retval = "電機機械";
 case "1526.TW" : retval = "電機機械";
 case "1527.TW" : retval = "電機機械";
 case "1528.TW" : retval = "電機機械";
 case "1529.TW" : retval = "電機機械";
 case "1530.TW" : retval = "電機機械";
 case "1531.TW" : retval = "電機機械";
 case "1532.TW" : retval = "電機機械";
 case "1533.TW" : retval = "電機機械";
 case "1535.TW" : retval = "電機機械";
 case "1536.TW" : retval = "電機機械";
 case "1537.TW" : retval = "電機機械";
 case "1538.TW" : retval = "電機機械";
 case "1539.TW" : retval = "電機機械";
 case "1540.TW" : retval = "電機機械";
 case "1541.TW" : retval = "電機機械";
 case "1558.TW" : retval = "電機機械";
 case "1560.TW" : retval = "電機機械";
 case "1568.TW" : retval = "電機機械";
 case "1583.TW" : retval = "電機機械";
 case "1589.TW" : retval = "電機機械";
 case "1590.TW" : retval = "電機機械";
 case "1592.TW" : retval = "電機機械";
 case "2049.TW" : retval = "電機機械";
 case "2228.TW" : retval = "電機機械";
 case "2231.TW" : retval = "電機機械";
 case "2236.TW" : retval = "電機機械";
 case "2371.TW" : retval = "電機機械";
 case "3167.TW" : retval = "電機機械";
 case "4526.TW" : retval = "電機機械";
 case "4532.TW" : retval = "電機機械";
 case "4551.TW" : retval = "電機機械";
 case "4552.TW" : retval = "電機機械";
 case "4555.TW" : retval = "電機機械";
 case "4557.TW" : retval = "電機機械";
 case "4560.TW" : retval = "電機機械";
 case "4562.TW" : retval = "電機機械";
 case "5288.TW" : retval = "電機機械";
 case "6605.TW" : retval = "電機機械";
 case "8222.TW" : retval = "電機機械";
 case "8374.TW" : retval = "電機機械";
 case "8996.TW" : retval = "電機機械";
 case "1566.TW" : retval = "電機機械";
 case "1570.TW" : retval = "電機機械";
 case "1580.TW" : retval = "電機機械";
 case "1586.TW" : retval = "電機機械";
 case "1591.TW" : retval = "電機機械";
 case "1597.TW" : retval = "電機機械";
 case "1599.TW" : retval = "電機機械";
 case "2066.TW" : retval = "電機機械";
 case "2067.TW" : retval = "電機機械";
 case "2230.TW" : retval = "電機機械";
 case "2233.TW" : retval = "電機機械";
 case "2235.TW" : retval = "電機機械";
 case "3162.TW" : retval = "電機機械";
 case "3226.TW" : retval = "電機機械";
 case "3379.TW" : retval = "電機機械";
 case "3426.TW" : retval = "電機機械";
 case "4502.TW" : retval = "電機機械";
 case "4503.TW" : retval = "電機機械";
 case "4506.TW" : retval = "電機機械";
 case "4510.TW" : retval = "電機機械";
 case "4513.TW" : retval = "電機機械";
 case "4523.TW" : retval = "電機機械";
 case "4527.TW" : retval = "電機機械";
 case "4528.TW" : retval = "電機機械";
 case "4530.TW" : retval = "電機機械";
 case "4533.TW" : retval = "電機機械";
 case "4534.TW" : retval = "電機機械";
 case "4535.TW" : retval = "電機機械";
 case "4543.TW" : retval = "電機機械";
 case "4549.TW" : retval = "電機機械";
 case "4550.TW" : retval = "電機機械";
 case "6122.TW" : retval = "電機機械";
 case "6603.TW" : retval = "電機機械";
 case "6609.TW" : retval = "電機機械";
 case "8027.TW" : retval = "電機機械";
 case "8083.TW" : retval = "電機機械";
 case "8107.TW" : retval = "電機機械";
 case "8255.TW" : retval = "電機機械";
 case "9951.TW" : retval = "電機機械";
 case "1603.TW" : retval = "電器電纜";
 case "1604.TW" : retval = "電器電纜";
 case "1605.TW" : retval = "電器電纜";
 case "1608.TW" : retval = "電器電纜";
 case "1609.TW" : retval = "電器電纜";
 case "1611.TW" : retval = "電器電纜";
 case "1612.TW" : retval = "電器電纜";
 case "1614.TW" : retval = "電器電纜";
 case "1615.TW" : retval = "電器電纜";
 case "1616.TW" : retval = "電器電纜";
 case "1617.TW" : retval = "電器電纜";
 case "1618.TW" : retval = "電器電纜";
 case "1626.TW" : retval = "電器電纜";
 case "4930.TW" : retval = "電器電纜";
 case "2061.TW" : retval = "電器電纜";
 case "4609.TW" : retval = "電器電纜";
 case "1316.TW" : retval = "化工";
 case "1704.TW" : retval = "化工";
 case "1708.TW" : retval = "化工";
 case "1709.TW" : retval = "化工";
 case "1710.TW" : retval = "化工";
 case "1711.TW" : retval = "化工";
 case "1712.TW" : retval = "化工";
 case "1713.TW" : retval = "化工";
 case "1714.TW" : retval = "化工";
 case "1717.TW" : retval = "化工";
 case "1718.TW" : retval = "化工";
 case "1721.TW" : retval = "化工";
 case "1722.TW" : retval = "化工";
 case "1723.TW" : retval = "化工";
 case "1724.TW" : retval = "化工";
 case "1725.TW" : retval = "化工";
 case "1726.TW" : retval = "化工";
 case "1727.TW" : retval = "化工";
 case "1730.TW" : retval = "化工";
 case "1732.TW" : retval = "化工";
 case "1735.TW" : retval = "化工";
 case "1773.TW" : retval = "化工";
 case "1776.TW" : retval = "化工";
 case "3708.TW" : retval = "化工";
 case "4720.TW" : retval = "化工";
 case "4722.TW" : retval = "化工";
 case "4725.TW" : retval = "化工";
 case "4739.TW" : retval = "化工";
 case "4755.TW" : retval = "化工";
 case "4763.TW" : retval = "化工";
 case "1742.TW" : retval = "化工";
 case "1787.TW" : retval = "化工";
 case "4702.TW" : retval = "化工";
 case "4706.TW" : retval = "化工";
 case "4707.TW" : retval = "化工";
 case "4711.TW" : retval = "化工";
 case "4714.TW" : retval = "化工";
 case "4716.TW" : retval = "化工";
 case "4721.TW" : retval = "化工";
 case "4741.TW" : retval = "化工";
 case "4754.TW" : retval = "化工";
 case "6506.TW" : retval = "化工";
 case "6509.TW" : retval = "化工";
 case "1598.TW" : retval = "生技醫療";
 case "1701.TW" : retval = "生技醫療";
 case "1707.TW" : retval = "生技醫療";
 case "1720.TW" : retval = "生技醫療";
 case "1731.TW" : retval = "生技醫療";
 case "1733.TW" : retval = "生技醫療";
 case "1734.TW" : retval = "生技醫療";
 case "1736.TW" : retval = "生技醫療";
 case "1762.TW" : retval = "生技醫療";
 case "1783.TW" : retval = "生技醫療";
 case "1786.TW" : retval = "生技醫療";
 case "1789.TW" : retval = "生技醫療";
 case "3164.TW" : retval = "生技醫療";
 case "3705.TW" : retval = "生技醫療";
 case "4104.TW" : retval = "生技醫療";
 case "4106.TW" : retval = "生技醫療";
 case "4108.TW" : retval = "生技醫療";
 case "4119.TW" : retval = "生技醫療";
 case "4133.TW" : retval = "生技醫療";
 case "4137.TW" : retval = "生技醫療";
 case "4141.TW" : retval = "生技醫療";
 case "4142.TW" : retval = "生技醫療";
 case "4144.TW" : retval = "生技醫療";
 case "4148.TW" : retval = "生技醫療";
 case "4155.TW" : retval = "生技醫療";
 case "4164.TW" : retval = "生技醫療";
 case "4190.TW" : retval = "生技醫療";
 case "4737.TW" : retval = "生技醫療";
 case "4746.TW" : retval = "生技醫療";
 case "6452.TW" : retval = "生技醫療";
 case "6541.TW" : retval = "生技醫療";
 case "1565.TW" : retval = "生技醫療";
 case "1593.TW" : retval = "生技醫療";
 case "1752.TW" : retval = "生技醫療";
 case "1777.TW" : retval = "生技醫療";
 case "1781.TW" : retval = "生技醫療";
 case "1784.TW" : retval = "生技醫療";
 case "1788.TW" : retval = "生技醫療";
 case "1795.TW" : retval = "生技醫療";
 case "1799.TW" : retval = "生技醫療";
 case "1813.TW" : retval = "生技醫療";
 case "3118.TW" : retval = "生技醫療";
 case "3176.TW" : retval = "生技醫療";
 case "3205.TW" : retval = "生技醫療";
 case "3218.TW" : retval = "生技醫療";
 case "4102.TW" : retval = "生技醫療";
 case "4103.TW" : retval = "生技醫療";
 case "4105.TW" : retval = "生技醫療";
 case "4107.TW" : retval = "生技醫療";
 case "4109.TW" : retval = "生技醫療";
 case "4111.TW" : retval = "生技醫療";
 case "4114.TW" : retval = "生技醫療";
 case "4116.TW" : retval = "生技醫療";
 case "4120.TW" : retval = "生技醫療";
 case "4121.TW" : retval = "生技醫療";
 case "4123.TW" : retval = "生技醫療";
 case "4126.TW" : retval = "生技醫療";
 case "4127.TW" : retval = "生技醫療";
 case "4128.TW" : retval = "生技醫療";
 case "4129.TW" : retval = "生技醫療";
 case "4130.TW" : retval = "生技醫療";
 case "4131.TW" : retval = "生技醫療";
 case "4138.TW" : retval = "生技醫療";
 case "4139.TW" : retval = "生技醫療";
 case "4147.TW" : retval = "生技醫療";
 case "4152.TW" : retval = "生技醫療";
 case "4153.TW" : retval = "生技醫療";
 case "4154.TW" : retval = "生技醫療";
 case "4157.TW" : retval = "生技醫療";
 case "4160.TW" : retval = "生技醫療";
 case "4161.TW" : retval = "生技醫療";
 case "4162.TW" : retval = "生技醫療";
 case "4163.TW" : retval = "生技醫療";
 case "4167.TW" : retval = "生技醫療";
 case "4168.TW" : retval = "生技醫療";
 case "4173.TW" : retval = "生技醫療";
 case "4174.TW" : retval = "生技醫療";
 case "4175.TW" : retval = "生技醫療";
 case "4180.TW" : retval = "生技醫療";
 case "4183.TW" : retval = "生技醫療";
 case "4188.TW" : retval = "生技醫療";
 case "4192.TW" : retval = "生技醫療";
 case "4198.TW" : retval = "生技醫療";
 case "4726.TW" : retval = "生技醫療";
 case "4728.TW" : retval = "生技醫療";
 case "4735.TW" : retval = "生技醫療";
 case "4736.TW" : retval = "生技醫療";
 case "4743.TW" : retval = "生技醫療";
 case "4745.TW" : retval = "生技醫療";
 case "4747.TW" : retval = "生技醫療";
 case "4911.TW" : retval = "生技醫療";
 case "6130.TW" : retval = "生技醫療";
 case "6242.TW" : retval = "生技醫療";
 case "6446.TW" : retval = "生技醫療";
 case "6469.TW" : retval = "生技醫療";
 case "6472.TW" : retval = "生技醫療";
 case "6492.TW" : retval = "生技醫療";
 case "6496.TW" : retval = "生技醫療";
 case "6497.TW" : retval = "生技醫療";
 case "6499.TW" : retval = "生技醫療";
 case "6523.TW" : retval = "生技醫療";
 case "6535.TW" : retval = "生技醫療";
 case "6554.TW" : retval = "生技醫療";
 case "6569.TW" : retval = "生技醫療";
 case "6574.TW" : retval = "生技醫療";
 case "8279.TW" : retval = "生技醫療";
 case "8403.TW" : retval = "生技醫療";
 case "8406.TW" : retval = "生技醫療";
 case "8409.TW" : retval = "生技醫療";
 case "8432.TW" : retval = "生技醫療";
 case "8436.TW" : retval = "生技醫療";
 case "1802.TW" : retval = "玻璃陶瓷";
 case "1806.TW" : retval = "玻璃陶瓷";
 case "1809.TW" : retval = "玻璃陶瓷";
 case "1810.TW" : retval = "玻璃陶瓷";
 case "1817.TW" : retval = "玻璃陶瓷";
 case "1902.TW" : retval = "造紙";
 case "1903.TW" : retval = "造紙";
 case "1904.TW" : retval = "造紙";
 case "1905.TW" : retval = "造紙";
 case "1906.TW" : retval = "造紙";
 case "1907.TW" : retval = "造紙";
 case "1909.TW" : retval = "造紙";
 case "2002.TW" : retval = "鋼鐵";
 case "2006.TW" : retval = "鋼鐵";
 case "2007.TW" : retval = "鋼鐵";
 case "2008.TW" : retval = "鋼鐵";
 case "2009.TW" : retval = "鋼鐵";
 case "2010.TW" : retval = "鋼鐵";
 case "2012.TW" : retval = "鋼鐵";
 case "2013.TW" : retval = "鋼鐵";
 case "2014.TW" : retval = "鋼鐵";
 case "2015.TW" : retval = "鋼鐵";
 case "2017.TW" : retval = "鋼鐵";
 case "2020.TW" : retval = "鋼鐵";
 case "2022.TW" : retval = "鋼鐵";
 case "2023.TW" : retval = "鋼鐵";
 case "2024.TW" : retval = "鋼鐵";
 case "2025.TW" : retval = "鋼鐵";
 case "2027.TW" : retval = "鋼鐵";
 case "2028.TW" : retval = "鋼鐵";
 case "2029.TW" : retval = "鋼鐵";
 case "2030.TW" : retval = "鋼鐵";
 case "2031.TW" : retval = "鋼鐵";
 case "2032.TW" : retval = "鋼鐵";
 case "2033.TW" : retval = "鋼鐵";
 case "2034.TW" : retval = "鋼鐵";
 case "2038.TW" : retval = "鋼鐵";
 case "2069.TW" : retval = "鋼鐵";
 case "3004.TW" : retval = "鋼鐵";
 case "5007.TW" : retval = "鋼鐵";
 case "5538.TW" : retval = "鋼鐵";
 case "9958.TW" : retval = "鋼鐵";
 case "2035.TW" : retval = "鋼鐵";
 case "2063.TW" : retval = "鋼鐵";
 case "2064.TW" : retval = "鋼鐵";
 case "2065.TW" : retval = "鋼鐵";
 case "5009.TW" : retval = "鋼鐵";
 case "5011.TW" : retval = "鋼鐵";
 case "5013.TW" : retval = "鋼鐵";
 case "5014.TW" : retval = "鋼鐵";
 case "5015.TW" : retval = "鋼鐵";
 case "5016.TW" : retval = "鋼鐵";
 case "6248.TW" : retval = "鋼鐵";
 case "8349.TW" : retval = "鋼鐵";
 case "8415.TW" : retval = "鋼鐵";
 case "8930.TW" : retval = "鋼鐵";
 case "9962.TW" : retval = "鋼鐵";
 case "2101.TW" : retval = "橡膠";
 case "2102.TW" : retval = "橡膠";
 case "2103.TW" : retval = "橡膠";
 case "2104.TW" : retval = "橡膠";
 case "2105.TW" : retval = "橡膠";
 case "2106.TW" : retval = "橡膠";
 case "2107.TW" : retval = "橡膠";
 case "2108.TW" : retval = "橡膠";
 case "2109.TW" : retval = "橡膠";
 case "2114.TW" : retval = "橡膠";
 case "2115.TW" : retval = "橡膠";
 case "6582.TW" : retval = "橡膠";
 case "5102.TW" : retval = "橡膠";
 case "1338.TW" : retval = "汽車";
 case "2201.TW" : retval = "汽車";
 case "2204.TW" : retval = "汽車";
 case "2206.TW" : retval = "汽車";
 case "2207.TW" : retval = "汽車";
 case "2227.TW" : retval = "汽車";
 case "2239.TW" : retval = "汽車";
 case "2243.TW" : retval = "汽車";
 case "3346.TW" : retval = "汽車";
 case "1437.TW" : retval = "半導體";
 case "2302.TW" : retval = "半導體";
 case "2303.TW" : retval = "半導體";
 case "2311.TW" : retval = "半導體";
 case "2325.TW" : retval = "半導體";
 case "2329.TW" : retval = "半導體";
 case "2330.TW" : retval = "半導體";
 case "2337.TW" : retval = "半導體";
 case "2338.TW" : retval = "半導體";
 case "2342.TW" : retval = "半導體";
 case "2344.TW" : retval = "半導體";
 case "2351.TW" : retval = "半導體";
 case "2363.TW" : retval = "半導體";
 case "2369.TW" : retval = "半導體";
 case "2379.TW" : retval = "半導體";
 case "2388.TW" : retval = "半導體";
 case "2401.TW" : retval = "半導體";
 case "2408.TW" : retval = "半導體";
 case "2434.TW" : retval = "半導體";
 case "2436.TW" : retval = "半導體";
 case "2441.TW" : retval = "半導體";
 case "2449.TW" : retval = "半導體";
 case "2451.TW" : retval = "半導體";
 case "2454.TW" : retval = "半導體";
 case "2458.TW" : retval = "半導體";
 case "2481.TW" : retval = "半導體";
 case "3006.TW" : retval = "半導體";
 case "3014.TW" : retval = "半導體";
 case "3016.TW" : retval = "半導體";
 case "3034.TW" : retval = "半導體";
 case "3035.TW" : retval = "半導體";
 case "3041.TW" : retval = "半導體";
 case "3054.TW" : retval = "半導體";
 case "3094.TW" : retval = "半導體";
 case "3189.TW" : retval = "半導體";
 case "3257.TW" : retval = "半導體";
 case "3413.TW" : retval = "半導體";
 case "3443.TW" : retval = "半導體";
 case "3519.TW" : retval = "半導體";
 case "3532.TW" : retval = "半導體";
 case "3536.TW" : retval = "半導體";
 case "3545.TW" : retval = "半導體";
 case "3579.TW" : retval = "半導體";
 case "3583.TW" : retval = "半導體";
 case "3588.TW" : retval = "半導體";
 case "3661.TW" : retval = "半導體";
 case "3686.TW" : retval = "半導體";
 case "4919.TW" : retval = "半導體";
 case "4952.TW" : retval = "半導體";
 case "4968.TW" : retval = "半導體";
 case "5269.TW" : retval = "半導體";
 case "5285.TW" : retval = "半導體";
 case "5305.TW" : retval = "半導體";
 case "5471.TW" : retval = "半導體";
 case "6202.TW" : retval = "半導體";
 case "6239.TW" : retval = "半導體";
 case "6243.TW" : retval = "半導體";
 case "6257.TW" : retval = "半導體";
 case "6271.TW" : retval = "半導體";
 case "6415.TW" : retval = "半導體";
 case "6451.TW" : retval = "半導體";
 case "6525.TW" : retval = "半導體";
 case "6531.TW" : retval = "半導體";
 case "6533.TW" : retval = "半導體";
 case "6552.TW" : retval = "半導體";
 case "6573.TW" : retval = "半導體";
 case "8016.TW" : retval = "半導體";
 case "8081.TW" : retval = "半導體";
 case "8110.TW" : retval = "半導體";
 case "8131.TW" : retval = "半導體";
 case "8150.TW" : retval = "半導體";
 case "8261.TW" : retval = "半導體";
 case "8271.TW" : retval = "半導體";
 case "3073.TW" : retval = "半導體";
 case "3105.TW" : retval = "半導體";
 case "3122.TW" : retval = "半導體";
 case "3141.TW" : retval = "半導體";
 case "3169.TW" : retval = "半導體";
 case "3188.TW" : retval = "半導體";
 case "3219.TW" : retval = "半導體";
 case "3227.TW" : retval = "半導體";
 case "3228.TW" : retval = "半導體";
 case "3259.TW" : retval = "半導體";
 case "3260.TW" : retval = "半導體";
 case "3264.TW" : retval = "半導體";
 case "3265.TW" : retval = "半導體";
 case "3268.TW" : retval = "半導體";
 case "3317.TW" : retval = "半導體";
 case "3372.TW" : retval = "半導體";
 case "3374.TW" : retval = "半導體";
 case "3438.TW" : retval = "半導體";
 case "3527.TW" : retval = "半導體";
 case "3529.TW" : retval = "半導體";
 case "3555.TW" : retval = "半導體";
 case "3556.TW" : retval = "半導體";
 case "3567.TW" : retval = "半導體";
 case "3581.TW" : retval = "半導體";
 case "3675.TW" : retval = "半導體";
 case "3680.TW" : retval = "半導體";
 case "3707.TW" : retval = "半導體";
 case "4947.TW" : retval = "半導體";
 case "4966.TW" : retval = "半導體";
 case "4971.TW" : retval = "半導體";
 case "4973.TW" : retval = "半導體";
 case "4991.TW" : retval = "半導體";
 case "5272.TW" : retval = "半導體";
 case "5274.TW" : retval = "半導體";
 case "5302.TW" : retval = "半導體";
 case "5314.TW" : retval = "半導體";
 case "5344.TW" : retval = "半導體";
 case "5347.TW" : retval = "半導體";
 case "5351.TW" : retval = "半導體";
 case "5425.TW" : retval = "半導體";
 case "5455.TW" : retval = "半導體";
 case "5468.TW" : retval = "半導體";
 case "5483.TW" : retval = "半導體";
 case "5487.TW" : retval = "半導體";
 case "6103.TW" : retval = "半導體";
 case "6104.TW" : retval = "半導體";
 case "6129.TW" : retval = "半導體";
 case "6138.TW" : retval = "半導體";
 case "6147.TW" : retval = "半導體";
 case "6182.TW" : retval = "半導體";
 case "6198.TW" : retval = "半導體";
 case "6223.TW" : retval = "半導體";
 case "6229.TW" : retval = "半導體";
 case "6233.TW" : retval = "半導體";
 case "6237.TW" : retval = "半導體";
 case "6261.TW" : retval = "半導體";
 case "6287.TW" : retval = "半導體";
 case "6291.TW" : retval = "半導體";
 case "6411.TW" : retval = "半導體";
 case "6435.TW" : retval = "半導體";
 case "6457.TW" : retval = "半導體";
 case "6462.TW" : retval = "半導體";
 case "6485.TW" : retval = "半導體";
 case "6488.TW" : retval = "半導體";
 case "6494.TW" : retval = "半導體";
 case "6510.TW" : retval = "半導體";
 case "6532.TW" : retval = "半導體";
 case "6568.TW" : retval = "半導體";
 case "6594.TW" : retval = "半導體";
 case "8024.TW" : retval = "半導體";
 case "8040.TW" : retval = "半導體";
 case "8054.TW" : retval = "半導體";
 case "8086.TW" : retval = "半導體";
 case "8088.TW" : retval = "半導體";
 case "8277.TW" : retval = "半導體";
 case "2301.TW" : retval = "電腦及週邊設備";
 case "2305.TW" : retval = "電腦及週邊設備";
 case "2324.TW" : retval = "電腦及週邊設備";
 case "2331.TW" : retval = "電腦及週邊設備";
 case "2352.TW" : retval = "電腦及週邊設備";
 case "2353.TW" : retval = "電腦及週邊設備";
 case "2356.TW" : retval = "電腦及週邊設備";
 case "2357.TW" : retval = "電腦及週邊設備";
 case "2362.TW" : retval = "電腦及週邊設備";
 case "2364.TW" : retval = "電腦及週邊設備";
 case "2365.TW" : retval = "電腦及週邊設備";
 case "2376.TW" : retval = "電腦及週邊設備";
 case "2377.TW" : retval = "電腦及週邊設備";
 case "2380.TW" : retval = "電腦及週邊設備";
 case "2382.TW" : retval = "電腦及週邊設備";
 case "2387.TW" : retval = "電腦及週邊設備";
 case "2395.TW" : retval = "電腦及週邊設備";
 case "2397.TW" : retval = "電腦及週邊設備";
 case "2399.TW" : retval = "電腦及週邊設備";
 case "2405.TW" : retval = "電腦及週邊設備";
 case "2417.TW" : retval = "電腦及週邊設備";
 case "2424.TW" : retval = "電腦及週邊設備";
 case "2425.TW" : retval = "電腦及週邊設備";
 case "2442.TW" : retval = "電腦及週邊設備";
 case "2465.TW" : retval = "電腦及週邊設備";
 case "3002.TW" : retval = "電腦及週邊設備";
 case "3005.TW" : retval = "電腦及週邊設備";
 case "3013.TW" : retval = "電腦及週邊設備";
 case "3017.TW" : retval = "電腦及週邊設備";
 case "3022.TW" : retval = "電腦及週邊設備";
 case "3046.TW" : retval = "電腦及週邊設備";
 case "3057.TW" : retval = "電腦及週邊設備";
 case "3060.TW" : retval = "電腦及週邊設備";
 case "3231.TW" : retval = "電腦及週邊設備";
 case "3416.TW" : retval = "電腦及週邊設備";
 case "3494.TW" : retval = "電腦及週邊設備";
 case "3515.TW" : retval = "電腦及週邊設備";
 case "3701.TW" : retval = "電腦及週邊設備";
 case "3706.TW" : retval = "電腦及週邊設備";
 case "4916.TW" : retval = "電腦及週邊設備";
 case "4938.TW" : retval = "電腦及週邊設備";
 case "5215.TW" : retval = "電腦及週邊設備";
 case "5258.TW" : retval = "電腦及週邊設備";
 case "5264.TW" : retval = "電腦及週邊設備";
 case "6117.TW" : retval = "電腦及週邊設備";
 case "6128.TW" : retval = "電腦及週邊設備";
 case "6166.TW" : retval = "電腦及週邊設備";
 case "6172.TW" : retval = "電腦及週邊設備";
 case "6206.TW" : retval = "電腦及週邊設備";
 case "6230.TW" : retval = "電腦及週邊設備";
 case "6235.TW" : retval = "電腦及週邊設備";
 case "6277.TW" : retval = "電腦及週邊設備";
 case "6414.TW" : retval = "電腦及週邊設備";
 case "6579.TW" : retval = "電腦及週邊設備";
 case "6591.TW" : retval = "電腦及週邊設備";
 case "8114.TW" : retval = "電腦及週邊設備";
 case "8163.TW" : retval = "電腦及週邊設備";
 case "8210.TW" : retval = "電腦及週邊設備";
 case "9912.TW" : retval = "電腦及週邊設備";
 case "1569.TW" : retval = "電腦及週邊設備";
 case "3071.TW" : retval = "電腦及週邊設備";
 case "3088.TW" : retval = "電腦及週邊設備";
 case "3211.TW" : retval = "電腦及週邊設備";
 case "3213.TW" : retval = "電腦及週邊設備";
 case "3272.TW" : retval = "電腦及週邊設備";
 case "3287.TW" : retval = "電腦及週邊設備";
 case "3323.TW" : retval = "電腦及週邊設備";
 case "3325.TW" : retval = "電腦及週邊設備";
 case "3479.TW" : retval = "電腦及週邊設備";
 case "3483.TW" : retval = "電腦及週邊設備";
 case "3521.TW" : retval = "電腦及週邊設備";
 case "3540.TW" : retval = "電腦及週邊設備";
 case "3577.TW" : retval = "電腦及週邊設備";
 case "3594.TW" : retval = "電腦及週邊設備";
 case "3611.TW" : retval = "電腦及週邊設備";
 case "3625.TW" : retval = "電腦及週邊設備";
 case "3652.TW" : retval = "電腦及週邊設備";
 case "3693.TW" : retval = "電腦及週邊設備";
 case "3709.TW" : retval = "電腦及週邊設備";
 case "4924.TW" : retval = "電腦及週邊設備";
 case "4987.TW" : retval = "電腦及週邊設備";
 case "5289.TW" : retval = "電腦及週邊設備";
 case "5304.TW" : retval = "電腦及週邊設備";
 case "5356.TW" : retval = "電腦及週邊設備";
 case "5386.TW" : retval = "電腦及週邊設備";
 case "5426.TW" : retval = "電腦及週邊設備";
 case "5438.TW" : retval = "電腦及週邊設備";
 case "5450.TW" : retval = "電腦及週邊設備";
 case "5465.TW" : retval = "電腦及週邊設備";
 case "5474.TW" : retval = "電腦及週邊設備";
 case "5490.TW" : retval = "電腦及週邊設備";
 case "6121.TW" : retval = "電腦及週邊設備";
 case "6123.TW" : retval = "電腦及週邊設備";
 case "6150.TW" : retval = "電腦及週邊設備";
 case "6160.TW" : retval = "電腦及週邊設備";
 case "6161.TW" : retval = "電腦及週邊設備";
 case "6188.TW" : retval = "電腦及週邊設備";
 case "6222.TW" : retval = "電腦及週邊設備";
 case "6228.TW" : retval = "電腦及週邊設備";
 case "6276.TW" : retval = "電腦及週邊設備";
 case "6298.TW" : retval = "電腦及週邊設備";
 case "6441.TW" : retval = "電腦及週邊設備";
 case "6570.TW" : retval = "電腦及週邊設備";
 case "6577.TW" : retval = "電腦及週邊設備";
 case "8050.TW" : retval = "電腦及週邊設備";
 case "8076.TW" : retval = "電腦及週邊設備";
 case "8234.TW" : retval = "電腦及週邊設備";
 case "8299.TW" : retval = "電腦及週邊設備";
 case "8410.TW" : retval = "電腦及週邊設備";
 case "2323.TW" : retval = "光電";
 case "2340.TW" : retval = "光電";
 case "2349.TW" : retval = "光電";
 case "2374.TW" : retval = "光電";
 case "2393.TW" : retval = "光電";
 case "2406.TW" : retval = "光電";
 case "2409.TW" : retval = "光電";
 case "2426.TW" : retval = "光電";
 case "2438.TW" : retval = "光電";
 case "2448.TW" : retval = "光電";
 case "2466.TW" : retval = "光電";
 case "2475.TW" : retval = "光電";
 case "2486.TW" : retval = "光電";
 case "2489.TW" : retval = "光電";
 case "2491.TW" : retval = "光電";
 case "2499.TW" : retval = "光電";
 case "3008.TW" : retval = "光電";
 case "3019.TW" : retval = "光電";
 case "3024.TW" : retval = "光電";
 case "3031.TW" : retval = "光電";
 case "3038.TW" : retval = "光電";
 case "3049.TW" : retval = "光電";
 case "3050.TW" : retval = "光電";
 case "3051.TW" : retval = "光電";
 case "3059.TW" : retval = "光電";
 case "3149.TW" : retval = "光電";
 case "3356.TW" : retval = "光電";
 case "3383.TW" : retval = "光電";
 case "3406.TW" : retval = "光電";
 case "3437.TW" : retval = "光電";
 case "3454.TW" : retval = "光電";
 case "3481.TW" : retval = "光電";
 case "3504.TW" : retval = "光電";
 case "3514.TW" : retval = "光電";
 case "3535.TW" : retval = "光電";
 case "3557.TW" : retval = "光電";
 case "3561.TW" : retval = "光電";
 case "3576.TW" : retval = "光電";
 case "3591.TW" : retval = "光電";
 case "3622.TW" : retval = "光電";
 case "3669.TW" : retval = "光電";
 case "3673.TW" : retval = "光電";
 case "3698.TW" : retval = "光電";
 case "4934.TW" : retval = "光電";
 case "4935.TW" : retval = "光電";
 case "4942.TW" : retval = "光電";
 case "4956.TW" : retval = "光電";
 case "4960.TW" : retval = "光電";
 case "4976.TW" : retval = "光電";
 case "5234.TW" : retval = "光電";
 case "5243.TW" : retval = "光電";
 case "5259.TW" : retval = "光電";
 case "5484.TW" : retval = "光電";
 case "6116.TW" : retval = "光電";
 case "6120.TW" : retval = "光電";
 case "6131.TW" : retval = "光電";
 case "6164.TW" : retval = "光電";
 case "6168.TW" : retval = "光電";
 case "6176.TW" : retval = "光電";
 case "6209.TW" : retval = "光電";
 case "6225.TW" : retval = "光電";
 case "6226.TW" : retval = "光電";
 case "6278.TW" : retval = "光電";
 case "6289.TW" : retval = "光電";
 case "6405.TW" : retval = "光電";
 case "6431.TW" : retval = "光電";
 case "6443.TW" : retval = "光電";
 case "6456.TW" : retval = "光電";
 case "6477.TW" : retval = "光電";
 case "8072.TW" : retval = "光電";
 case "8105.TW" : retval = "光電";
 case "8215.TW" : retval = "光電";
 case "3066.TW" : retval = "光電";
 case "3128.TW" : retval = "光電";
 case "3230.TW" : retval = "光電";
 case "3297.TW" : retval = "光電";
 case "3339.TW" : retval = "光電";
 case "3362.TW" : retval = "光電";
 case "3428.TW" : retval = "光電";
 case "3434.TW" : retval = "光電";
 case "3441.TW" : retval = "光電";
 case "3452.TW" : retval = "光電";
 case "3455.TW" : retval = "光電";
 case "3490.TW" : retval = "光電";
 case "3516.TW" : retval = "光電";
 case "3522.TW" : retval = "光電";
 case "3523.TW" : retval = "光電";
 case "3531.TW" : retval = "光電";
 case "3562.TW" : retval = "光電";
 case "3615.TW" : retval = "光電";
 case "3623.TW" : retval = "光電";
 case "3629.TW" : retval = "光電";
 case "3630.TW" : retval = "光電";
 case "3666.TW" : retval = "光電";
 case "3685.TW" : retval = "光電";
 case "3691.TW" : retval = "光電";
 case "4729.TW" : retval = "光電";
 case "4933.TW" : retval = "光電";
 case "4944.TW" : retval = "光電";
 case "4972.TW" : retval = "光電";
 case "4995.TW" : retval = "光電";
 case "5230.TW" : retval = "光電";
 case "5245.TW" : retval = "光電";
 case "5251.TW" : retval = "光電";
 case "5281.TW" : retval = "光電";
 case "5315.TW" : retval = "光電";
 case "5371.TW" : retval = "光電";
 case "5392.TW" : retval = "光電";
 case "5432.TW" : retval = "光電";
 case "5443.TW" : retval = "光電";
 case "6125.TW" : retval = "光電";
 case "6167.TW" : retval = "光電";
 case "6234.TW" : retval = "光電";
 case "6244.TW" : retval = "光電";
 case "6246.TW" : retval = "光電";
 case "6419.TW" : retval = "光電";
 case "6548.TW" : retval = "光電";
 case "6556.TW" : retval = "光電";
 case "6560.TW" : retval = "光電";
 case "7402.TW" : retval = "光電";
 case "8049.TW" : retval = "光電";
 case "8064.TW" : retval = "光電";
 case "8069.TW" : retval = "光電";
 case "8087.TW" : retval = "光電";
 case "8111.TW" : retval = "光電";
 case "8240.TW" : retval = "光電";
 case "2314.TW" : retval = "通信網路";
 case "2321.TW" : retval = "通信網路";
 case "2332.TW" : retval = "通信網路";
 case "2345.TW" : retval = "通信網路";
 case "2412.TW" : retval = "通信網路";
 case "2419.TW" : retval = "通信網路";
 case "2439.TW" : retval = "通信網路";
 case "2444.TW" : retval = "通信網路";
 case "2450.TW" : retval = "通信網路";
 case "2455.TW" : retval = "通信網路";
 case "2485.TW" : retval = "通信網路";
 case "2496.TW" : retval = "通信網路";
 case "2498.TW" : retval = "通信網路";
 case "3025.TW" : retval = "通信網路";
 case "3027.TW" : retval = "通信網路";
 case "3045.TW" : retval = "通信網路";
 case "3047.TW" : retval = "通信網路";
 case "3062.TW" : retval = "通信網路";
 case "3311.TW" : retval = "通信網路";
 case "3380.TW" : retval = "通信網路";
 case "3419.TW" : retval = "通信網路";
 case "3596.TW" : retval = "通信網路";
 case "3682.TW" : retval = "通信網路";
 case "3694.TW" : retval = "通信網路";
 case "3704.TW" : retval = "通信網路";
 case "4904.TW" : retval = "通信網路";
 case "4906.TW" : retval = "通信網路";
 case "4977.TW" : retval = "通信網路";
 case "4984.TW" : retval = "通信網路";
 case "5388.TW" : retval = "通信網路";
 case "6136.TW" : retval = "通信網路";
 case "6142.TW" : retval = "通信網路";
 case "6152.TW" : retval = "通信網路";
 case "6216.TW" : retval = "通信網路";
 case "6283.TW" : retval = "通信網路";
 case "6285.TW" : retval = "通信網路";
 case "6442.TW" : retval = "通信網路";
 case "8011.TW" : retval = "通信網路";
 case "8101.TW" : retval = "通信網路";
 case "3068.TW" : retval = "通信網路";
 case "3081.TW" : retval = "通信網路";
 case "3095.TW" : retval = "通信網路";
 case "3152.TW" : retval = "通信網路";
 case "3163.TW" : retval = "通信網路";
 case "3221.TW" : retval = "通信網路";
 case "3234.TW" : retval = "通信網路";
 case "3290.TW" : retval = "通信網路";
 case "3299.TW" : retval = "通信網路";
 case "3306.TW" : retval = "通信網路";
 case "3363.TW" : retval = "通信網路";
 case "3431.TW" : retval = "通信網路";
 case "3466.TW" : retval = "通信網路";
 case "3491.TW" : retval = "通信網路";
 case "3499.TW" : retval = "通信網路";
 case "3558.TW" : retval = "通信網路";
 case "3564.TW" : retval = "通信網路";
 case "3632.TW" : retval = "通信網路";
 case "3664.TW" : retval = "通信網路";
 case "3672.TW" : retval = "通信網路";
 case "3684.TW" : retval = "通信網路";
 case "4903.TW" : retval = "通信網路";
 case "4905.TW" : retval = "通信網路";
 case "4908.TW" : retval = "通信網路";
 case "4909.TW" : retval = "通信網路";
 case "4979.TW" : retval = "通信網路";
 case "5348.TW" : retval = "通信網路";
 case "5353.TW" : retval = "通信網路";
 case "6109.TW" : retval = "通信網路";
 case "6143.TW" : retval = "通信網路";
 case "6163.TW" : retval = "通信網路";
 case "6170.TW" : retval = "通信網路";
 case "6190.TW" : retval = "通信網路";
 case "6218.TW" : retval = "通信網路";
 case "6241.TW" : retval = "通信網路";
 case "6245.TW" : retval = "通信網路";
 case "6263.TW" : retval = "通信網路";
 case "6417.TW" : retval = "通信網路";
 case "6426.TW" : retval = "通信網路";
 case "6465.TW" : retval = "通信網路";
 case "6470.TW" : retval = "通信網路";
 case "6486.TW" : retval = "通信網路";
 case "6514.TW" : retval = "通信網路";
 case "8034.TW" : retval = "通信網路";
 case "8048.TW" : retval = "通信網路";
 case "8059.TW" : retval = "通信網路";
 case "8097.TW" : retval = "通信網路";
 case "8171.TW" : retval = "通信網路";
 case "8176.TW" : retval = "通信網路";
 case "1471.TW" : retval = "電子零組件";
 case "1582.TW" : retval = "電子零組件";
 case "2059.TW" : retval = "電子零組件";
 case "2308.TW" : retval = "電子零組件";
 case "2313.TW" : retval = "電子零組件";
 case "2316.TW" : retval = "電子零組件";
 case "2327.TW" : retval = "電子零組件";
 case "2328.TW" : retval = "電子零組件";
 case "2355.TW" : retval = "電子零組件";
 case "2367.TW" : retval = "電子零組件";
 case "2368.TW" : retval = "電子零組件";
 case "2375.TW" : retval = "電子零組件";
 case "2383.TW" : retval = "電子零組件";
 case "2385.TW" : retval = "電子零組件";
 case "2392.TW" : retval = "電子零組件";
 case "2402.TW" : retval = "電子零組件";
 case "2413.TW" : retval = "電子零組件";
 case "2415.TW" : retval = "電子零組件";
 case "2420.TW" : retval = "電子零組件";
 case "2421.TW" : retval = "電子零組件";
 case "2428.TW" : retval = "電子零組件";
 case "2429.TW" : retval = "電子零組件";
 case "2431.TW" : retval = "電子零組件";
 case "2440.TW" : retval = "電子零組件";
 case "2443.TW" : retval = "電子零組件";
 case "2456.TW" : retval = "電子零組件";
 case "2457.TW" : retval = "電子零組件";
 case "2460.TW" : retval = "電子零組件";
 case "2462.TW" : retval = "電子零組件";
 case "2467.TW" : retval = "電子零組件";
 case "2472.TW" : retval = "電子零組件";
 case "2476.TW" : retval = "電子零組件";
 case "2478.TW" : retval = "電子零組件";
 case "2483.TW" : retval = "電子零組件";
 case "2484.TW" : retval = "電子零組件";
 case "2492.TW" : retval = "電子零組件";
 case "2493.TW" : retval = "電子零組件";
 case "3003.TW" : retval = "電子零組件";
 case "3011.TW" : retval = "電子零組件";
 case "3015.TW" : retval = "電子零組件";
 case "3021.TW" : retval = "電子零組件";
 case "3023.TW" : retval = "電子零組件";
 case "3026.TW" : retval = "電子零組件";
 case "3032.TW" : retval = "電子零組件";
 case "3037.TW" : retval = "電子零組件";
 case "3042.TW" : retval = "電子零組件";
 case "3044.TW" : retval = "電子零組件";
 case "3058.TW" : retval = "電子零組件";
 case "3090.TW" : retval = "電子零組件";
 case "3229.TW" : retval = "電子零組件";
 case "3296.TW" : retval = "電子零組件";
 case "3308.TW" : retval = "電子零組件";
 case "3321.TW" : retval = "電子零組件";
 case "3338.TW" : retval = "電子零組件";
 case "3376.TW" : retval = "電子零組件";
 case "3432.TW" : retval = "電子零組件";
 case "3501.TW" : retval = "電子零組件";
 case "3533.TW" : retval = "電子零組件";
 case "3550.TW" : retval = "電子零組件";
 case "3593.TW" : retval = "電子零組件";
 case "3605.TW" : retval = "電子零組件";
 case "3607.TW" : retval = "電子零組件";
 case "3645.TW" : retval = "電子零組件";
 case "3653.TW" : retval = "電子零組件";
 case "3679.TW" : retval = "電子零組件";
 case "4545.TW" : retval = "電子零組件";
 case "4912.TW" : retval = "電子零組件";
 case "4915.TW" : retval = "電子零組件";
 case "4927.TW" : retval = "電子零組件";
 case "4943.TW" : retval = "電子零組件";
 case "4958.TW" : retval = "電子零組件";
 case "4999.TW" : retval = "電子零組件";
 case "5469.TW" : retval = "電子零組件";
 case "6108.TW" : retval = "電子零組件";
 case "6115.TW" : retval = "電子零組件";
 case "6133.TW" : retval = "電子零組件";
 case "6141.TW" : retval = "電子零組件";
 case "6153.TW" : retval = "電子零組件";
 case "6155.TW" : retval = "電子零組件";
 case "6165.TW" : retval = "電子零組件";
 case "6191.TW" : retval = "電子零組件";
 case "6197.TW" : retval = "電子零組件";
 case "6205.TW" : retval = "電子零組件";
 case "6213.TW" : retval = "電子零組件";
 case "6224.TW" : retval = "電子零組件";
 case "6251.TW" : retval = "電子零組件";
 case "6269.TW" : retval = "電子零組件";
 case "6282.TW" : retval = "電子零組件";
 case "6412.TW" : retval = "電子零組件";
 case "6422.TW" : retval = "電子零組件";
 case "6449.TW" : retval = "電子零組件";
 case "8039.TW" : retval = "電子零組件";
 case "8046.TW" : retval = "電子零組件";
 case "8103.TW" : retval = "電子零組件";
 case "8213.TW" : retval = "電子零組件";
 case "8249.TW" : retval = "電子零組件";
 case "1333.TW" : retval = "電子零組件";
 case "1336.TW" : retval = "電子零組件";
 case "1595.TW" : retval = "電子零組件";
 case "1815.TW" : retval = "電子零組件";
 case "3078.TW" : retval = "電子零組件";
 case "3089.TW" : retval = "電子零組件";
 case "3092.TW" : retval = "電子零組件";
 case "3114.TW" : retval = "電子零組件";
 case "3115.TW" : retval = "電子零組件";
 case "3144.TW" : retval = "電子零組件";
 case "3191.TW" : retval = "電子零組件";
 case "3202.TW" : retval = "電子零組件";
 case "3206.TW" : retval = "電子零組件";
 case "3207.TW" : retval = "電子零組件";
 case "3217.TW" : retval = "電子零組件";
 case "3236.TW" : retval = "電子零組件";
 case "3276.TW" : retval = "電子零組件";
 case "3288.TW" : retval = "電子零組件";
 case "3294.TW" : retval = "電子零組件";
 case "3310.TW" : retval = "電子零組件";
 case "3313.TW" : retval = "電子零組件";
 case "3322.TW" : retval = "電子零組件";
 case "3332.TW" : retval = "電子零組件";
 case "3354.TW" : retval = "電子零組件";
 case "3388.TW" : retval = "電子零組件";
 case "3390.TW" : retval = "電子零組件";
 case "3465.TW" : retval = "電子零組件";
 case "3484.TW" : retval = "電子零組件";
 case "3492.TW" : retval = "電子零組件";
 case "3511.TW" : retval = "電子零組件";
 case "3512.TW" : retval = "電子零組件";
 case "3520.TW" : retval = "電子零組件";
 case "3526.TW" : retval = "電子零組件";
 case "3537.TW" : retval = "電子零組件";
 case "3548.TW" : retval = "電子零組件";
 case "3609.TW" : retval = "電子零組件";
 case "3624.TW" : retval = "電子零組件";
 case "3631.TW" : retval = "電子零組件";
 case "3646.TW" : retval = "電子零組件";
 case "3689.TW" : retval = "電子零組件";
 case "4542.TW" : retval = "電子零組件";
 case "4939.TW" : retval = "電子零組件";
 case "4974.TW" : retval = "電子零組件";
 case "5227.TW" : retval = "電子零組件";
 case "5255.TW" : retval = "電子零組件";
 case "5291.TW" : retval = "電子零組件";
 case "5309.TW" : retval = "電子零組件";
 case "5317.TW" : retval = "電子零組件";
 case "5321.TW" : retval = "電子零組件";
 case "5328.TW" : retval = "電子零組件";
 case "5340.TW" : retval = "電子零組件";
 case "5345.TW" : retval = "電子零組件";
 case "5349.TW" : retval = "電子零組件";
 case "5355.TW" : retval = "電子零組件";
 case "5381.TW" : retval = "電子零組件";
 case "5398.TW" : retval = "電子零組件";
 case "5439.TW" : retval = "電子零組件";
 case "5457.TW" : retval = "電子零組件";
 case "5460.TW" : retval = "電子零組件";
 case "5464.TW" : retval = "電子零組件";
 case "5475.TW" : retval = "電子零組件";
 case "5480.TW" : retval = "電子零組件";
 case "5481.TW" : retval = "電子零組件";
 case "5488.TW" : retval = "電子零組件";
 case "5498.TW" : retval = "電子零組件";
 case "6101.TW" : retval = "電子零組件";
 case "6114.TW" : retval = "電子零組件";
 case "6124.TW" : retval = "電子零組件";
 case "6126.TW" : retval = "電子零組件";
 case "6127.TW" : retval = "電子零組件";
 case "6134.TW" : retval = "電子零組件";
 case "6156.TW" : retval = "電子零組件";
 case "6158.TW" : retval = "電子零組件";
 case "6173.TW" : retval = "電子零組件";
 case "6174.TW" : retval = "電子零組件";
 case "6175.TW" : retval = "電子零組件";
 case "6185.TW" : retval = "電子零組件";
 case "6194.TW" : retval = "電子零組件";
 case "6203.TW" : retval = "電子零組件";
 case "6204.TW" : retval = "電子零組件";
 case "6207.TW" : retval = "電子零組件";
 case "6208.TW" : retval = "電子零組件";
 case "6210.TW" : retval = "電子零組件";
 case "6217.TW" : retval = "電子零組件";
 case "6220.TW" : retval = "電子零組件";
 case "6259.TW" : retval = "電子零組件";
 case "6266.TW" : retval = "電子零組件";
 case "6274.TW" : retval = "電子零組件";
 case "6279.TW" : retval = "電子零組件";
 case "6284.TW" : retval = "電子零組件";
 case "6290.TW" : retval = "電子零組件";
 case "6292.TW" : retval = "電子零組件";
 case "6432.TW" : retval = "電子零組件";
 case "6538.TW" : retval = "電子零組件";
 case "8038.TW" : retval = "電子零組件";
 case "8042.TW" : retval = "電子零組件";
 case "8043.TW" : retval = "電子零組件";
 case "8071.TW" : retval = "電子零組件";
 case "8074.TW" : retval = "電子零組件";
 case "8080.TW" : retval = "電子零組件";
 case "8091.TW" : retval = "電子零組件";
 case "8093.TW" : retval = "電子零組件";
 case "8109.TW" : retval = "電子零組件";
 case "8121.TW" : retval = "電子零組件";
 case "8147.TW" : retval = "電子零組件";
 case "8155.TW" : retval = "電子零組件";
 case "8182.TW" : retval = "電子零組件";
 case "8287.TW" : retval = "電子零組件";
 case "8289.TW" : retval = "電子零組件";
 case "8291.TW" : retval = "電子零組件";
 case "8358.TW" : retval = "電子零組件";
 case "2347.TW" : retval = "電子通路";
 case "2414.TW" : retval = "電子通路";
 case "2430.TW" : retval = "電子通路";
 case "2459.TW" : retval = "電子通路";
 case "3010.TW" : retval = "電子通路";
 case "3028.TW" : retval = "電子通路";
 case "3033.TW" : retval = "電子通路";
 case "3036.TW" : retval = "電子通路";
 case "3048.TW" : retval = "電子通路";
 case "3055.TW" : retval = "電子通路";
 case "3209.TW" : retval = "電子通路";
 case "3312.TW" : retval = "電子通路";
 case "3528.TW" : retval = "電子通路";
 case "3702.TW" : retval = "電子通路";
 case "5434.TW" : retval = "電子通路";
 case "6145.TW" : retval = "電子通路";
 case "6189.TW" : retval = "電子通路";
 case "6281.TW" : retval = "電子通路";
 case "8070.TW" : retval = "電子通路";
 case "8112.TW" : retval = "電子通路";
 case "3224.TW" : retval = "電子通路";
 case "3232.TW" : retval = "電子通路";
 case "3360.TW" : retval = "電子通路";
 case "3444.TW" : retval = "電子通路";
 case "6113.TW" : retval = "電子通路";
 case "6118.TW" : retval = "電子通路";
 case "6154.TW" : retval = "電子通路";
 case "6227.TW" : retval = "電子通路";
 case "6265.TW" : retval = "電子通路";
 case "6270.TW" : retval = "電子通路";
 case "8032.TW" : retval = "電子通路";
 case "8067.TW" : retval = "電子通路";
 case "8068.TW" : retval = "電子通路";
 case "8084.TW" : retval = "電子通路";
 case "8096.TW" : retval = "電子通路";
 case "2427.TW" : retval = "資訊服務";
 case "2453.TW" : retval = "資訊服務";
 case "2468.TW" : retval = "資訊服務";
 case "2471.TW" : retval = "資訊服務";
 case "2480.TW" : retval = "資訊服務";
 case "3029.TW" : retval = "資訊服務";
 case "3130.TW" : retval = "資訊服務";
 case "4994.TW" : retval = "資訊服務";
 case "5203.TW" : retval = "資訊服務";
 case "6112.TW" : retval = "資訊服務";
 case "6183.TW" : retval = "資訊服務";
 case "6214.TW" : retval = "資訊服務";
 case "3085.TW" : retval = "資訊服務";
 case "3570.TW" : retval = "資訊服務";
 case "4953.TW" : retval = "資訊服務";
 case "4965.TW" : retval = "資訊服務";
 case "5201.TW" : retval = "資訊服務";
 case "5202.TW" : retval = "資訊服務";
 case "5209.TW" : retval = "資訊服務";
 case "5210.TW" : retval = "資訊服務";
 case "5211.TW" : retval = "資訊服務";
 case "5212.TW" : retval = "資訊服務";
 case "5287.TW" : retval = "資訊服務";
 case "5310.TW" : retval = "資訊服務";
 case "5403.TW" : retval = "資訊服務";
 case "5410.TW" : retval = "資訊服務";
 case "6140.TW" : retval = "資訊服務";
 case "6148.TW" : retval = "資訊服務";
 case "6221.TW" : retval = "資訊服務";
 case "6231.TW" : retval = "資訊服務";
 case "6240.TW" : retval = "資訊服務";
 case "6404.TW" : retval = "資訊服務";
 case "6593.TW" : retval = "資訊服務";
 case "8044.TW" : retval = "資訊服務";
 case "8099.TW" : retval = "資訊服務";
 case "8416.TW" : retval = "資訊服務";
 case "8472.TW" : retval = "資訊服務";
 case "8477.TW" : retval = "資訊服務";
 case "2312.TW" : retval = "其他電子";
 case "2317.TW" : retval = "其他電子";
 case "2354.TW" : retval = "其他電子";
 case "2359.TW" : retval = "其他電子";
 case "2360.TW" : retval = "其他電子";
 case "2373.TW" : retval = "其他電子";
 case "2390.TW" : retval = "其他電子";
 case "2404.TW" : retval = "其他電子";
 case "2423.TW" : retval = "其他電子";
 case "2433.TW" : retval = "其他電子";
 case "2461.TW" : retval = "其他電子";
 case "2464.TW" : retval = "其他電子";
 case "2474.TW" : retval = "其他電子";
 case "2477.TW" : retval = "其他電子";
 case "2482.TW" : retval = "其他電子";
 case "2488.TW" : retval = "其他電子";
 case "2495.TW" : retval = "其他電子";
 case "2497.TW" : retval = "其他電子";
 case "3018.TW" : retval = "其他電子";
 case "3030.TW" : retval = "其他電子";
 case "3043.TW" : retval = "其他電子";
 case "3305.TW" : retval = "其他電子";
 case "3450.TW" : retval = "其他電子";
 case "3518.TW" : retval = "其他電子";
 case "3617.TW" : retval = "其他電子";
 case "3665.TW" : retval = "其他電子";
 case "5225.TW" : retval = "其他電子";
 case "6139.TW" : retval = "其他電子";
 case "6192.TW" : retval = "其他電子";
 case "6196.TW" : retval = "其他電子";
 case "6201.TW" : retval = "其他電子";
 case "6215.TW" : retval = "其他電子";
 case "6409.TW" : retval = "其他電子";
 case "8021.TW" : retval = "其他電子";
 case "8201.TW" : retval = "其他電子";
 case "1785.TW" : retval = "其他電子";
 case "3067.TW" : retval = "其他電子";
 case "3093.TW" : retval = "其他電子";
 case "3131.TW" : retval = "其他電子";
 case "3285.TW" : retval = "其他電子";
 case "3289.TW" : retval = "其他電子";
 case "3303.TW" : retval = "其他電子";
 case "3324.TW" : retval = "其他電子";
 case "3373.TW" : retval = "其他電子";
 case "3402.TW" : retval = "其他電子";
 case "3498.TW" : retval = "其他電子";
 case "3508.TW" : retval = "其他電子";
 case "3541.TW" : retval = "其他電子";
 case "3551.TW" : retval = "其他電子";
 case "3552.TW" : retval = "其他電子";
 case "3563.TW" : retval = "其他電子";
 case "3580.TW" : retval = "其他電子";
 case "3587.TW" : retval = "其他電子";
 case "3628.TW" : retval = "其他電子";
 case "3642.TW" : retval = "其他電子";
 case "3663.TW" : retval = "其他電子";
 case "4554.TW" : retval = "其他電子";
 case "5205.TW" : retval = "其他電子";
 case "5452.TW" : retval = "其他電子";
 case "5489.TW" : retval = "其他電子";
 case "5493.TW" : retval = "其他電子";
 case "5536.TW" : retval = "其他電子";
 case "6146.TW" : retval = "其他電子";
 case "6151.TW" : retval = "其他電子";
 case "6187.TW" : retval = "其他電子";
 case "6238.TW" : retval = "其他電子";
 case "6247.TW" : retval = "其他電子";
 case "6275.TW" : retval = "其他電子";
 case "6438.TW" : retval = "其他電子";
 case "6512.TW" : retval = "其他電子";
 case "6613.TW" : retval = "其他電子";
 case "8047.TW" : retval = "其他電子";
 case "8085.TW" : retval = "其他電子";
 case "8092.TW" : retval = "其他電子";
 case "8183.TW" : retval = "其他電子";
 case "8383.TW" : retval = "其他電子";
 case "8431.TW" : retval = "其他電子";
 case "8455.TW" : retval = "其他電子";
 case "1436.TW" : retval = "建材營造";
 case "1438.TW" : retval = "建材營造";
 case "1442.TW" : retval = "建材營造";
 case "1805.TW" : retval = "建材營造";
 case "1808.TW" : retval = "建材營造";
 case "2501.TW" : retval = "建材營造";
 case "2504.TW" : retval = "建材營造";
 case "2505.TW" : retval = "建材營造";
 case "2506.TW" : retval = "建材營造";
 case "2509.TW" : retval = "建材營造";
 case "2511.TW" : retval = "建材營造";
 case "2515.TW" : retval = "建材營造";
 case "2516.TW" : retval = "建材營造";
 case "2520.TW" : retval = "建材營造";
 case "2524.TW" : retval = "建材營造";
 case "2527.TW" : retval = "建材營造";
 case "2528.TW" : retval = "建材營造";
 case "2530.TW" : retval = "建材營造";
 case "2534.TW" : retval = "建材營造";
 case "2535.TW" : retval = "建材營造";
 case "2536.TW" : retval = "建材營造";
 case "2537.TW" : retval = "建材營造";
 case "2538.TW" : retval = "建材營造";
 case "2539.TW" : retval = "建材營造";
 case "2540.TW" : retval = "建材營造";
 case "2542.TW" : retval = "建材營造";
 case "2543.TW" : retval = "建材營造";
 case "2545.TW" : retval = "建材營造";
 case "2546.TW" : retval = "建材營造";
 case "2547.TW" : retval = "建材營造";
 case "2548.TW" : retval = "建材營造";
 case "2597.TW" : retval = "建材營造";
 case "2841.TW" : retval = "建材營造";
 case "2923.TW" : retval = "建材營造";
 case "3052.TW" : retval = "建材營造";
 case "3056.TW" : retval = "建材營造";
 case "3266.TW" : retval = "建材營造";
 case "3703.TW" : retval = "建材營造";
 case "5515.TW" : retval = "建材營造";
 case "5519.TW" : retval = "建材營造";
 case "5521.TW" : retval = "建材營造";
 case "5522.TW" : retval = "建材營造";
 case "5525.TW" : retval = "建材營造";
 case "5531.TW" : retval = "建材營造";
 case "5533.TW" : retval = "建材營造";
 case "5534.TW" : retval = "建材營造";
 case "6177.TW" : retval = "建材營造";
 case "9906.TW" : retval = "建材營造";
 case "9946.TW" : retval = "建材營造";
 case "2596.TW" : retval = "建材營造";
 case "3489.TW" : retval = "建材營造";
 case "4113.TW" : retval = "建材營造";
 case "4416.TW" : retval = "建材營造";
 case "4907.TW" : retval = "建材營造";
 case "5206.TW" : retval = "建材營造";
 case "5213.TW" : retval = "建材營造";
 case "5324.TW" : retval = "建材營造";
 case "5508.TW" : retval = "建材營造";
 case "5511.TW" : retval = "建材營造";
 case "5512.TW" : retval = "建材營造";
 case "5514.TW" : retval = "建材營造";
 case "5516.TW" : retval = "建材營造";
 case "5520.TW" : retval = "建材營造";
 case "5523.TW" : retval = "建材營造";
 case "5529.TW" : retval = "建材營造";
 case "5543.TW" : retval = "建材營造";
 case "6171.TW" : retval = "建材營造";
 case "6186.TW" : retval = "建材營造";
 case "6212.TW" : retval = "建材營造";
 case "6219.TW" : retval = "建材營造";
 case "6264.TW" : retval = "建材營造";
 case "8424.TW" : retval = "建材營造";
 case "2208.TW" : retval = "航運業";
 case "2603.TW" : retval = "航運業";
 case "2605.TW" : retval = "航運業";
 case "2606.TW" : retval = "航運業";
 case "2607.TW" : retval = "航運業";
 case "2608.TW" : retval = "航運業";
 case "2609.TW" : retval = "航運業";
 case "2610.TW" : retval = "航運業";
 case "2611.TW" : retval = "航運業";
 case "2612.TW" : retval = "航運業";
 case "2613.TW" : retval = "航運業";
 case "2615.TW" : retval = "航運業";
 case "2617.TW" : retval = "航運業";
 case "2618.TW" : retval = "航運業";
 case "2633.TW" : retval = "航運業";
 case "2634.TW" : retval = "航運業";
 case "2636.TW" : retval = "航運業";
 case "2637.TW" : retval = "航運業";
 case "2642.TW" : retval = "航運業";
 case "5607.TW" : retval = "航運業";
 case "5608.TW" : retval = "航運業";
 case "2641.TW" : retval = "航運業";
 case "2643.TW" : retval = "航運業";
 case "5601.TW" : retval = "航運業";
 case "5603.TW" : retval = "航運業";
 case "5604.TW" : retval = "航運業";
 case "5609.TW" : retval = "航運業";
 case "2701.TW" : retval = "觀光";
 case "2702.TW" : retval = "觀光";
 case "2704.TW" : retval = "觀光";
 case "2705.TW" : retval = "觀光";
 case "2706.TW" : retval = "觀光";
 case "2707.TW" : retval = "觀光";
 case "2712.TW" : retval = "觀光";
 case "2722.TW" : retval = "觀光";
 case "2723.TW" : retval = "觀光";
 case "2727.TW" : retval = "觀光";
 case "2731.TW" : retval = "觀光";
 case "2739.TW" : retval = "觀光";
 case "2748.TW" : retval = "觀光";
 case "5706.TW" : retval = "觀光";
 case "8940.TW" : retval = "觀光";
 case "9943.TW" : retval = "觀光";
 case "1259.TW" : retval = "觀光";
 case "1268.TW" : retval = "觀光";
 case "2718.TW" : retval = "觀光";
 case "2719.TW" : retval = "觀光";
 case "2726.TW" : retval = "觀光";
 case "2729.TW" : retval = "觀光";
 case "2732.TW" : retval = "觀光";
 case "2734.TW" : retval = "觀光";
 case "2736.TW" : retval = "觀光";
 case "2740.TW" : retval = "觀光";
 case "2928.TW" : retval = "觀光";
 case "4804.TW" : retval = "觀光";
 case "5301.TW" : retval = "觀光";
 case "5364.TW" : retval = "觀光";
 case "5701.TW" : retval = "觀光";
 case "5703.TW" : retval = "觀光";
 case "5704.TW" : retval = "觀光";
 case "8077.TW" : retval = "觀光";
 case "8462.TW" : retval = "觀光";
 case "2801.TW" : retval = "金融保險";
 case "2809.TW" : retval = "金融保險";
 case "2812.TW" : retval = "金融保險";
 case "2816.TW" : retval = "金融保險";
 case "2820.TW" : retval = "金融保險";
 case "2823.TW" : retval = "金融保險";
 case "2832.TW" : retval = "金融保險";
 case "2834.TW" : retval = "金融保險";
 case "2836.TW" : retval = "金融保險";
 case "2838.TW" : retval = "金融保險";
 case "2845.TW" : retval = "金融保險";
 case "2849.TW" : retval = "金融保險";
 case "2850.TW" : retval = "金融保險";
 case "2851.TW" : retval = "金融保險";
 case "2852.TW" : retval = "金融保險";
 case "2855.TW" : retval = "金融保險";
 case "2856.TW" : retval = "金融保險";
 case "2867.TW" : retval = "金融保險";
 case "2880.TW" : retval = "金融保險";
 case "2881.TW" : retval = "金融保險";
 case "2882.TW" : retval = "金融保險";
 case "2883.TW" : retval = "金融保險";
 case "2884.TW" : retval = "金融保險";
 case "2885.TW" : retval = "金融保險";
 case "2886.TW" : retval = "金融保險";
 case "2887.TW" : retval = "金融保險";
 case "2888.TW" : retval = "金融保險";
 case "2889.TW" : retval = "金融保險";
 case "2890.TW" : retval = "金融保險";
 case "2891.TW" : retval = "金融保險";
 case "2892.TW" : retval = "金融保險";
 case "2897.TW" : retval = "金融保險";
 case "5880.TW" : retval = "金融保險";
 case "6005.TW" : retval = "金融保險";
 case "6024.TW" : retval = "金融保險";
 case "5820.TW" : retval = "金融保險";
 case "5878.TW" : retval = "金融保險";
 case "6015.TW" : retval = "金融保險";
 case "6016.TW" : retval = "金融保險";
 case "6020.TW" : retval = "金融保險";
 case "6021.TW" : retval = "金融保險";
 case "6023.TW" : retval = "金融保險";
 case "6026.TW" : retval = "金融保險";
 case "1432.TW" : retval = "貿易百貨";
 case "2601.TW" : retval = "貿易百貨";
 case "2614.TW" : retval = "貿易百貨";
 case "2901.TW" : retval = "貿易百貨";
 case "2903.TW" : retval = "貿易百貨";
 case "2905.TW" : retval = "貿易百貨";
 case "2906.TW" : retval = "貿易百貨";
 case "2908.TW" : retval = "貿易百貨";
 case "2910.TW" : retval = "貿易百貨";
 case "2911.TW" : retval = "貿易百貨";
 case "2912.TW" : retval = "貿易百貨";
 case "2913.TW" : retval = "貿易百貨";
 case "2915.TW" : retval = "貿易百貨";
 case "2929.TW" : retval = "貿易百貨";
 case "2936.TW" : retval = "貿易百貨";
 case "4807.TW" : retval = "貿易百貨";
 case "5906.TW" : retval = "貿易百貨";
 case "5907.TW" : retval = "貿易百貨";
 case "8429.TW" : retval = "貿易百貨";
 case "8443.TW" : retval = "貿易百貨";
 case "8454.TW" : retval = "貿易百貨";
 case "2916.TW" : retval = "貿易百貨";
 case "2924.TW" : retval = "貿易百貨";
 case "2937.TW" : retval = "貿易百貨";
 case "3171.TW" : retval = "貿易百貨";
 case "5902.TW" : retval = "貿易百貨";
 case "5903.TW" : retval = "貿易百貨";
 case "5904.TW" : retval = "貿易百貨";
 case "5905.TW" : retval = "貿易百貨";
 case "6195.TW" : retval = "貿易百貨";
 case "8066.TW" : retval = "貿易百貨";
 case "8433.TW" : retval = "貿易百貨";
 case "8941.TW" : retval = "貿易百貨";
 case "9960.TW" : retval = "貿易百貨";
 case "2616.TW" : retval = "油電燃氣";
 case "6505.TW" : retval = "油電燃氣";
 case "8926.TW" : retval = "油電燃氣";
 case "9908.TW" : retval = "油電燃氣";
 case "9918.TW" : retval = "油電燃氣";
 case "9926.TW" : retval = "油電燃氣";
 case "9931.TW" : retval = "油電燃氣";
 case "9937.TW" : retval = "油電燃氣";
 case "8908.TW" : retval = "油電燃氣";
 case "8917.TW" : retval = "油電燃氣";
 case "8927.TW" : retval = "油電燃氣";
 case "8931.TW" : retval = "油電燃氣";
 case "2926.TW" : retval = "文化創意";
 case "3064.TW" : retval = "文化創意";
 case "3083.TW" : retval = "文化創意";
 case "3086.TW" : retval = "文化創意";
 case "3293.TW" : retval = "文化創意";
 case "3546.TW" : retval = "文化創意";
 case "3687.TW" : retval = "文化創意";
 case "4803.TW" : retval = "文化創意";
 case "4806.TW" : retval = "文化創意";
 case "4946.TW" : retval = "文化創意";
 case "5263.TW" : retval = "文化創意";
 case "5278.TW" : retval = "文化創意";
 case "5478.TW" : retval = "文化創意";
 case "6111.TW" : retval = "文化創意";
 case "6144.TW" : retval = "文化創意";
 case "6169.TW" : retval = "文化創意";
 case "6180.TW" : retval = "文化創意";
 case "6482.TW" : retval = "文化創意";
 case "6542.TW" : retval = "文化創意";
 case "8446.TW" : retval = "文化創意";
 case "8450.TW" : retval = "文化創意";
 case "8489.TW" : retval = "文化創意";
 case "8923.TW" : retval = "文化創意";
 case "9949.TW" : retval = "文化創意";
 case "4171.TW" : retval = "農業科技業";
 case "6508.TW" : retval = "農業科技業";
 case "9103.TW" : retval = "存託憑證";
 case "910322.TW" : retval = "存託憑證";
 case "910482.TW" : retval = "存託憑證";
 case "9105.TW" : retval = "存託憑證";
 case "910708.TW" : retval = "存託憑證";
 case "910861.TW" : retval = "存託憑證";
 case "9110.TW" : retval = "存託憑證";
 case "911608.TW" : retval = "存託憑證";
 default : retval = "XXX";
End;

八,近幾日量縮拉回

input:day(5,"量縮拉回天數");
if average(volume,day)<=average(volume,day+5)
and average(close,day)<=average(close,day+5)
then ret=1;

九,投信剛剛開始買

input: day(30, "計算期間");
 value1 = summation(GetField("投信買賣超")[1], day); 
 value2 = summation(volume[2], day);
 condition1 = value1 < value2 * 0.02;
 //先前投信不怎麼買這檔股票
 
 condition2 = GetField("投信買賣超")>= volume[1] * 0.15;
 //投信開始較大買超
 
 condition3 = H > H[1];
 //買了股價有往上攻
 
 condition4 = C > C[1];
 //今天收盤有往上走
 
 condition5=close<close[10]*1.05;
 //近期股價尚未大漲
 
 RET = condition1 and condition2 and condition3 and condition4 and condition5;

十,股票箱突破

input:length(12);
value1=NthHighest(1,high,length);
value3=nthhighest(3,high,length);
value4=Nthlowest(1,low,length);
value5=nthlowest(3,low,length);
if 
value1[1]<=1.03*value3[1]
and value5[1]<=value4[1]*1.03
and value1[1]<=value4[1]*1.1
and close>value1[1]
and average(volume,100)>1000
and average(volume,10)>average(volume,50)

then ret=1;

XS的目標是讓大家有任何的投資idea,都可以變成對應的程式碼,因為變成程式碼才能回測,才能自動產生訊號,希望透過分享這些常用語法的程式碼,可以讓大家很快的把投資idea轉換成程式碼,組合出自己的選股及交易策略,當然如果大家有任何的idea想要轉換成程式碼而踫到困難時,也可以直接po上來或是問小編,我自己的學習過程裡,也常常麻煩工程師們寫個樣本讓我抄,之後我就跟著套用在不同的情況下就好了,畢竟寫程式是為了讓投資idea程式化,程式化是目的,coding是手段,目的達到才重要,不必要每一行都要自己code。

選股常用語的對應程式集

愈來愈多網友,開始試著用XS來寫程式挑股票,決定進場時機,新手上路,需要老司機,我整理了一些股市專有名詞對應的語法,供大家參考。

一,整理結束

語法如下:

//盤整後噴出
input: Periods(20,"計算期數");
input: Ratio(3,"近期波動幅度%");
settotalbar(300);
setbarback(50);

condition1 = false;

if (highest(high[1],Periods-1) - lowest(low[1],Periods-1))/close[1] <= ratio*0.01 
then condition1=true//近期波動在?%以內
else return;

if condition1 and high = highest(high, Periods)
and close>close[1]*1.02
then ret=1;//盤整後往上突破

這個腳本可以挑出像下面這樣的股票

2019032301

 

二,下跌時價量背離

腳本如下

input:period(10);
input:times(5);
if close[1]*1.1<close[40]
and countif(c>c[1]xor v>v[1],period)
>=times
and close=highest(close,period)
then ret=1;

可以挑出的股票如下

2019032202

三,KD進入超賣區

腳本如下

input: Length(9), RSVt(3), Kt(3);
variable: rsv(0), k(0), _d(0);

SetBarBack(maxlist(Length,6));
SetTotalBar(maxlist(Length,6) * 4);

SetInputName(1, "天數");
SetInputName(2, "RSVt權數");
SetInputName(3, "Kt權數");

Stochastic(Length, RSVt, Kt, rsv, k, _d);

IF k<20 and _d<30
then ret=1;

這是在挑出KD值分別低於20及30的股票

四,千張大戶增加

腳本如下

value1=GetField("大戶持股人數","W",param:=1000);
value2=GetField("散戶持股人數","W");
if value1>value1[1]
and value2<value2[1]
then ret=1;
outputfield(1,value1,0,"本週大戶人數");
outputfield(2,value1[1],0,"上週大戶人數");
outputfield(3,value1-value1[1],0,"大戶增加數");
outputfield(4,value2,0,"本週散戶人數");
outputfield(5,value2[1],0,"上週散戶人數");

這腳本可以挑出千張大戶數比前一週多的股票

五,BBand出現買進訊號

腳本如下

input:length(20);
variable:up1(0),down1(0),mid1(0),bbandwidth(0);
up1 = bollingerband(Close, Length, 1);
down1 = bollingerband(Close, Length, -1 );
mid1 = (up1 + down1) / 2;

bbandwidth = 100 * (up1 - down1) / mid1;
if bbandwidth crosses above 5 and close > up1 and close> up1[1]
then ret=1;

六,本益比低於某個水準

腳本如下

input:per(12,"本益比上限");
value1=GetField("本益比","D");
if value1<per
then ret=1; 

七,近期處於上昇趨勢

腳本如下

input:Length(20); //"計算期間"

LinearReg(close, Length, 0, value1, value2, value3, value4);
//做收盤價20天線性回歸
{value1:斜率,value4:預期值}
value5=rsquare(close,value4,20);//算收盤價與線性回歸值的R平方
if value1>0 and value5>0.2
then ret=1;

八,放量起漲

腳本

if average(volume,5) > 200 and
 C> 10 and
 volume > average(V[1],20) *2 
 and close>close[1]*1.01
 then ret=1;

九,空翻多

腳本如下:

condition1 = angle(date[20], date[5]) < 0;
value1 = angle(date[5], date);
condition2 = value1 > 0;

setoutputname1("angle");
outputfield1(value1);
if condition1 and condition2 then ret=1;

十,投信第一天大買進

腳本如下

value1=GetField("最新股本");//單位:億
value2=GetField("投信買張","D");
value3=value2*close/10; //單位:萬}

 
 
condition1=value3>200 and value1<80;
 
condition2=filter(condition1,5);

if condition2 
then ret=1;

這邊有用了一個叫filter的函數,這個涵數是用來過濾一定期別內某一情況為true的次數就僅有最近這一期是true.

 

提供這些腳本,主要是讓大家可以參考,也可以直接copy之後編譯完成變成您的腳本,然後再跟其他條件整合起來一起用。

法人推荐股的使用說明

在XQ裡有一個功能叫法人推荐股,整理了最近券商投顧對台股的最新評等及目標價,我每天習慣會瞄一下,看看裡頭有沒有值得進一步作功課的標的。

這個功能在全球贏家裡的選單如下圖

2019032201

在操盤高手裡則如下圖

2019032202

兩者都是在選股Menu裡頭

點撃後會呈現以下的畫面

2019032203

這裡面整理了國內sell side主要研究機構,個股的最新評級,包括預測的目標價,目標價與最新價位間的差距就是隱含上漲空間。

我個人的使用心得有以下幾個

一,投資評等先看強力買進。

如果是中立啦,區間操作啦,優於大盤啦,持有啦,這推荐的力道都不夠強勁。要特別留意的是強力買進。

舉個例子,以下是最近出現的強力買進評等

2019032206

統一投顧在3/12日對敦陽科發佈強力買進的評等,以下是敦陽科的K線圖

2019032205

除了強力買進之外,買進的股票也值得留意。

二,多留意中小型股。

權值股平常很難有什麼新鮮事,法說會大拜拜之後,大家行禮如儀,調整一下評等,交差了事,報告還沒有寫完股價都反應完了,但中小型股如果研究員勤於拜訪,會比較有機會出現資訊落差。

三,看一下過往的Credit。

法人評等準不準,可以看一下過去的credit,在個股分析裡的基本分析中,有一個機構評等的功能,其參考畫面如下

2019032204

在這個畫面裡,可以找到以前這家研究機構對這檔股票的評等,對照一下股價就知道值不值得參考了。

四,參考其他機構的評等

在第三點的那個頁面裡,可以參考其他研究單位對同一檔股票的評等,正所謂花花轎子人人抬,我一向認為,當大家手上都沒有,但都爭先恐後的想要上車時,股價短線的表現會最強。所以參考一下其他機構的評等,可以知道一檔股票的市場熱度。

五,參考法人及主力買賣超

真的看好會真金白銀的買下去,所以主力或法人應該會是買超,以敦陽科為例,請參考下圖

2019032207

研究員看好一檔股票之後,除了寫報告推荐給客戶之外,公司的自營商或服務的投信應該也會推荐,所以法人應該買超,其次,應該也會推荐給公司的大戶或甚至自己的親朋好友,所以主力也應該是買超,另外代操體系也會收到同樣的建議,所以前十大綜合券商也應該是買超。

例如三月八日元富投顧把明基材的評等提昇為買進,

2019032208

當天真的三大勢力都有買超,顯示這可能是有吸引到真金白銀。

六,選股不如擇時

我在使用這個功能時,一向都是我覺得這個盤有搞頭時才參考,如果覺得盤不好,就算了,不然常常會因為好奇心而手癢被市場電,特別是在空頭市場如果太好奇,常常是去接人家的燙手山芋。

以上大致是我的使用心得,大家看了評等後有興趣看報告的,請直接看券商網站,如果要客戶才能看,那就開個戶囉。

 

從籌碼變化預測大盤後市多空方向

籌碼大數據這個模組,選單裡第一個就是“市場籌碼”,這個項目裡集合了各種籌碼數據與加權指數間的對照與比較,我用這些數據來協助研判大盤的後續方向。

市場籌碼裡,用來協助研判大盤後市的,除了大家很常見到的三大法人,信用交易資券數據之外,也包括了庫藏股,當沖數據,官券買賣超及大戶買賣超等等數據,具體共分成下圖這幾類

籌碼大數據裡的市場分析之籌碼指標

接下來就一類類的跟大家說明使用的方法

一,申報轉讓

籌碼大數據裡的市場分析之申報轉讓

這個項目裡是統計所有上市公司每天申報轉讓的家數,人數及總市值。

我有注意到,在市場高處不勝寒時,申報轉讓的家數及人數都會明顯的增加。

二,申請執行庫藏股的家數及金額

籌碼大數據裡的市場分析之庫藏股

這個項目在市場快見底時,會有很多家同時跳出來說要執行庫藏股,而且金額也會比平常多很多,上市公司最清楚自己的營運狀況,也最清楚知道自己的價值,現在大家愈來愈精,要靠宣佈執行庫藏股來撐股價,之後不執行的公司,愈來愈沒有credit,如果大家都有志一同的宣佈要做庫藏股,我會視為是一個空頭市場接近尾聲的訊號。

三,大戶券商的買賣超情況

籌碼大數據裡的市場分析之券商分級大券商

我會留意每天交易金額超過十億的大券商分點合計的買賣超情況,基本上這些點就是市場的意見領袖,也就是所謂的人氣之所在,從上圖大家可以發現,這些大戶們偏多,大盤就上漲,這些人賣超,盤就很難好。

四,散戶分點的整體買賣超情況

籌碼大數據裡的市場分析之券商分級小券商

從下圖可以看到,每天成交量不到一千萬的分點們,小散戶還常常是反指標,散戶通常是下跌時買進,一漲就賣出,配合第三個指標,基本上大戶買散戶賣是多頭,大戶賣散戶買則後市看跌。

五,當沖數據

籌碼大數據裡的市場分析之現股當沖

這裡的當沖張數是現股當沖及資券互抵兩個數字的加總,大家可以發現,當沖比率走高時,往往代表大家持股信心不足,只想賺當天差價,等到多頭趨勢明顯時,波段資金進來,當沖佔比就下降了。

六,借券賣出

籌碼大數據裡的市場分析之借券

這個數字是大咖的法人及大戶作空的指標,從借券賣出餘額可以看到看到大咖們作空的力道。

七,前十大綜合券商總公司

籌碼大數據裡的市場分析之前十大綜合券商總公司

之前有跟大家分享過,我認為前十大綜合券商總公司的買賣超,代表的是代操的法人動向,而代操的資金做的比較活,所以大家可以從黃線的累計買賣超趨勢,了解法人對於大盤後市的態度。

八,八大官股券商

籌碼大數據裡的市場分析之八大官股行庫

這個數據是用來研判政府相關基金護盤力道的指標,這幾年政府基金愈做愈活,大跌大護,反彈有賺就跑,從這個指標可以看到他們的動向。

以上是市場籌碼裡幾個我常用指標的應用方法,當然我也會參照三大法人及主力的相關數據,但因為這太老生常談,我就不多著墨。

原物料最新報價~景氣循環股的交易法寶

在這一版的XQ操盤高手中,有特別把產業模組獨立出來讓User可以單獨購買這個模組,這個模組是我在使用XQ全球贏家時,一直都非常喜歡的功能,我在決定景氣循環股,如Dram,太陽能,塑化股,鋼鐵股的進出場點時,一定會參考這個模組裡的最新原物料報價,這一篇就來跟大家分享我使用這一頁的心得。

我1989年剛入股市時,當時主要的類股除了金融之外就是紡織,塑化及鋼鐵股,當年有一本刊物叫作市場與行情,裡頭有各種紡織品,塑化品及鋼鐵產品的最新價格,當時我們都透過這本刊物了解上市櫃公司相關產品的最新價格,因為景氣循環股有個特性,那就是一旦供不應求,價格開始上揚時,基於預期心理,需求方會增加庫存,對價格有助漲的效果,一旦預期價格下跌,會延緩及降低補庫存的時點及庫存量,進而造成價格下跌,需求反而減少的促跌效果,而且,景氣循環股一般是連續性生產,而且都是資本密集,無法以量制價,也無法在價格上漲時馬上增加供應量,所以景氣循環股一旦出現價格往上的預期心理,隨後往往會出現一波的上漲行情,股價往往也會跟著衝一波,所以我們會密切關注景氣循環股的對應產品價格,一旦判定市場會有明顯的預期心理,那就準備執行對應的買進或賣出的動作。

XQ基於這樣的需求,整理了80多種的原物料價格及各種產業數據,讓使用者每天透過這一頁就可以了解全球主要原物料的最新價格。

2019031301

 

最近最明顯的例子是DRAM,各位只要點撃原物料最新報價的商品名稱,就可以看到跟下面這張圖類似的該商品價格長期走勢圖

DDR3PRICE

從上面這張圖,我們會發現DRAM的行情是從2016年年中開始往上走,在2017年年底就見頂了。

回頭對照看一下南亞科的股價

2408週線

南亞科的股價一直要到DRAM的漲勢很確立之後的2016年11月下旬,才開始展開了一整年的多頭行情。

前幾天我看到媒體在說南亞科去年EPS12.8,今年會配到6.5到7元,目前股價才60元,所以殖利率是12-13%,如果您有看到DRAM目前的價位,就知道現在南亞科的獲利跟去年已經無法相比擬了,南亞科能不能買,不在於殖利率是不是兩位數,而是DRAM的價格在這邊盤整完之後是要往上還是往下走。

我們從DRAM看南亞科,也可以從大陸的水泥售價看台泥及亞泥,我們來看下面這兩張圖

重慶水泥

1102

重慶水泥從2018年起一直在高檔,連帶的也讓亞泥這個大牛股的股價從30元漲到40元。

類似亞泥及南亞科這樣的情況,都可以透過最新原物料報價這個頁面每天去找出產品價格大漲或大跌的股票。

我自己在使用時有幾個小心得

1.產品價位止跌時,如果是大跌後的止跌,企業獲利數字是最壞的時候,股價還不會動,一直要到產品價格漲了一陣子之後,市場相信最壞的時候過去了,這時候產品價格進入主昇段,股價也開始進入多頭趨勢。

2.要同時留意同一系列的產品,這些產品會有同漲同跌的情況,例如像塑膠粒PE,PP,PS,SM,ABS,PVC等,價位連動的情況很明確,鋼鐵類也多少有這樣的情況,很少我這邊風景獨好的情況,所以如果師兄弟都很慘,千萬別認為價格上漲就是買進訊號,大家都一起好才是好。

3.景氣循環股供給短期不會有太大變化,影響價格的往往是對大環境未來的預期心理,所以在研判價格的反彈能否帶動產品價格由空翻多,往往要跟整體景氣的後續發展合在一起看。

 

有本書專門在寫景氣循環股

大家有興趣可以看一下這本書,然後利用“原物料最新報價”這一頁來挑出一些可以納入觀察名單的股票。

 

 

均線剛往上彎且股價與均線黃金交叉的寫法

有網友來信詢問如何寫一個腳本,來找出40日均線剛往上彎且股價同步突破40日均線。

我揣摩網友的想法,可能是想找到長期下跌趨勢剛剛確認結束的股票,就像下面的圖

2910031001

 

腳本樣本如下

if barfreq<>"Min"and barinterval<>10 then raiseruntimeerror("請使用十分鐘線");
input:period(40,"均線計算區間");
//宣告均線期別的參數
var:ma(0);
//宣告移動平均線的變數名稱
ma=average(close,period);
//指定ma這個變數就是移動平均線的值
if trueall(ma[1]<ma[2],10)
//過去十期前一根均線值都比前前根均線值還低
//代表過去十天的均線值都是下降的
and ma>ma[1]
//今天的均線值大於前一根bar的均線值
//以上兩行敘述代表均線剛上彎
and close cross over ma
//最新價位突破移動平均線

then ret=1;

由於網友要寫的是十分鐘線,所以我這裡頻率是指定十分鐘線,我用這個腳本回測了一下,表現並沒有比指數好。

檢視那些虧錢的交易,我發現通常都是進場點剛好出現在長期下跌趨勢反彈波的最高點,建議要再搭配一些如主力買超等籌碼面的選股條件來一起跑可能會有比較高的勝率。

 

 

如何找到市場上真正的高手,然後跟單??

這幾年,市場上開始出現不少跟單系統,讓一般散戶可以跟隨高手下單,高手買啥就跟著買,高手出場就跟著出場,這一招不算新招,當年我認識的一個市場大戶,就曾經委託工讀生,每天去交易所抄某一個基金經理人進出分公司裡,買進金額大的股票。

這些年交易所每個分公司的進出數據已經可以賣給系統廠商,所以我就建議同仁做了一個高手券商的功能,模仿當年那位大戶的做法,但由於不知道那些基金經理人在那裡下單? 也不知道他們是不是一下單就真的後面基金的資金就會進場拉抬? 所以就乾脆統計每個月分公司當日交易金額超過一定數字的交易,然後看看那個分公司裡,這樣的交易,長期下來勝率高,報酬率也高,這些我們就稱之為高手券商,然後接下來就讓電腦把這些券商每天新增加的高金額部位列出來,這樣,就可以做出一個隔日版的跟單系統了。

這個功能目前是放在籌碼大數據的市場籌碼裡,點了市場籌碼後,左邊會出現這樣的選單,

2019030803

 

點選高手券商英雄榜,就會看到以下的畫面

 

2019031801

透過這個畫面可以根據計算天期及每筆過濾金額,找出所有分公司在一定期間裡,超過一定金額的交易,然後計算出是那幾個分公司在這期間的交易勝率高,平均報酬率也高。

以上圖為例,我是設一年內每筆交易金額超過三百萬的交易

這樣就可以找到過去一年裡最會賺錢的三十家分公司,也就是有高手隱身其中的分公司

接著每天點選高手券商股票進出,

2019030802

就可以找到最近一個交易日,這些高手在買那些股票。

然後我們就可以一檔一檔研究這些高手買的股票,背後可能的故事,再來決定那一檔值得我們跟一跟。