<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	
	xmlns:georss="http://www.georss.org/georss"
	xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#"
	>

<channel>
	<title>現金流量 &#8211; FinLab</title>
	<atom:link href="https://www.finlab.tw/tag/%E7%8F%BE%E9%87%91%E6%B5%81%E9%87%8F/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.finlab.tw</link>
	<description>深入淺出的量化投資，讓你在在茫茫股海中，找到專屬於自己的投資方法</description>
	<lastBuildDate>Thu, 24 Nov 2022 08:39:50 +0000</lastBuildDate>
	<language>zh-TW</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.0.9</generator>

<image>
	<url>https://www.finlab.tw/wp-content/uploads/2020/07/favicon.png</url>
	<title>現金流量 &#8211; FinLab</title>
	<link>https://www.finlab.tw</link>
	<width>32</width>
	<height>32</height>
</image> 
<site xmlns="com-wordpress:feed-additions:1">179699571</site>	<item>
		<title>現金流量表超簡單策略開發</title>
		<link>https://www.finlab.tw/cashflow_backtest_easy/</link>
					<comments>https://www.finlab.tw/cashflow_backtest_easy/#respond</comments>
		
		<dc:creator><![CDATA[Ben]]></dc:creator>
		<pubDate>Tue, 12 Apr 2022 05:22:50 +0000</pubDate>
				<category><![CDATA[基本面分析]]></category>
		<category><![CDATA[投資新手]]></category>
		<category><![CDATA[台股]]></category>
		<category><![CDATA[歷史回測]]></category>
		<category><![CDATA[現金流量]]></category>
		<guid isPermaLink="false">https://www.finlab.tw/?p=3492</guid>

					<description><![CDATA[2021年報開獎完了，該來審視持股的成績單。相較於損益表，現金流量表受到的關注比較少，但台股很多地雷股從現金流 [&#8230;]]]></description>
										<content:encoded><![CDATA[
<p class="has-normal-font-size">2021年報開獎完了，該來審視持股的成績單。相較於損益表，現金流量表受到的關注比較少，但台股很多地雷股從現金流量表可以發現營運出問題的徵兆。比如最近跳票不斷，出現<a href="https://tw.stock.yahoo.com/news/%E5%8F%B0%E9%96%8B%E5%86%8D%E6%AC%A1%E9%81%AD%E9%80%80%E7%A5%A8-%E5%90%88%E8%A8%8814%E5%BC%B5-201000241.html" class="rank-math-link" target="_blank" rel="noopener">嚴重週轉不靈</a>的2841台開，長期營運現金流為負數，可見本業無轉取現金的能力，<meta charset="utf-8">且近期投資現金流為正數，財務危機嚴重到要變賣祖產來還債。</p>



<figure class="wp-block-image size-large"><img width="1024" height="731" src="https://www.finlab.tw/wp-content/uploads/2022/04/截圖-2022-04-12-下午12.41.13-1024x731.png" alt="截圖 2022 04 12 下午12.41.13" class="wp-image-3493" srcset="https://www.finlab.tw/wp-content/uploads/2022/04/截圖-2022-04-12-下午12.41.13-1024x731.png 1024w, https://www.finlab.tw/wp-content/uploads/2022/04/截圖-2022-04-12-下午12.41.13-300x214.png 300w, https://www.finlab.tw/wp-content/uploads/2022/04/截圖-2022-04-12-下午12.41.13-768x548.png 768w, https://www.finlab.tw/wp-content/uploads/2022/04/截圖-2022-04-12-下午12.41.13.png 1462w" sizes="(max-width: 1024px) 100vw, 1024px" title="現金流量表超簡單策略開發 1"><figcaption>圖片來源:財報狗<a href="https://statementdog.com/analysis/2841" class="rank-math-link" target="_blank" rel="noopener">https://statementdog.com/analysis/2841</a></figcaption></figure>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="534" src="https://www.finlab.tw/wp-content/uploads/2022/04/2841_2022-04-12_12-42-43-1024x534.png" alt="2841 2022 04 12 12 42 43" class="wp-image-3494" srcset="https://www.finlab.tw/wp-content/uploads/2022/04/2841_2022-04-12_12-42-43-1024x534.png 1024w, https://www.finlab.tw/wp-content/uploads/2022/04/2841_2022-04-12_12-42-43-300x156.png 300w, https://www.finlab.tw/wp-content/uploads/2022/04/2841_2022-04-12_12-42-43-768x401.png 768w, https://www.finlab.tw/wp-content/uploads/2022/04/2841_2022-04-12_12-42-43-1536x801.png 1536w, https://www.finlab.tw/wp-content/uploads/2022/04/2841_2022-04-12_12-42-43-2048x1068.png 2048w" sizes="(max-width: 1024px) 100vw, 1024px" title="現金流量表超簡單策略開發 2"><figcaption>2841台開一路崩盤</figcaption></figure>



<h2>現金流量表快速上手</h2>



<p class="has-normal-font-size">現金流量表是指一固定期間內，企業現金的實際變動情形。其中又區分為營業、投資及籌資活動現金流三大部分，可以幫助投資人了解企業使用現金的狀況，進一步能夠判斷是否有足夠現金支應開銷。</p>



<ul class="has-normal-font-size"><li>營業現金流：意義是「公司透過本業營運實際流入的現金」。若為正值，則顯示公司營運有持續流入現金，營業現金流若為負值則顯示公司營運的現金是持續流出的狀態，要非常小心盈餘品質的風險。</li><li>投資現金流：若為正數，代表變賣資產較多。若為負數，代表對外投資較多，常見於企業用於擴大資本支出，若將來擴大營運帶來的投資現金流能大於營業現金流，是比較好的循環，若是小於的情況，則可能擴展失敗，潛在入不敷出的風險。</li><li>籌資現金流：若為正數，代表向外部借款較多，常見為向銀行借款、向股東增資、發行可轉債。若為負數，則還款或發放股利較多。</li></ul>



<h2>回測</h2>



<p class="has-normal-font-size">介紹現金流量表質化分析的文章很多，但究竟現金流兩表的項目與股價表現有無相關？</p>



<p class="has-normal-font-size">我們以這三大項現金流是否為正數，進行條件排列組合，共8種(例如：&#8221;+-+&#8221;代表營運現金流&gt;0、投資現金流&lt;0、籌資現金流&gt;0)，每月回測換股 (每月都可能有企業發財報)，哪一種組合是最佳、最差？<br></p>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="320" src="https://www.finlab.tw/wp-content/uploads/2022/05/newplot-1024x320.png" alt="newplot" class="wp-image-3638" srcset="https://www.finlab.tw/wp-content/uploads/2022/05/newplot-1024x320.png 1024w, https://www.finlab.tw/wp-content/uploads/2022/05/newplot-300x94.png 300w, https://www.finlab.tw/wp-content/uploads/2022/05/newplot-768x240.png 768w, https://www.finlab.tw/wp-content/uploads/2022/05/newplot-1536x481.png 1536w, https://www.finlab.tw/wp-content/uploads/2022/05/newplot.png 1678w" sizes="(max-width: 1024px) 100vw, 1024px" title="現金流量表超簡單策略開發 3"><figcaption>現金流量因子組合回測報酬率曲線</figcaption></figure>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="341" src="https://www.finlab.tw/wp-content/uploads/2022/05/newplot-1-1024x341.png" alt="newplot 1" class="wp-image-3639" srcset="https://www.finlab.tw/wp-content/uploads/2022/05/newplot-1-1024x341.png 1024w, https://www.finlab.tw/wp-content/uploads/2022/05/newplot-1-300x100.png 300w, https://www.finlab.tw/wp-content/uploads/2022/05/newplot-1-768x256.png 768w, https://www.finlab.tw/wp-content/uploads/2022/05/newplot-1.png 1200w" sizes="(max-width: 1024px) 100vw, 1024px" title="現金流量表超簡單策略開發 4"><figcaption>現金流量因子組合回測總報酬</figcaption></figure>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="341" src="https://www.finlab.tw/wp-content/uploads/2022/05/newplot-2-1024x341.png" alt="newplot 2" class="wp-image-3640" srcset="https://www.finlab.tw/wp-content/uploads/2022/05/newplot-2-1024x341.png 1024w, https://www.finlab.tw/wp-content/uploads/2022/05/newplot-2-300x100.png 300w, https://www.finlab.tw/wp-content/uploads/2022/05/newplot-2-768x256.png 768w, https://www.finlab.tw/wp-content/uploads/2022/05/newplot-2.png 1200w" sizes="(max-width: 1024px) 100vw, 1024px" title="現金流量表超簡單策略開發 5"><figcaption>現金流量因子組合回測年化報酬</figcaption></figure>



<p class="has-normal-font-size">表現最好的組合是營運現金流、投資現金流為正數、融資現金流為負數的組合，年化約12%報酬率。這組合顯示公司的營運獲利能帶回實質現金，企業不需要額外投入資本支出，不需要向外部融資，就能隨本業擴展持續賺回現金，是比較正向且安全的循環。</p>



<p class="has-normal-font-size">最差的組合是營業現金流、投資現金流為負數、融資現金流為正數的組合，公司的營運無法帶來現金，可能為虧損或收帳週轉能力出問題，本業不行的同時，仍持續向外投資，繼續燒錢，且資金來自於外部借款，財務負擔相對較大。這類企業一旦奮力一搏仍然救不起本業，很可能陷入財務上的危機。</p>



<p class="has-normal-font-size"></p>



<h3>其他回測結果</h3>



<figure class="wp-container-2 wp-block-gallery-1 wp-block-gallery has-nested-images columns-default is-cropped">
<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="341" data-id="3641" src="https://www.finlab.tw/wp-content/uploads/2022/05/newplot-11-1024x341.png" alt="newplot 11" class="wp-image-3641" srcset="https://www.finlab.tw/wp-content/uploads/2022/05/newplot-11-1024x341.png 1024w, https://www.finlab.tw/wp-content/uploads/2022/05/newplot-11-300x100.png 300w, https://www.finlab.tw/wp-content/uploads/2022/05/newplot-11-768x256.png 768w, https://www.finlab.tw/wp-content/uploads/2022/05/newplot-11.png 1200w" sizes="(max-width: 1024px) 100vw, 1024px" title="現金流量表超簡單策略開發 6"></figure>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="341" data-id="3642" src="https://www.finlab.tw/wp-content/uploads/2022/05/newplot-10-1024x341.png" alt="newplot 10" class="wp-image-3642" srcset="https://www.finlab.tw/wp-content/uploads/2022/05/newplot-10-1024x341.png 1024w, https://www.finlab.tw/wp-content/uploads/2022/05/newplot-10-300x100.png 300w, https://www.finlab.tw/wp-content/uploads/2022/05/newplot-10-768x256.png 768w, https://www.finlab.tw/wp-content/uploads/2022/05/newplot-10.png 1200w" sizes="(max-width: 1024px) 100vw, 1024px" title="現金流量表超簡單策略開發 7"></figure>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="341" data-id="3644" src="https://www.finlab.tw/wp-content/uploads/2022/05/newplot-5-1024x341.png" alt="newplot 5" class="wp-image-3644" srcset="https://www.finlab.tw/wp-content/uploads/2022/05/newplot-5-1024x341.png 1024w, https://www.finlab.tw/wp-content/uploads/2022/05/newplot-5-300x100.png 300w, https://www.finlab.tw/wp-content/uploads/2022/05/newplot-5-768x256.png 768w, https://www.finlab.tw/wp-content/uploads/2022/05/newplot-5.png 1200w" sizes="(max-width: 1024px) 100vw, 1024px" title="現金流量表超簡單策略開發 8"></figure>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="341" data-id="3645" src="https://www.finlab.tw/wp-content/uploads/2022/05/newplot-4-1024x341.png" alt="newplot 4" class="wp-image-3645" srcset="https://www.finlab.tw/wp-content/uploads/2022/05/newplot-4-1024x341.png 1024w, https://www.finlab.tw/wp-content/uploads/2022/05/newplot-4-300x100.png 300w, https://www.finlab.tw/wp-content/uploads/2022/05/newplot-4-768x256.png 768w, https://www.finlab.tw/wp-content/uploads/2022/05/newplot-4.png 1200w" sizes="(max-width: 1024px) 100vw, 1024px" title="現金流量表超簡單策略開發 9"></figure>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="341" data-id="3643" src="https://www.finlab.tw/wp-content/uploads/2022/05/newplot-3-1024x341.png" alt="newplot 3" class="wp-image-3643" srcset="https://www.finlab.tw/wp-content/uploads/2022/05/newplot-3-1024x341.png 1024w, https://www.finlab.tw/wp-content/uploads/2022/05/newplot-3-300x100.png 300w, https://www.finlab.tw/wp-content/uploads/2022/05/newplot-3-768x256.png 768w, https://www.finlab.tw/wp-content/uploads/2022/05/newplot-3.png 1200w" sizes="(max-width: 1024px) 100vw, 1024px" title="現金流量表超簡單策略開發 10"></figure>
</figure>



<h3>策略範例</h3>



<p class="has-medium-font-size"><a href="https://drive.google.com/file/d/1B4ZwuwYmNBO1jBX8LGYXfrG0NAmQpeo7/view?usp=sharing" target="_blank" rel="noopener">colab程式範例檔</a></p>



<p class="has-normal-font-size">使用Finlab api就可以很簡單的撰寫出現金流量的策略，還可以加上哪一些因子讓策略更強大呢？留給各位去探索～</p>



<pre class="wp-block-code"><code lang="python" class="language-python">from finlab import data
from finlab.backtest import sim

營業現金流 = data.get('financial_statement:營業活動之淨現金流入_流出')
投資現金流 = data.get('financial_statement:投資活動之淨現金流入_流出')
融資現金流 = data.get('financial_statement:籌資活動之淨現金流入_流出')
position = (營業現金流 &gt; 0) &amp; (投資現金流 &gt; 0) &amp; (融資現金流 &lt; 0)</code></pre>



<h2>參考資源</h2>



<ul class="has-normal-font-size"><li><a href="https://rich01.com/what-cash-flow-statement/" class="rank-math-link" target="_blank" rel="noopener">市場先生～一分鐘看懂現金流量表</a></li><li><a href="https://statementdog.com/analysis/2841/cash-flow-statement" class="rank-math-link" target="_blank" rel="noopener">財報狗現金流量表</a></li></ul>
]]></content:encoded>
					
					<wfw:commentRss>https://www.finlab.tw/cashflow_backtest_easy/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">3492</post-id>	</item>
	</channel>
</rss>
