插件架构 : extend, don't fork.
StratCraft 插件遵循清晰的接口契约。通过实现标准插件接口添加新数据源、优化算法或执行适配器, 核心引擎保持不变。
通过交易所连接、高级优化和系统化量化模式扩展 StratCraft: 无需触及核心引擎。
Exchange connectivity through the CCXT library.
Use CCXT-supported venue adapters where the installed plugin and venue capabilities permit. Availability does not imply live deployment approval.
用于投资组合权重的凸优化。
The FrankWolfe algorithm supports constrained convex optimization research. Its outputs remain candidates for evaluation, not production portfolio approval.
文艺复兴启发的系统化量化模式。
Explore systematic research patterns such as signal normalization, correlation filtering, ensemble weighting, and regime-aware position sizing.
StratCraft 插件遵循清晰的接口契约。通过实现标准插件接口添加新数据源、优化算法或执行适配器, 核心引擎保持不变。
针对类型化的 Plugin 协议实现一个 Python 类。核心在启动时注册它; 您将在 Network 图中免费获得一个位置。
# Implement one class. Register it. Done. from stratcraft.plugin import Plugin, PluginKind, Bars, Signal @Plugin.register(kind=PluginKind.SignalSource) class MySignal(Plugin): name = "my-signal" version = "0.1.0" def setup(self, cfg: dict) -> None: self.window = cfg.get("window", 20) def on_bar(self, bars: Bars) -> Signal | None: zscore = (bars.close[-1] - bars.close[-self.window:].mean()) return Signal(strength=zscore, ttl=bars.bar_seconds) def teardown(self) -> None: ...
所有插件均开源。浏览社区仓库、分叉现有插件或贡献您自己的。插件生态系统随每位贡献者而增长。
Polygon.io 1m/5m/1d aggregates with on-disk Parquet cache. Resilient to rate limits.
scp install polygon-aggregates安装 →Stack LightGBM + linear + simple-NN models with rolling cross-validation and per-bar refresh.
scp install ml-ensemble安装 →Drawdown-aware position sizing that scales exposure inversely to rolling 60-day equity DD.
scp install dd-aware安装 →EU broker connector for TradeRepublic with order routing and tax-lot reporting.
scp install tr-bridge安装 →Local-only sentiment scorer over Bloomberg-style headlines using a 7B distilled model.
scp install news-bias安装 →Bayesian view-merging on top of MeanVar: confidence-weighted overlays without rewriting your prior.
scp install bl-view安装 →SDK 附带类型存根、本地注册表、热重载开发服务器以及针对每种插件类型的 golden 测试夹具。
免费版包含 C++ 回测引擎、Regime 检测和 YFinance + Dukascopy 数据: 一切你开始规模化构建所需的工具。