{"id":17062,"date":"2022-11-14T04:02:42","date_gmt":"2022-11-13T20:02:42","guid":{"rendered":"https:\/\/www.tejwin.com\/?post_type=insight&#038;p=17062"},"modified":"2024-05-20T15:27:27","modified_gmt":"2024-05-20T07:27:27","slug":"national-stabilization-fund-performances","status":"publish","type":"insight","link":"https:\/\/www.tejwin.com\/en\/insight\/national-stabilization-fund-performances\/","title":{"rendered":"National Stabilization Fund Performances"},"content":{"rendered":"\n<p id=\"d90b\">An Introduction to National Stabilization Fund and its hot stocks\u2019 performances<\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter is-resized caption-align-center\"><img decoding=\"async\" src=\"https:\/\/www.tejwin.com\/wp-content\/uploads\/1bIJIoKaItKwfvShEKZun3A.png\" alt=\"\" style=\"width:842px;height:558px\"\/><figcaption class=\"wp-element-caption\">Photo by\u00a0Wance Paleri\u00a0on\u00a0<a href=\"https:\/\/unsplash.com\/s\/photos\/finance\" target=\"_blank\" rel=\"noreferrer noopener\">Unsplash<\/a><\/figcaption><\/figure>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"1f2a\">Keyword\uff1aQuant analysis\u3001National Stabilization Fund\u3001Protection Performance<\/h4>\n\n\n\n<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_81 counter-hierarchy ez-toc-counter ez-toc-grey ez-toc-container-direction\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">Table of Contents<\/p>\n<label for=\"ez-toc-cssicon-toggle-item-69f7e673892a5\" class=\"ez-toc-cssicon-toggle-label\"><span class=\"ez-toc-cssicon\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #999;color:#999\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewBox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #999;color:#999\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewBox=\"0 0 24 24\" version=\"1.2\" baseProfile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/label><input type=\"checkbox\"  id=\"ez-toc-cssicon-toggle-item-69f7e673892a5\"  aria-label=\"Toggle\" \/><nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/www.tejwin.com\/en\/insight\/national-stabilization-fund-performances\/#Highlights\" >Highlights<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/www.tejwin.com\/en\/insight\/national-stabilization-fund-performances\/#Preface\" >Preface<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/www.tejwin.com\/en\/insight\/national-stabilization-fund-performances\/#Introduction_of_National_Stabilization_Fund\" >Introduction of National Stabilization Fund<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/www.tejwin.com\/en\/insight\/national-stabilization-fund-performances\/#What_is_market_disorder\" >What is market disorder<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/www.tejwin.com\/en\/insight\/national-stabilization-fund-performances\/#History\" >History<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-6\" href=\"https:\/\/www.tejwin.com\/en\/insight\/national-stabilization-fund-performances\/#National_Security_Fund_Hot_Pocket_List\" >National Security Fund Hot Pocket List<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-7\" href=\"https:\/\/www.tejwin.com\/en\/insight\/national-stabilization-fund-performances\/#Questions\" >Questions<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-8\" href=\"https:\/\/www.tejwin.com\/en\/insight\/national-stabilization-fund-performances\/#The_Editing_Environment_and_Module_Required\" >The Editing Environment and Module Required<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-9\" href=\"https:\/\/www.tejwin.com\/en\/insight\/national-stabilization-fund-performances\/#Database\" >Database<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-10\" href=\"https:\/\/www.tejwin.com\/en\/insight\/national-stabilization-fund-performances\/#Data_import\" >Data import<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-11\" href=\"https:\/\/www.tejwin.com\/en\/insight\/national-stabilization-fund-performances\/#Summary\" >Summary<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-12\" href=\"https:\/\/www.tejwin.com\/en\/insight\/national-stabilization-fund-performances\/#Earn_money_with_the_eight_major_brokerages\" >Earn money with the eight major brokerages?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-13\" href=\"https:\/\/www.tejwin.com\/en\/insight\/national-stabilization-fund-performances\/#Data_import-2\" >Data import<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-14\" href=\"https:\/\/www.tejwin.com\/en\/insight\/national-stabilization-fund-performances\/#Summary-2\" >Summary<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-15\" href=\"https:\/\/www.tejwin.com\/en\/insight\/national-stabilization-fund-performances\/#Conclusion\" >Conclusion<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-16\" href=\"https:\/\/www.tejwin.com\/en\/insight\/national-stabilization-fund-performances\/#Source_Code\" >Source Code<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-17\" href=\"https:\/\/www.tejwin.com\/en\/insight\/national-stabilization-fund-performances\/#Extended_Reading\" >Extended Reading<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-18\" href=\"https:\/\/www.tejwin.com\/en\/insight\/national-stabilization-fund-performances\/#Related_Link\" >Related Link<\/a><\/li><\/ul><\/nav><\/div>\n<h2 class=\"wp-block-heading\" id=\"b565\"><span class=\"ez-toc-section\" id=\"Highlights\"><\/span><strong>Highlights<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p id=\"998c\">Difficulty: \u2605\u2606\u2606\u2606\u2606<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"9b37\"><span class=\"ez-toc-section\" id=\"Preface\"><\/span><strong>Preface<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p id=\"56e1\">In 2022, under the unstable background caused by the Ukrainian-Russian War and high inflation, rising prices suppressed consumers\u2019 purchasing power, which made a great influence on companies\u2019 profits. As a result of this, people were concerned about a global recession. The US Federal Reserve raised the interest rate against high inflation, but it led to the withdrawal of funds from bond and stock markets. This was the end of the Quantitative Easing policy published two years ago. The US Nasdaq and Philadelphia Semiconductor Indexes both made a correction of over 30%, Taiwan Weighted Index also fell from 18619pts to 13950pts, equivalent to 25%. After a mass crash of 390pts on July 12th, the Ministry of Finance officially authorized National Stabilization Fund to enter the market for stable market reasons. This was the 8th time of National Stabilization Fund entrance, and also was the first action after the index went above 10000pts.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"abd2\"><span class=\"ez-toc-section\" id=\"Introduction_of_National_Stabilization_Fund\"><\/span><strong>Introduction of National Stabilization Fund<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p id=\"3def\">Competent Authority: Executive Yuan<\/p>\n\n\n\n<p id=\"223f\">Purpose of establishment: Article 1 of the Regulations on the Establishment and Management of the National Financial Stability Fund: To maintain the stability of the capital market and other financial markets and ensure national stability in response to major domestic and foreign events.<\/p>\n\n\n\n<p id=\"1611\">Funding source:<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p id=\"c779\">1. With the shares of public enterprises held by the government as the guarantee, loans from financial institutions with a maximum loan amount of NT$200billion.<br>2. Borrow the funds available for securities investment but not yet invested in the postal savings fund, postal life insurance accumulation fund, labor insurance fund, labor retirement fund, and civil servants\u2019 retirement pension fund; the maximum amount is NT$300 billion.<\/p>\n<\/blockquote>\n\n\n\n<p id=\"ee95\">Total cap: NT$500 billion<\/p>\n\n\n\n<p id=\"bd09\">Trader: A committee consists of eleven to thirteen members, one of whom is a chairman, who is concurrently served by the vice president of Executive Yuan. Other members are the chairman of the labor committee of the hospital and the minister of the Ministry of Civil Affairs are concurrently appointed by the competent authority, and are selected by the competent authorities from the scholars and experts recommended by the various parties of the Legislative Yuan.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"e795\"><span class=\"ez-toc-section\" id=\"What_is_market_disorder\"><\/span><strong>What is market disorder<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p id=\"7523\">The volume of the stock market declines drastically leading to many investors can\u2019t sell their shares, the capital of the stock market outflows substantially, the Taiwan stock market fell significantly more than other Asian markets, and the mass crash of the stock market lead to the fear of other financial markets.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"349a\"><span class=\"ez-toc-section\" id=\"History\"><\/span><strong>History<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<figure class=\"wp-block-image aligncenter\"><img decoding=\"async\" src=\"https:\/\/www.tejwin.com\/wp-content\/uploads\/1EaWtBrMrGYGgtTb5VIkDqQ.png\" alt=\"\"\/><figcaption class=\"wp-element-caption\">This was the 8th entrance of the National Stabilization Fund for the economical recession reasons caused by the Ukrainian-Russian War and high inflation<\/figcaption><\/figure>\n\n\n\n<p id=\"853f\">The objective of the National Stabilization Fund is to stabilize stock markets and other financial markets. From the above table, it is obvious that National Stabilization Fund usually can control the descending trend of the index. However, National Stabilization Fund failed in the below two situations: The Bubble of the internet and the Israeli-Palestinian conflict in 2000, and the global financial crisis in 2008. It shows that National Stabilization Fund was powerless when it faced global negative economical factors. Nevertheless, under the overall observation, National Stabilization Fund is an effective measure to stabilize the stock market, especially for uneconomical factors. It can normalize the stock market with a little money. For instance, unstable political circumstances after the March 19 shooting case, and the outbreak of Covid-19.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"45b2\"><span class=\"ez-toc-section\" id=\"National_Security_Fund_Hot_Pocket_List\"><\/span><strong>National Security Fund Hot Pocket List<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p id=\"de23\">Observing the shareholding details of National Stabilization Fund for the past four times, we found the following ten stocks are all in the pocket list of National Stabilization Fund. We classify the following ten stocks by industry.<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p id=\"9b76\">Financial stocks: 2880 Huanan Gold, 2886 Mega Gold<br>Technology stocks: 2308 Delta ELECTRONICS, 2330 TSMC, 2317 Hon Hai, 2382 Quanta<br>Production stocks: 1101 Taiwan Cement, 1301 Formosa Plastics, 1303 South Asia, 1326 Taiwan Chemical<\/p>\n<\/blockquote>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"0438\"><span class=\"ez-toc-section\" id=\"Questions\"><\/span><strong>Questions<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p id=\"8b5e\">Can we earn by investing Hot Pocket List?<br>It is often mentioned in the news that people can make money by following the National Stabilization Fund Hot List. Is this a real case?<\/p>\n\n\n\n<p id=\"6671\">We will discuss the profit of the above ten stocks during the entry period of the Fund in the past four times.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"fcc6\"><span class=\"ez-toc-section\" id=\"The_Editing_Environment_and_Module_Required\"><\/span><strong>The Editing Environment and Module Required<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<pre class=\"wp-block-preformatted\">import tejapi<br>import pandas as pd<br>import numpy as nptejapi.ApiConfig.api_base=\"Your Key\"<br>tejapi.ApiConfig.ignoretz = Trueplt.rcParams['font.sans-serif'] = ['Microsoft JhengHei'] <br>plt.rcParams['axes.unicode_minus'] = False<\/pre>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"2e97\"><span class=\"ez-toc-section\" id=\"Database\"><\/span><strong>Database<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p id=\"4db3\"><a href=\"https:\/\/api.tej.com.tw\/columns.html?idCode=TWN%2FAMTOP1\" rel=\"noreferrer noopener\" target=\"_blank\">Entry and exit details of major securities companies \u2014 stock type (AMTOP1)<\/a><em><br><\/em><a href=\"https:\/\/api.tej.com.tw\/columndoc.html?subId=46\" rel=\"noreferrer noopener\" target=\"_blank\"><em>Listed company adjusted stock price(daily)-ex-right and dividends adjustment(TWN\/APRCD1)<\/em><\/a><\/p>\n<\/blockquote>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"7515\"><span class=\"ez-toc-section\" id=\"Data_import\"><\/span><strong>Data import<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p id=\"456c\">The data period is the period of the 7th National Security FundGet<br>Taiwan Weighted Return Index<\/p>\n<\/blockquote>\n\n\n\n<pre class=\"wp-block-preformatted\">#\u7b2c\u4e03\u6b21\u570b\u5b89\u57fa\u91d1\u9032\u5834<br>mdate = {'gte':'2020-03-20', 'lte':'2020-10-12'}<br>#\u516b\u5927\u884c\u5eab\u5238\u5546<br>bank = [\"000102 \u5408\u5eab\u8b49\u5238\",\"000538 \u7b2c\u4e00\u91d1\u8b49\",\"000104 \u81fa\u9280\u8b49\u5238\",\"2801   \u5f70\u9280\",\"2834   \u81fa\u4f01\u9280\",\"5857   \u571f\u9280\",\"000930 \u83ef\u5357\u6c38\u660c\u8b49\u5238\",\"000700 \u5146\u8c50\u8b49\u5238\"]<\/pre>\n\n\n\n<p id=\"c96c\">Obtain the stock price of National Stabilization Fund Fund\u2019s hot pocket list.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">#\u570b\u5b89\u57fa\u91d1\u71b1\u9580\u6a19\u7684<br>coid = [\"1101\",\"1301\",\"1303\",\"1326\",\"2308\",\"2317\",\"2330\",\"2382\",\"2880\",\"2886\"]for i in range(0,len(coid)):<br>    <br>    stock = tejapi.get('TWN\/APRCD1',<br>                              coid = coid[i],<br>                              mdate = mdate,<br>                              paginate=True)<br>    df1 = pd.DataFrame({\"\u65e5\u671f\":stock[\"mdate\"],str(coid[i]):stock[\"close_adj\"]})<br>    #\u4ee5\u65e5\u671f\u505a\u5408\u4f75<br>    df = pd.merge(df,df1,left_on=\"\u65e5\u671f\",right_on=\"\u65e5\u671f\",how=\"outer\")<br>df<\/pre>\n\n\n\n<figure class=\"wp-block-image aligncenter\"><img decoding=\"async\" src=\"https:\/\/www.tejwin.com\/wp-content\/uploads\/1_1qhS23CGLXFyqX0GwzR5l3g.png\" alt=\"\"\/><figcaption class=\"wp-element-caption\">7th<\/figcaption><\/figure>\n\n\n\n<p id=\"06ff\">Individual stock performance calculation<br>Performance formula: (daily stock price \u2014 stock price of the Fund on the first day of market entry) \/ stock price of the Fund on the first day of market entry.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">#\u7b97\u500b\u5225\u500b\u80a1\u7e3e\u6548<br>#(\u6bcf\u5929\u80a1\u50f9-\u570b\u5b89\u57fa\u91d1\u9032\u5834\u7b2c\u4e00\u5929\u80a1\u50f9)\/\u570b\u5b89\u57fa\u91d1\u9032\u5834\u7b2c\u4e00\u5929\u80a1\u50f9<br>df2 = (df.iloc[:, 1:] - df.iloc[0, 1:].values.squeeze()).div(df.iloc[:, 1:])<br>#\u56db\u6368\u4e94\u5165<br>df2 = df2.astype(float).round(3)<br>df_result = pd.DataFrame({\"\u65e5\u671f\":df[\"\u65e5\u671f\"]})<br><br>df_result = pd.merge(df_result,df2,left_on=None,right_on=None,left_index=True, <br>right_index=True)<br><br>df_result<\/pre>\n\n\n\n<figure class=\"wp-block-image aligncenter\"><img decoding=\"async\" src=\"https:\/\/www.tejwin.com\/wp-content\/uploads\/1_1TqnH6vGbxjP059LJM6LhTQ.png\" alt=\"\"\/><figcaption class=\"wp-element-caption\">7th<\/figcaption><\/figure>\n\n\n\n<pre class=\"wp-block-preformatted\">df = df_result<br>import matplotlib.pyplot as plt<br>df.set_index(pd.to_datetime(df[\"\u65e5\u671f\"], format=\"%Y-%m-%d\"), inplace=True)<br>del(df[\"\u65e5\u671f\"])<br>plt.rcParams['font.sans-serif'] = ['Microsoft JhengHei'] <br>plt.rcParams['axes.unicode_minus'] = False<br>#\u756b\u5716<br>fig, ax1 = plt.subplots(figsize=(20, 10))<br>plt.plot(df.index,df[coid],lw=1.5,label=coid)<br>plt.plot(df.index,df[\"\u5927\u76e4\"],lw=5,label=\"\u5927\u76e4\",color=\"blue\")<br>plt.xlabel(\"\u65e5\u671f\",fontsize=20)<br>plt.ylabel(\"\u7d2f\u7a4d\u5831\u916c\",fontsize=20)<br>plt.xticks(fontsize=20)<br>plt.yticks(fontsize=20)<br>plt.title(\"\u7b2c\u4e03\u6b21\u570b\u5b89\u57fa\u91d1\u71b1\u9580\u6a19\u7684\u80a1\u50f9\u8868\u73fe\u8207\u5927\u76e4\u6bd4\u8f03\",fontsize=30)<br>plt.legend(bbox_to_anchor=(1, 1.0))<br>plt.show()<\/pre>\n\n\n\n<figure class=\"wp-block-image aligncenter\"><img decoding=\"async\" src=\"https:\/\/www.tejwin.com\/wp-content\/uploads\/1_1tsHAFJLVrG3aO_un1i5Myw.png\" alt=\"\"\/><\/figure>\n\n\n\n<figure class=\"wp-block-image aligncenter\"><img decoding=\"async\" src=\"https:\/\/www.tejwin.com\/wp-content\/uploads\/1_1kdLP9uQKQHPSvCWndkaJsw.png\" alt=\"\"\/><\/figure>\n\n\n\n<figure class=\"wp-block-image aligncenter\"><img decoding=\"async\" src=\"https:\/\/www.tejwin.com\/wp-content\/uploads\/1_17aSTN4EopKoPHfxjUQhcFQ.png\" alt=\"\"\/><\/figure>\n\n\n\n<figure class=\"wp-block-image aligncenter\"><img decoding=\"async\" src=\"https:\/\/www.tejwin.com\/wp-content\/uploads\/1_1mRqLQeidbuPNu8hTnvtDTA.png\" alt=\"\"\/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"7f9f\"><span class=\"ez-toc-section\" id=\"Summary\"><\/span><strong>Summary<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p id=\"820e\">The results of the above four popular stocks entering the market found that the targets in the Fund list may not necessarily outperform the market during the market entry period. Only 2330\u2019s cumulative returns during the four market entry periods all beat the market. Therefore, When Fund enters the market, we don\u2019t need to screen according to the previous targets of the National Stabilization Fund. ETFs that passively track weighted indexes, such as: 0050, will be a more appropriate choice.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"d5f2\"><span class=\"ez-toc-section\" id=\"Earn_money_with_the_eight_major_brokerages\"><\/span><strong>Earn money with the eight major brokerages?<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p id=\"0d90\">Since National Stabilization Fund\u2019s entry and exit and shareholding details are strictly confidential, the public can only see the profit and loss and shareholding during the protection period in the National Stabilization Fund financial report issued by the Ministry of Finance after the Fund announced the end of the period. The only way to track the movement of the Fund during the market protection period is to take the action on the trading daily records of the eight major banks. However, since not only the Fund enters and exits from the eight major banks, but also ordinary large investors and retail investors, this undoubtedly greatly increases the difficulty of tracking.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"f068\"><span class=\"ez-toc-section\" id=\"Data_import-2\"><\/span><strong>Data import<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p id=\"b768\">The data period is the period of the seventh National Security Fund support<br>Taiwan Weighted Return Index<br>Obtain oversell data during the fund entry period from the eight major bank warehouses.<\/p>\n<\/blockquote>\n\n\n\n<pre class=\"wp-block-preformatted\">#\u7b2c\u4e03\u6b21\u570b\u5b89\u57fa\u91d1\u9032\u5834<br>mdate = {'gte':'2020-03-20', 'lte':'2020-10-12'}<br>#\u516b\u5927\u884c\u5eab\u5238\u5546<br>bank = [\"000102 \u5408\u5eab\u8b49\u5238\",\"000538 \u7b2c\u4e00\u91d1\u8b49\",\"000104 \u81fa\u9280\u8b49\u5238\",\"2801   \u5f70\u9280\",\"2834   \u81fa\u4f01\u9280\",\"5857   \u571f\u9280\",\"000930 \u83ef\u5357\u6c38\u660c\u8b49\u5238\",\"000700 \u5146\u8c50\u8b49\u5238\"]<br>#\u570b\u5b89\u57fa\u91d1\u71b1\u9580\u6a19\u7684<br>coid = [\"1101\",\"1301\",\"1303\",\"1326\",\"2308\",\"2317\",\"2330\",\"2382\",\"2880\",\"2886\"]<\/pre>\n\n\n\n<p id=\"2cd6\">The correlation between the stock price performance of the National Stabilization Fund\u2019s popular stocks and the total net transaction amount of the eight major securities firms.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">cor = []<br>for i in coid:<br>    <br>#-------------------------------------------------------------------<br>    #\u500b\u80a1\u80a1\u50f9<br>    market = tejapi.get('TWN\/APRCD1',<br>                      coid = i,<br>                      mdate = mdate,<br>                      paginate=True)<br>    #\u7d2f\u7a4d\u8cb7\u8ce3\u8d85<br>    df = pd.DataFrame({\"\u65e5\u671f\":market[\"mdate\"],\"\u80a1\u50f9\":market[\"close_d\"]})<br>#-------------------------------------------------------------------<br>    #\u500b\u80a1\u5238\u5546\u8cb7\u8ce3\u8d85<br>    data = tejapi.get('TWN\/AMTOP1',<br>                      coid = i,<br>                      mdate = mdate,<br>                      paginate=True)<br>#-------------------------------------------------------------------<br>    for i in range(0,len(bank)):<br>        #\u9078\u51fa\u516b\u5927\u5238\u5546<br>        broker = bank[i]<br>        data1 = data[data[\"key3\"] == broker]<br>        <br>        bs_data = data1[[\"mdate\",\"bs_m\"]]<br>        bs_data = bs_data.rename(columns={\"mdate\": '\u65e5\u671f',\"bs_m\": str(broker)})<br>        #\u7b97\u51fa\u516b\u5927\u5238\u5546\u671f\u9593\u7d2f\u7a4d\u8cb7\u8ce3\u8d85<br>        df = pd.merge(df,bs_data,left_on=\"\u65e5\u671f\",right_on=\"\u65e5\u671f\",how=\"outer\")<br>        df[str(broker)] = df[str(broker)].fillna(0)<br>        bs_m_list = list(df[str(broker)])<br>        agg  = []<br>        n = 0<br>        for j in range(0,len(bs_m_list)):<br>            n = n + bs_m_list[j] #\u6bcf\u65e5\u6de8\u8cb7\u8ce3<br>            agg = agg + [n] # #\u6bcf\u65e5\u52a0\u7e3d<br>        df[str(broker)] = agg<br>    #\u516b\u5927\u5238\u5546\u8cb7\u8ce3\u7e3d\u91d1\u984d    <br>    df_total = pd.DataFrame({\"\u80a1\u50f9\":market[\"close_d\"],<br>                             \"\u516b\u5927\u6de8\u8cb7\u8ce3\u7e3d\u548c\":df[bank].sum(axis=1)})<br>    #\u6a19\u6e96\u5316<br>    from sklearn.preprocessing import StandardScaler<br>    df_total[df_total.columns] = StandardScaler().fit_transform(df_total[df_total.columns])<br>    #\u76f8\u95dc\u6027<br>    df_total_cor = round(df_total['\u80a1\u50f9'].corr(df_total[\"\u516b\u5927\u6de8\u8cb7\u8ce3\u7e3d\u548c\"]),2)<br>    cor = cor + [df_total_cor]<br>df_cor = pd.DataFrame({\"\u80a1\u7968\":coid,\"\u76f8\u95dc\u4fc2\u6578\":cor})<br>df_cor<\/pre>\n\n\n\n<figure class=\"wp-block-image aligncenter\"><img decoding=\"async\" src=\"https:\/\/www.tejwin.com\/wp-content\/uploads\/1g2YqnrCe8wV_gxeYryDwcQ.png\" alt=\"\"\/><figcaption class=\"wp-element-caption\">Corr<\/figcaption><\/figure>\n\n\n\n<p id=\"3a04\">Present individual stock price performance and the accumulated transaction amount of the eight major brokerages in pictures.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">#\u8f38\u5165\u500b\u80a1\u4ee3\u78bc<br>coid = \"2308\"<br>#\u500b\u80a1\u80a1\u50f9<br>market = tejapi.get('TWN\/APRCD1',<br>coid = coid,<br>mdate = mdate,<br>paginate=True)<br>df = pd.DataFrame({\"\u65e5\u671f\":market[\"mdate\"],\"\u80a1\u50f9\":market[\"close_d\"]})<br>#---------------------------------------------------------------------------<br>#\u500b\u80a1\u5238\u5546\u8cb7\u8ce3\u8d85<br>data = tejapi.get('TWN\/AMTOP1',<br>coid = coid,<br>mdate = mdate,<br>paginate=True)<br>for i in range(0,len(bank)):<br>broker = bank[i]<br>data1 = data[data[\"key3\"] == broker]<br>bs_data = data1[[\"mdate\",\"bs_m\"]]<br>bs_data = bs_data.rename(columns={\"mdate\": '\u65e5\u671f',\"bs_m\": str(broker)})<br>#\u7d2f\u7a4d\u8cb7\u8ce3\u8d85<br>df = pd.merge(df,bs_data,left_on=\"\u65e5\u671f\",right_on=\"\u65e5\u671f\",how=\"outer\")<br>df[str(broker)] = df[str(broker)].fillna(0)<br>bs_m_list = list(df[str(broker)])<br>agg  = []<br>n = 0<br>for j in range(0,len(bs_m_list)):<br>n = n + bs_m_list[j] #\u6bcf\u65e5\u6de8\u8cb7\u8ce3<br>agg = agg + [n] # #\u6bcf\u65e5\u66f4\u65b0<br>df[str(broker)] = agg<br>df[\"\u516b\u5927\u6de8\u8cb7\u8ce3\u7e3d\u548c\"] = df[bank].sum(axis=1)<br>df<\/pre>\n\n\n\n<figure class=\"wp-block-image aligncenter\"><img decoding=\"async\" src=\"https:\/\/www.tejwin.com\/wp-content\/uploads\/1_10dwHA9tY4LdJtugj2jRwMQ.png\" alt=\"\"\/><figcaption class=\"wp-element-caption\">TW.2308<\/figcaption><\/figure>\n\n\n\n<pre class=\"wp-block-preformatted\">df.set_index(pd.to_datetime(df[\"\u65e5\u671f\"], format=\"%Y-%m-%d\"), inplace=True)<br>del(df[\"\u65e5\u671f\"])<br>plt.rcParams['font.sans-serif'] = ['Microsoft JhengHei'] <br>plt.rcParams['axes.unicode_minus'] = False<br>#\u756b\u96d9\u8ef8\u5716<br>fig, ax1 = plt.subplots(figsize=(20, 10))<br>plt.plot(df.index,df[bank],lw=1.5,label=bank)<br>plt.plot(df.index,df[\"\u516b\u5927\u6de8\u8cb7\u8ce3\u7e3d\u548c\"],lw=5,label=\"\u516b\u5927\u6de8\u8cb7\u8ce3\u7e3d\u548c\")<br>plt.xlabel(\"\u65e5\u671f\",fontsize=20)<br>plt.ylabel(\"\u7d2f\u7a4d\u8cb7\u8ce3\u8d85(\u5143)\",fontsize=20)<br>plt.xticks(fontsize=20)<br>plt.yticks(fontsize=20)<br>plt.title(str(coid)+\" \u570b\u5b89\u57fa\u91d1\u671f\u9593\u516b\u5927\u5238\u5546\u7d2f\u7a4d\u8cb7\u8ce3\u8d85\u95dc\u4fc2\u5716\",fontsize=30)<br>plt.legend(bbox_to_anchor=(-0.05, 1.0))<br>ax2 = ax1.twinx()<br>plt.plot(df.index,df[\"\u80a1\u50f9\"],lw=5,label=str(coid)+\"\u80a1\u50f9\")<br>plt.ylabel(\"\u80a1\u50f9(\u5143)\",fontsize=20)<br>plt.yticks(fontsize=20)<br>plt.legend(bbox_to_anchor=(1, 1.0))<br>plt.show()<\/pre>\n\n\n\n<figure class=\"wp-block-image aligncenter\"><img decoding=\"async\" src=\"https:\/\/www.tejwin.com\/wp-content\/uploads\/1H3k7qIifpmCILrzaneLNsg.png\" alt=\"\"\/><\/figure>\n\n\n\n<figure class=\"wp-block-image aligncenter\"><img decoding=\"async\" src=\"https:\/\/www.tejwin.com\/wp-content\/uploads\/1XyypKql2Ssy6WTbZ2XDcKg.png\" alt=\"\"\/><\/figure>\n\n\n\n<figure class=\"wp-block-image aligncenter\"><img decoding=\"async\" src=\"https:\/\/www.tejwin.com\/wp-content\/uploads\/1qRyiBgGHwo7JxiC_GYhf-w.png\" alt=\"\"\/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"6ed9\"><span class=\"ez-toc-section\" id=\"Summary-2\"><\/span><strong>Summary<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p id=\"76b1\">We selected three stocks from the three major industries of finance, technology, and convention for discussion, namely 2886 Mega International Commercial Bank, 2308 Delta Electronics, and 1303 Nan Ya Plastics Corporation. It is obvious that the total amount of transactions has increased during the period of March to May. With the effect of the National Stabilization Fund\u2019s support, the Taiwan stock market has gradually stabilized. In the stage of rising stock prices of technology stocks at 2308 Delta Electronics, the eight major banks showed an oversell situation, and 2886 Mega International Commercial Bank, 1303 Nan Ya Plastics Corporation\u2019s stock price performance was relatively modest during the period of support, and the eight major brokerages continued to overbuy.<br>It can be clearly seen from the above chart that the stock price is not directly proportional to the trading volume of the eight major banks, and even inversely proportional, but this is also in line with the purpose of the Fund, which aims to achieve market stability.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"c097\"><span class=\"ez-toc-section\" id=\"Conclusion\"><\/span><strong>Conclusion<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p id=\"5d66\">As a pair of invisible black hands in the Taiwan stock market, the National Stabilization Fund has a significant influence on stabilizing market sentiment and investor confidence. This article puts forward different views on some public opinions on the Fund incident<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p id=\"7bcb\">1. The stock price performance of the National Stabilization Fund\u2019s popular stocks may not beat the broader market. Investing in the market index is a more appropriate choice.<br>2. The total net transaction amount of the eight major bank treasuries is not directly proportional to the stock price performance, but it can be inferred that the purpose of the National Stabilization Fund is to stabilize the market.<\/p>\n<\/blockquote>\n\n\n\n<p id=\"b0ca\">Although the National Stabilization Fund can often stabilize the market in the short term after the press release. However, the stock market had ever fallen continually because of the economic recession in the international environment. Investors should still carefully judge the current market situation and the overall economy. You should not enter the market blindly only by relying on the news of the National Stabilization Fund to enter the market.<br>Finally, we attach the 8th entry of the National Stabilization Fund, which is currently in progress. We also make a comparison chart of the performance of the above-mentioned popular stocks and the broader market for readers\u2019 reference.<\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter\"><img decoding=\"async\" src=\"https:\/\/www.tejwin.com\/wp-content\/uploads\/1_10UoZO8kQnIO1sKFcwRUNKg.png\" alt=\"\"\/><figcaption class=\"wp-element-caption\">\u7b2c\u516b\u6b21\u8b77\u76e4\uff1a2022\/07\/13~2022\/11\/08\uff0c\u6301\u7e8c\u9032\u884c\u4e2d<\/figcaption><\/figure>\n\n\n\n<p id=\"3bdd\">Last but not least, please note that \u201c<strong>Stocks this article mentions are just for the discussion, please do not consider it to be any recommendations or suggestions for investment or products.\u201d<\/strong>&nbsp;Hence, if you are interested in issues like Creating Trading Strategy , Performance Backtesting , Evidence-based research , welcome to purchase the plans offered in&nbsp;<a href=\"https:\/\/eshop.tej.com.tw\/E-Shop\/index\" rel=\"noreferrer noopener\" target=\"_blank\">TEJ E Shop<\/a>&nbsp;and use the well-complete database to find the potential event.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"5542\"><span class=\"ez-toc-section\" id=\"Source_Code\"><\/span>Source Code<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/gist.github.com\/tej87681088\/5127f3b769bd973a9606e0f48cdda408#file-tejapi_python_national_stabilization_fund-py\" class=\"ek-link\" target=\"_blank\" rel=\"noopener\">Click here to go Github<\/a><\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"93a1\"><span class=\"ez-toc-section\" id=\"Extended_Reading\"><\/span>Extended Reading<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p id=\"349e\"><a href=\"https:\/\/www.tejwin.com\/en\/insight\/technical-analysis\/\" class=\"ek-link\">Technical Analysis<\/a><\/p>\n\n\n\n<p id=\"2485\"><a href=\"https:\/\/www.tejwin.com\/en\/insight\/momentum-trade\/\" class=\"ek-link\">Momentum trade<\/a><\/p>\n<\/blockquote>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"9161\"><span class=\"ez-toc-section\" id=\"Related_Link\"><\/span>Related Link<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/api.tej.com.tw\/index.html\" rel=\"noreferrer noopener\" target=\"_blank\">TEJ API<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/eshop.tej.com.tw\/E-Shop\/Edata_intro\" rel=\"noreferrer noopener\" target=\"_blank\">TEJ E-Shop<\/a><\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>An Introduction to National Stabilization Fund and its hot stocks\u2019 performances Keyword\uff1aQuant analysis\u3001National Stabilization Fund\u3001Protection Performance Highlights Difficulty: \u2605\u2606\u2606\u2606\u2606 Preface In 2022, under the unstable background caused by the Ukrainian-Russian War and high inflation, rising prices suppressed consumers\u2019 purchasing power, which made a great influence on companies\u2019 profits. As a result of this, people were [&hellip;]<\/p>\n","protected":false},"featured_media":17064,"template":"","tags":[2371,3008,2541],"insight-category":[690,50],"class_list":["post-17062","insight","type-insight","status-publish","has-post-thumbnail","hentry","tag-python","tag-tejapi-quant","tag-2541","insight-category-data-analysis","insight-category-fintech"],"acf":[],"_links":{"self":[{"href":"https:\/\/www.tejwin.com\/en\/wp-json\/wp\/v2\/insight\/17062","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.tejwin.com\/en\/wp-json\/wp\/v2\/insight"}],"about":[{"href":"https:\/\/www.tejwin.com\/en\/wp-json\/wp\/v2\/types\/insight"}],"version-history":[{"count":1,"href":"https:\/\/www.tejwin.com\/en\/wp-json\/wp\/v2\/insight\/17062\/revisions"}],"predecessor-version":[{"id":23362,"href":"https:\/\/www.tejwin.com\/en\/wp-json\/wp\/v2\/insight\/17062\/revisions\/23362"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.tejwin.com\/en\/wp-json\/wp\/v2\/media\/17064"}],"wp:attachment":[{"href":"https:\/\/www.tejwin.com\/en\/wp-json\/wp\/v2\/media?parent=17062"}],"wp:term":[{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.tejwin.com\/en\/wp-json\/wp\/v2\/tags?post=17062"},{"taxonomy":"insight-category","embeddable":true,"href":"https:\/\/www.tejwin.com\/en\/wp-json\/wp\/v2\/insight-category?post=17062"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}