# AI 與程式

用 AI Agent、Python 與大型語言模型自動化選股與回測。這裡收錄 FinLab 在 AI 量化研究上的實作與教學，從提示詞到完整回測報告。

**年化報酬**

年化報酬

[![AI 選股提示詞 30 條與真實回測：熱門提示詞為何失效，有效寫法長什麼樣](https://r2.finlab.finance/blog/ai-stock-picking-prompts-backtest/chart_equity_all.png)](https://finlab.finance/blog/ai-stock-picking-prompts-backtest)

[深度案例](https://finlab.finance/blog/ai-stock-picking-prompts-backtest)

## [AI 選股提示詞 30 條與真實回測：熱門提示詞為何失效，有效寫法長什麼樣](https://finlab.finance/blog/ai-stock-picking-prompts-backtest)

[AI 選股提示詞怎麼寫才有用](https://finlab.finance/blog/ai-stock-picking-prompts-backtest)

[年化報酬 30.9%夏普 1.51台股 2026年6月10日](https://finlab.finance/blog/ai-stock-picking-prompts-backtest)

[閱讀研究](https://finlab.finance/blog/ai-stock-picking-prompts-backtest)

[![Claude Code 量化交易實戰：裝 finlab 跑台股籌碼回測，從一句話到三因子迭代](https://r2.finlab.finance/blog/claude-code-finlab-quant-trading/chart_equity_2026-10-10.png)](https://finlab.finance/blog/claude-code-finlab-quant-trading)

[深度案例](https://finlab.finance/blog/claude-code-finlab-quant-trading)

## [Claude Code 量化交易實戰：裝 finlab 跑台股籌碼回測，從一句話到三因子迭代](https://finlab.finance/blog/claude-code-finlab-quant-trading)

[Claude Code 量化交易怎麼上手](https://finlab.finance/blog/claude-code-finlab-quant-trading)

[年化報酬 18.9%夏普 1.00台股 2026年7月9日](https://finlab.finance/blog/claude-code-finlab-quant-trading)

[閱讀研究](https://finlab.finance/blog/claude-code-finlab-quant-trading)

[![AI Agent 量化交易工具比較：Claude Code、Codex、Pi、Hermes、龍蝦怎麼選](https://r2.finlab.finance/blog/ai-agent-quant-trading-tools/chart_equity_2026-10-11.png)](https://finlab.finance/blog/ai-agent-quant-trading-tools)

### [AI Agent 量化交易工具比較：Claude Code、Codex、Pi、Hermes、龍蝦怎麼選](https://finlab.finance/blog/ai-agent-quant-trading-tools)

[台股 2026年6月22日](https://finlab.finance/blog/ai-agent-quant-trading-tools)

[年化報酬 18.3% 夏普 1.23](https://finlab.finance/blog/ai-agent-quant-trading-tools)

[![AI 量化實測：Qwen 3 自動寫策略，12 次迭代結果](https://r2.finlab.finance/blog/qwen3-quant-assistant/chart_validation_2026-10-30.png)](https://finlab.finance/blog/qwen3-quant-assistant)

### [AI 量化實測：Qwen 3 自動寫策略，12 次迭代結果](https://finlab.finance/blog/qwen3-quant-assistant)

[台股 2026年1月31日](https://finlab.finance/blog/qwen3-quant-assistant)

[年化報酬 14.0% 夏普 0.68](https://finlab.finance/blog/qwen3-quant-assistant)

[![MI-LSTM 股價預測論文台股實測：多輸入 LSTM 費後年化 8.46%，輸給單輸入與 0050](https://r2.finlab.finance/blog/mi-lstm-stock-price-prediction-paper/chart_equity_thumbnail.png)](https://finlab.finance/blog/mi-lstm-stock-price-prediction-paper)

### [MI-LSTM 股價預測論文台股實測：多輸入 LSTM 費後年化 8.46%，輸給單輸入與 0050](https://finlab.finance/blog/mi-lstm-stock-price-prediction-paper)

[台股 2020年7月22日](https://finlab.finance/blog/mi-lstm-stock-price-prediction-paper)

[年化報酬 8.5% 夏普 0.43](https://finlab.finance/blog/mi-lstm-stock-price-prediction-paper)

[台股 2026](https://finlab.finance/blog/openai-codeex)

[**AI IDE 新時代**](https://finlab.finance/blog/openai-codeex)

### [AI IDE 新時代：Codex 如何改變軟體開發流程](https://finlab.finance/blog/openai-codeex)

[台股 2026年2月2日](https://finlab.finance/blog/openai-codeex)

[年化報酬 0.0% 夏普 0.00](https://finlab.finance/blog/openai-codeex)

[![事件研究法教學：用 Python 分析除權息對股價的影響](https://r2.finlab.finance/blog/event-study-usage/image-10-1024x491.png)](https://finlab.finance/blog/event-study-usage)

### [事件研究法教學：用 Python 分析除權息對股價的影響](https://finlab.finance/blog/event-study-usage)

[台股 2023年10月31日](https://finlab.finance/blog/event-study-usage)

[年化報酬 0.0% 夏普 0.00](https://finlab.finance/blog/event-study-usage)

[![機器學習預測股價沒用？改用 AI 產生交易訊號，台股 8 年樣本外實測](https://r2.finlab.finance/blog/machine-learning-predict-stock-price/chart_oos_equity_vs_0050.png)](https://finlab.finance/blog/machine-learning-predict-stock-price)

### [機器學習預測股價沒用？改用 AI 產生交易訊號，台股 8 年樣本外實測](https://finlab.finance/blog/machine-learning-predict-stock-price)

[台股 2026年6月26日](https://finlab.finance/blog/machine-learning-predict-stock-price)

[年化報酬 — 夏普 —](https://finlab.finance/blog/machine-learning-predict-stock-price)

[![減資事件研究：彌補虧損減資後股價下跌，放空回測 15 年卻輸 0050](https://r2.finlab.finance/blog/capital-reduction-short/image-3-521x1024.png)](https://finlab.finance/blog/capital-reduction-event-study-short-strategy)

### [減資事件研究：彌補虧損減資後股價下跌，放空回測 15 年卻輸 0050](https://finlab.finance/blog/capital-reduction-event-study-short-strategy)

[台股 2023年9月20日](https://finlab.finance/blog/capital-reduction-event-study-short-strategy)

[年化報酬 — 夏普 —](https://finlab.finance/blog/capital-reduction-event-study-short-strategy)

[![Plotly TreeMap 台股版塊地圖製作教學｜Python 打造互動式族群漲跌圖](https://r2.finlab.finance/blog/dashboard2-plotly-treemap/newplot-8-1024x505.png)](https://finlab.finance/blog/plotly-treemap-tw-stock-sector-map)

### [Plotly TreeMap 台股版塊地圖製作教學｜Python 打造互動式族群漲跌圖](https://finlab.finance/blog/plotly-treemap-tw-stock-sector-map)

[台股 2021年5月22日](https://finlab.finance/blog/plotly-treemap-tw-stock-sector-map)

[年化報酬 — 夏普 —](https://finlab.finance/blog/plotly-treemap-tw-stock-sector-map)

[![Plotly & Dash 初體驗：用 Python 製作已實現損益儀表板教學（1）](https://r2.finlab.finance/blog/realizedprofitloss_dashboard_plotly/%E6%88%AA%E5%9C%96-2021-05-03-%E4%B8%8B%E5%8D%887.33.54-1024x557.png)](https://finlab.finance/blog/plotly-dash-realized-pnl-dashboard)

### [Plotly & Dash 初體驗：用 Python 製作已實現損益儀表板教學（1）](https://finlab.finance/blog/plotly-dash-realized-pnl-dashboard)

[台股 2021年5月3日](https://finlab.finance/blog/plotly-dash-realized-pnl-dashboard)

[年化報酬 — 夏普 —](https://finlab.finance/blog/plotly-dash-realized-pnl-dashboard)

[![用 Python 理財：打造加密貨幣實戰策略，量化投資新藍海](https://r2.finlab.finance/blog/why-crypto-currency-python-course/5f3e19b9df881af38e167c10.png)](https://finlab.finance/blog/python-crypto-trading-strategy-course)

### [用 Python 理財：打造加密貨幣實戰策略，量化投資新藍海](https://finlab.finance/blog/python-crypto-trading-strategy-course)

[台股 2020年8月27日](https://finlab.finance/blog/python-crypto-trading-strategy-course)

[年化報酬 — 夏普 —](https://finlab.finance/blog/python-crypto-trading-strategy-course)

[![Pandas DataFrame 速查：index 取值、loc/iloc、merge 與財經資料處理](https://r2.finlab.finance/blog/pandas-%E9%AD%94%E6%B3%95%E7%AD%86%E8%A8%981-%E5%B8%B8%E7%94%A8%E6%8B%9B%E5%BC%8F%E7%B8%BD%E8%A6%BD/%E4%B8%8B%E8%BC%89.png)](https://finlab.finance/blog/pandas-cheatsheet-common-functions)

### [Pandas DataFrame 速查：index 取值、loc/iloc、merge 與財經資料處理](https://finlab.finance/blog/pandas-cheatsheet-common-functions)

[台股 2020年8月21日](https://finlab.finance/blog/pandas-cheatsheet-common-functions)

[年化報酬 — 夏普 —](https://finlab.finance/blog/pandas-cheatsheet-common-functions)

[![股票自動交易機器人教學：用 Python Selenium 做券商自動下單](https://r2.finlab.finance/blog/%E9%80%9A%E7%94%A8%E8%87%AA%E5%8B%95%E4%B8%8B%E5%96%AE%E6%B3%95%EF%BC%88%E4%B8%8B%EF%BC%89/thumbnail-6-1024x512.png)](https://finlab.finance/blog/python-auto-trading-selenium)

### [股票自動交易機器人教學：用 Python Selenium 做券商自動下單](https://finlab.finance/blog/python-auto-trading-selenium)

[台股 2020年7月22日](https://finlab.finance/blog/python-auto-trading-selenium)

[年化報酬 — 夏普 —](https://finlab.finance/blog/python-auto-trading-selenium)

[![自動下單 (Part 1)：用 Python 爬取券商交易記錄與持股部位](https://r2.finlab.finance/blog/%E7%94%A8python%E7%8D%B2%E5%8F%96%E6%8C%81%E8%82%A1%E6%90%8D%E7%9B%8A%E8%A1%A8/thumbnail-3-1.jpeg)](https://finlab.finance/blog/python-crawl-trading-records-auto-order)

### [自動下單 (Part 1)：用 Python 爬取券商交易記錄與持股部位](https://finlab.finance/blog/python-crawl-trading-records-auto-order)

[台股 2020年7月22日](https://finlab.finance/blog/python-crawl-trading-records-auto-order)

[年化報酬 — 夏普 —](https://finlab.finance/blog/python-crawl-trading-records-auto-order)

[![Python 程式交易與投資的好處：比 MT4、XQ、MultiCharts 多了全市場選股與快速驗證](https://r2.finlab.finance/blog/python-investing-benefits-tutorial/thumbnail.png)](https://finlab.finance/blog/python-investing-benefits-tutorial)

### [Python 程式交易與投資的好處：比 MT4、XQ、MultiCharts 多了全市場選股與快速驗證](https://finlab.finance/blog/python-investing-benefits-tutorial)

[台股 2020年7月22日](https://finlab.finance/blog/python-investing-benefits-tutorial)

[年化報酬 — 夏普 —](https://finlab.finance/blog/python-investing-benefits-tutorial)

[![超簡單用 Python 預測股價：Facebook Prophet 預言家模型實戰教學](https://r2.finlab.finance/blog/%E8%B6%85%E7%B0%A1%E5%96%AE-machine-learning-%E9%A0%90%E6%B8%AC%E8%82%A1%E5%83%B9/j4.png)](https://finlab.finance/blog/python-stock-price-prediction-prophet)

### [超簡單用 Python 預測股價：Facebook Prophet 預言家模型實戰教學](https://finlab.finance/blog/python-stock-price-prediction-prophet)

[台股 2020年7月22日](https://finlab.finance/blog/python-stock-price-prediction-prophet)

[年化報酬 — 夏普 —](https://finlab.finance/blog/python-stock-price-prediction-prophet)

[![虛擬貨幣自動交易程式教學：每天 15 分鐘用 Python 自動化投資比特幣](https://r2.finlab.finance/blog/btc-summary/summary-1-1024x453.png)](https://finlab.finance/blog/python-bitcoin-automated-investing)

### [虛擬貨幣自動交易程式教學：每天 15 分鐘用 Python 自動化投資比特幣](https://finlab.finance/blog/python-bitcoin-automated-investing)

[台股 2020年7月21日](https://finlab.finance/blog/python-bitcoin-automated-investing)

[年化報酬 — 夏普 —](https://finlab.finance/blog/python-bitcoin-automated-investing)

[![用Python投資加密貨幣：比特幣最強指標 Hash Ribbons 原理篇 (Part 5)](https://r2.finlab.finance/blog/best-indicator-bitcoin/thumbnail-2-2-1024x683.jpeg)](https://finlab.finance/blog/bitcoin-hash-ribbons-indicator-python)

### [用Python投資加密貨幣：比特幣最強指標 Hash Ribbons 原理篇 (Part 5)](https://finlab.finance/blog/bitcoin-hash-ribbons-indicator-python)

[美股 2020年7月20日](https://finlab.finance/blog/bitcoin-hash-ribbons-indicator-python)

[年化報酬 — 夏普 —](https://finlab.finance/blog/bitcoin-hash-ribbons-indicator-python)

[![用 Python 打造投資網站（1）：開啟地圖與網站架構技能樹](https://r2.finlab.finance/blog/financial-website-building-part1/Ioom2TE.png)](https://finlab.finance/blog/build-investment-website-with-python-1)

### [用 Python 打造投資網站（1）：開啟地圖與網站架構技能樹](https://finlab.finance/blog/build-investment-website-with-python-1)

[台股 2020年7月20日](https://finlab.finance/blog/build-investment-website-with-python-1)

[年化報酬 — 夏普 —](https://finlab.finance/blog/build-investment-website-with-python-1)

[![Bokeh 探索頻道（1）：Python 互動式圖表函數庫初體驗](https://r2.finlab.finance/blog/python-bokeh1-setup-and-first-impression/y3p5KBo-1024x246.png)](https://finlab.finance/blog/python-bokeh-interactive-charts-intro)

### [Bokeh 探索頻道（1）：Python 互動式圖表函數庫初體驗](https://finlab.finance/blog/python-bokeh-interactive-charts-intro)

[台股 2020年7月20日](https://finlab.finance/blog/python-bokeh-interactive-charts-intro)

[年化報酬 — 夏普 —](https://finlab.finance/blog/python-bokeh-interactive-charts-intro)

[![用 Python 投資加密貨幣：手機監控與自動下單實作 (Part 12)](https://r2.finlab.finance/blog/btc-aws-signal-trigger-condition/thumbnail-6-6.png)](https://finlab.finance/blog/python-crypto-auto-trading-monitor)

### [用 Python 投資加密貨幣：手機監控與自動下單實作 (Part 12)](https://finlab.finance/blog/python-crypto-auto-trading-monitor)

[台股 2020年7月20日](https://finlab.finance/blog/python-crypto-auto-trading-monitor)

[年化報酬 — 夏普 —](https://finlab.finance/blog/python-crypto-auto-trading-monitor)

[![用 Python 投資加密貨幣：爬蟲下載比特幣歷史數據 (Part 2)](https://r2.finlab.finance/blog/btc-crawler-py/thumbnail-5-6.png)](https://finlab.finance/blog/python-crypto-bitcoin-historical-data-crawler)

### [用 Python 投資加密貨幣：爬蟲下載比特幣歷史數據 (Part 2)](https://finlab.finance/blog/python-crypto-bitcoin-historical-data-crawler)

[美股 2020年7月20日](https://finlab.finance/blog/python-crypto-bitcoin-historical-data-crawler)

[年化報酬 — 夏普 —](https://finlab.finance/blog/python-crypto-bitcoin-historical-data-crawler)

[把想法研究成策略](https://finlab.finance/blog)

投資警語：本文僅供教學參考，不構成投資建議。過去績效不代表未來表現，投資有風險。

來源：https://finlab.finance/blog/category/ai｜資料日期：依上文各表格與段落標示
