mirror of
https://github.com/PyP-Quant/quant-trading-strategy-templates.git
synced 2026-08-13 02:28:05 +00:00
6976a0a5280a5a8b37dd3ab416a7e27722e7967d
PyP Quant Trading Strategy Templates
Open-source Python quant trading strategy templates for PyP Quant Mode.
This repository is a public, educational starter library for traders who want to build quantitative trading strategies with Python, validate them with PyP PPE simulation, and deploy live signals through the PyP platform.
These examples are intentionally safe starter projects. They are not financial advice, not live performance claims, and not recommendations to trade any instrument.
What Is Inside
Each template follows the PyP Quant Mode contract:
def train(data, config):
return model, metrics
def predict(model, market_data, config):
return {"signal": "UP|DOWN|HOLD", "confidence": 0.0, "metadata": {}}
Every project includes:
strategy.pyquant.config.jsonREADME.md
Templates
| Template | Pair | Timeframe | Model family | Use case |
|---|---|---|---|---|
eurusd-logistic-15m |
EURUSD | 15m | sklearn | Baseline directional classifier |
eurusd-xgboost-1h |
EURUSD | 1h | XGBoost | Feature-rich trend classifier |
gbpusd-breakout-rf |
GBPUSD | 30m | sklearn RandomForest | Range breakout classifier |
usdjpy-mean-reversion |
USDJPY | 1h | sklearn | Mean reversion baseline |
xauusd-regime-xgboost-v11 |
XAUUSD | 1h | XGBoost | Less restrictive Au-79-style gold model |
xauusd-atr-breakout |
XAUUSD | 15m | custom Python | ATR breakout rules |
btcusdt-lightgbm-1h |
BTCUSDT | 1h | LightGBM | Crypto trend classifier |
ethusdt-volatility-classifier |
ETHUSDT | 30m | sklearn | Volatility regime classifier |
solusdt-scalp-baseline |
SOLUSDT | 1m | custom Python | High-volatility scalp baseline |
onnx-export-sklearn-starter |
EURUSD | 1h | sklearn to ONNX | ONNX export starter |
statsmodels-arima-direction |
EURUSD | 1h | statsmodels | Statistical direction baseline |
lightgbm-fx-multifeature |
EURUSD | 30m | LightGBM | Multi-feature FX classifier |
Use With PyP
- Open PyP Quant Mode: https://pyp.stanlink.online/projects/quant/new
- Create a new quant project.
- Copy a template's
strategy.pyandquant.config.json. - Run a training job.
- Validate with PPE simulation.
- Deploy only after the strategy produces acceptable out-of-sample behavior.
PyP Links
- Quant landing page: https://pyp.stanl.ink/for-quant-traders
- Quant docs: https://pyp.stanl.ink/docs/quant/what-is-quant-mode
- Create a quant project: https://pyp.stanlink.online/projects/quant/new
Risk Disclaimer
Trading foreign exchange, CFDs, crypto, and leveraged products involves substantial risk. These templates are educational examples only. Past performance and simulated results do not guarantee future performance.
Description
No description provided
algorithmic-tradingcrypto-tradingforexlightgbmmt5onnxpython-tradingquantitative-tradingsklearntrading-signalsxgboost
Readme
MIT
390 KiB
Languages
Python
100%