Stage 1: Research
Giai đoạn Research là nơi bạn kiểm định hypothesis từ Stage 0 bằng dữ liệu thực tế. Dùng Jupyter Notebook với QuantBook library để phân tích và visualize.
Input & Output
| Input | Output |
|---|---|
| Hypothesis từ Stage 0 | Jupyter Notebook với evidence |
| Datasets đã map | Prototype Python code cho signal |
| Threshold dự kiến | Biểu đồ + thống kê mô tả |
QuantBook
QuantBook là thư viện Python tích hợp trong Research Environment, cung cấp:
QuantBook()— Khởi tạo session researchAddEquity(),AddCrypto(), v.v. — Thêm dữ liệuHistory()— Lấy dữ liệu lịch sử dạng DataFrameIndicator— Tính toán chỉ báoTích hợp matplotlib, seaborn cho plotting
Ví dụ Research Notebook
text
qb = QuantBook()
spy = qb.AddEquity("SPY")
history = qb.History(spy.Symbol, 252, Resolution.Daily)
# Tính SMA 50 và SMA 200
sma50 = history['close'].rolling(50).mean()
sma200 = history['close'].rolling(200).mean()
# Signal: Golden Cross
signal = (sma50 > sma200).astype(int)
print(f"Win Rate: {signal.mean():.2%}")Research Assistant Node
QuantConnect cung cấp Research Assistant Node — một AI agent chuyên dụng giúp bạn:
Viết Jupyter notebooks tự động
Phân tích dữ liệu thăm dò (EDA)
Kiểm định thống kê (t-test, correlation)
Visualize kết quả