TradeMind Lite is an open-source U.S. stock technical analysis system that combines indicator analysis, candlestick pattern recognition, trend and pressure-level analysis, HTML reporting, and both CLI and Web workflows.
Current version: Beta 0.3.4 β Last updated: 2026-04-28 PDT
π An open-source technical analysis workspace for U.S. stocks and ETFs, built for practical day-to-day use, local reports, and Chinese-speaking developers who want to study or extend the system.
TradeMind Lite is a research and learning tool. Its analysis results are for reference only and must not be treated as investment advice, trading instructions, or risk-control guidance. Markets are risky, and all trading decisions remain your own responsibility.
TradeMind Lite focuses on technical analysis for U.S. equities and ETFs. The system can:
- analyze one or multiple tickers in batch
- calculate core indicators such as RSI, MACD, KDJ, Bollinger Bands, and volume-based signals
- detect candlestick patterns
- generate trading advice from combined signals
- estimate support/resistance and trend strength
- run built-in backtest calculations as part of the analysis pipeline
- generate HTML reports
- provide both an interactive terminal workflow and a browser-based workflow
- Dual interface: interactive CLI and Web UI
- Batch analysis: analyze multiple symbols in one run
- Watchlist support: grouped watchlists stored in JSON
- HTML reports: saved locally under
reports/stocks - Trend analysis: pressure levels, trend state, and ADX-related output
- Open source: distributed under GPL-3.0
- local report generation with no external dashboard dependency
- persistent watchlist files that are easy to fork and edit
- built-in backtest output as part of the analysis pipeline
- repository-level development documentation for secondary development
If you only want the shortest working path:
β Recommended for first-time setup: create a fresh virtual environment, install from
requirements.txt, then start withpython trademind.py.
git clone https://github.com/yagami1997/TradeMind.git
cd TradeMind
python -m venv venv
source venv/bin/activate
pip install --upgrade pip
pip install -r requirements.txt
python trademind.pyOn Windows PowerShell, activate the environment with:
venv\Scripts\Activate.ps1- Python
3.8+ - Windows, macOS, or Linux
- Internet access for market data retrieval
- A modern browser for Web mode and HTML reports
The project is source-first. There is no packaged installer in this repository, so the recommended workflow is to create a virtual environment and install from requirements.txt.
git clone https://github.com/yagami1997/TradeMind.git
cd TradeMindpython -m venv venv
venv\Scripts\Activate.ps1If PowerShell blocks activation, run this once in a user shell:
Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUserpython3 -m venv venv
source venv/bin/activatepython -m pip install --upgrade pipIf your shell maps python to Python 2 or an unavailable interpreter, use python3 instead.
pip install -r requirements.txtCore runtime dependencies include:
richfor the terminal UIFlaskandflask-corsfor the Web UIyfinance,pandas,numpy, andscipyfor data and analysismatplotlib,seaborn, andplotlyfor reports and visualization
python --version
pip --versionOptional sanity check:
python -c "import rich, flask, yfinance, pandas, numpy; print('Environment OK')"- Install Python from the official Python website and make sure
Add Python to PATHis checked. - If you use Command Prompt instead of PowerShell, activate the environment with:
venv\Scripts\activate.bat- If
python3is missing, install it with Homebrew:
brew install python- If some compiled packages fail, install Xcode command line tools:
xcode-select --installInstall Python and common build tools first:
sudo apt update
sudo apt install -y python3 python3-venv python3-pip build-essential gitTradeMind Lite provides one main launcher and two shortcut entry scripts.
π‘ If you are not sure which mode to use, start with the main launcher and enter Web mode from the menu.
python trademind.pyThis opens the main menu, where you can choose:
1for CLI mode2for Web modeqto quit
python trademind.py --cliOr use the shortcut:
python trademind_cli.pypython trademind.py --webYou can also specify host and port:
python trademind.py --web --host 0.0.0.0 --port 3336Or use the shortcut:
python trademind_web.pyCLI mode is useful if you prefer terminal-driven analysis and quick report generation.
β‘ Best for quick single-symbol checks, batch runs, and local report browsing from the terminal.
The CLI menu includes:
- analyze a single stock
- batch analyze multiple stocks
- view available watchlists
- open recent reports
- adjust analysis-related menu settings exposed by the CLI
- Start CLI mode.
- Choose option
1. - Enter a symbol such as
AAPL. - Wait for the analysis to finish.
- TradeMind Lite generates an HTML report and opens it in your browser.
- Start CLI mode.
- Choose option
2. - Enter multiple symbols separated by spaces, for example:
AAPL MSFT GOOGL NVDA
- Wait for the analysis batch to complete.
- The generated report is saved to
reports/stocks.
Watchlists are loaded from:
config/users/default/watchlists.json
You can use CLI mode to inspect the available groups, or edit the JSON file directly if you want to manage symbols manually.
TradeMind Lite stores generated HTML reports in:
reports/stocks
From CLI mode, you can browse recent reports and open them in your browser.
Web mode is the most convenient workflow for normal daily use.
π₯οΈ Best for routine use if you want a visual workflow, watchlist editing, and recent-report access in the browser.
Run:
python trademind.py --webBy default, the application starts a local server on port 3336. In normal conditions, it will open the browser automatically.
If the browser does not open automatically, visit:
http://localhost:3336
- Start Web mode.
- Open the browser page.
- Enter one or more symbols, or use an existing watchlist.
- Start the analysis.
- Wait for the progress indicator to finish.
- Open the generated report from the results area or the recent reports list.
The Web UI includes watchlist editing and import workflows. User watchlist data is stored under:
config/users/default/watchlists.jsonconfig/users/default/groups_order.jsonconfig/users/default/watchlist_edited.json
This means your watchlist changes are persisted locally in the project directory.
Important runtime directories:
reports/stocks: generated HTML stock analysis reportslogs: runtime logs for the analyzer, CLI, and Web serverconfig/users/default: default user watchlists and ordering dataresults: additional generated artifacts used by the project
trademind.py: main launcherreports/stocks: generated HTML reportslogs: runtime logsconfig/users/default/watchlists.json: default watchlist source
At a high level, TradeMind Lite does the following during analysis:
- Downloads market data with
yfinance. - Calculates technical indicators.
- Detects candlestick patterns.
- Generates trading advice and signal output.
- Runs built-in backtest calculations on the generated signals.
- Performs trend and pressure-level analysis.
- Builds an HTML report and saves it locally.
TradeMind Lite currently relies on Yahoo Finance data through yfinance.
This is practical and convenient, but it also means:
- requests can be rate-limited
- certain regions or networks may have access issues
- delayed or incomplete responses can happen
If data retrieval starts failing:
- wait and retry later
- reduce request frequency and batch size
- verify that the symbol exists on Yahoo Finance
- update
yfinance - check whether your network or proxy setup is blocking Yahoo endpoints
Update command:
pip install --upgrade yfinanceπ§ Most startup problems come from one of three causes: dependencies were not installed, the virtual environment is not active, or Yahoo Finance requests are being rate-limited.
The most common cause is that dependencies were not installed into the active virtual environment.
Fix:
pip install -r requirements.txtThen retry:
python trademind.py- check whether the server is already running on the selected port
- open
http://localhost:3336manually - try a different port:
python trademind.py --web --port 5000- check whether
reports/stocksexists - make sure the project directory is writable
- inspect log files under
logs
- verify the symbol
- check your network
- retry later in case of Yahoo-side rate limiting
- update
yfinance
Use one of the correct activation commands:
venv\Scripts\Activate.ps1venv\Scripts\activate.batTradeMind/
βββ trademind.py # Main launcher
βββ trademind_cli.py # CLI shortcut entry
βββ trademind_web.py # Web shortcut entry
βββ trademind/ # Core package
β βββ core/ # Indicators, signals, patterns, trend logic
β βββ backtest/ # Backtest engine
β βββ data/ # Data loading and watchlist helpers
β βββ reports/ # HTML report generation
β βββ ui/ # CLI and Web UI code
βββ config/ # Local user/watchlist configuration
βββ reports/ # Generated reports
βββ logs/ # Runtime logs
βββ tests/ # Test suite
βββ docs/ # Additional documentation
βββ project_management/ # Development and decision records
For detailed version history, see RELEASE_NOTES.md.
Recent release focus in Beta 0.3.4:
- UI color improvements
- ADX-related data display fixes
- report rendering and presentation improvements
This repository also contains project-management and development-process documentation. That material is useful if you want to understand the evolution of the system, but it is separate from the normal user workflow.
This project is licensed under the GNU General Public License v3.0. See LICENSE for the full text.
In short:
- you may study, modify, and redistribute the code
- derivative distributions must comply with GPL-3.0 obligations
- the software is provided as-is, without warranty
TradeMind Lite was originally written for my friends in China, so the software itself was designed as a Chinese-language product first. To make forking and secondary development easier for Chinese users, the development and project-management materials in this repository are also primarily written in Chinese. At this time, I do not plan to release official English or Japanese editions of the software, and I also do not plan to maintain an English edition of the development documentation.
π¨π³ Software-first language: Chinese
π§Ύ Development docs: primarily Chinese
π Official English/Japanese software editions: not planned
π English development documentation: not planned
Last updated: 2026-04-03 05:35:56 PDT



