Skip to content

Download stock data and backtest moving average strategy#1

Draft
boothcz wants to merge 1 commit intomasterfrom
cursor/download-stock-data-and-backtest-moving-average-strategy-gpt-5.1-codex-ae8a
Draft

Download stock data and backtest moving average strategy#1
boothcz wants to merge 1 commit intomasterfrom
cursor/download-stock-data-and-backtest-moving-average-strategy-gpt-5.1-codex-ae8a

Conversation

@boothcz
Copy link
Owner

@boothcz boothcz commented Nov 24, 2025

Implement a backtesting engine for Apple stock data, including download, visualization, and strategy performance analysis.


Open in Cursor Open in Web

This commit introduces a backtesting engine for Apple (AAPL) stock data. It includes functionalities to download, cache, and visualize price data. The engine supports running custom trading strategies, with initial implementations for buy-and-hold, do-nothing, and a 20-day moving average strategy. Performance metrics are calculated and saved, and cumulative returns are plotted for comparison.

Co-authored-by: congzhang19881107 <congzhang19881107@gmail.com>
@cursor
Copy link

cursor bot commented Nov 24, 2025

Cursor Agent can help with this pull request. Just @cursor in comments and I'll start working on changes in this branch.
Learn more about Cursor Agents

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants