Path: blob/master/apps/candlestick-patterns/README.md
1149 views
candlestick-patterns
A Dash app to visualize and backtest candlestick patterns.
✨ Features
Fetches market data via yfinance
Detects candlestick patterns via TA-Lib
Choose entry/exit patterns, override candle settings, or specify signals manually
Backtests signals using VectorBT
Visualizes OHLCV, signals, orders, trades, and portfolio value with Plotly
Displays key performance metrics (e.g., Sharpe ratio)
Compares strategy vs buy & hold and random trading
Responsive UI with Dash Bootstrap Components
🌪️ Using uv
uv is a fast, modern replacement for pip + venv workflows.
1) Clone the repo
2) Create an environment + install deps
3) Run the app
Then open: http://127.0.0.1:8050/
[!TIP] If you prefer activating the venv instead of using
uv run, you can do:
macOS/Linux:
source .venv/bin/activateWindows (PowerShell):
.venv\Scripts\activateThen run
python app.py.
🐳 Using Docker
Build and run:
Open: http://127.0.0.1:8050/
[!NOTE] The first run can take a while because of Numba JIT compilation.
🖼️ Screenshot
