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