QuantPilot-AI is a beginner-friendly stock research and backtesting platform.
The goal of this project is to help users learn how stock data, technical indicators, trading signals, backtesting, performance metrics, and simple research reports can work together in one explainable workflow.
This project does not try to predict stock prices with certainty. It is built for education, experimentation, and research.
- Sample stock K-line data from CSV
- Technical indicators:
- MA5
- MA20
- RSI
- CCI
- MA crossover signal generation
- Simple long-only backtesting
- Performance metrics
- Rule-based strategy report
- One-command workflow using:
python src/main.pyQuantPilot-AI/
├── data/
│ └── sample/
│ ├── README.md
│ └── sample_stock.csv
├── docs/
│ ├── project-plan.md
│ └── stock-research-template.md
├── src/
│ ├── backtester.py
│ ├── data_loader.py
│ ├── indicators.py
│ ├── main.py
│ ├── metrics.py
│ ├── report_generator.py
│ └── strategy.py
├── .gitignore
└── README.md
Clone the project and enter the project folder:
git clone <your-repository-url>
cd QuantPilot-AIInstall the required Python package:
pip install pandasPython 3.10 or newer is recommended.
Run the full V1 workflow from the project root:
python src/main.pyThis command will:
- Load
data/sample/sample_stock.csv - Add MA5, MA20, RSI, and CCI indicators
- Generate MA crossover signals
- Run a simple long-only backtest
- Calculate performance metrics
- Print a rule-based strategy report
- Print the last 10 rows of the backtest result
The current sample data produces output similar to:
initial_value: 10000.0
final_value: 11227.91
total_return_pct: 12.28
max_drawdown_pct: -5.78
buy_signals: 1
currently_holding: True
The exact formatting may differ slightly, but the V1 result should show one
buy signal and a final portfolio value around 11227.91.
This project is for educational and research purposes only. It is not financial advice.
- Real stock data loader
- Streamlit dashboard
- Better risk metrics
- AI-assisted report generation
- Multi-agent research system