Loading...
Loading...
Machine-learning prediction strategy framework via Longbridge Securities — walk-forward rolling training with feature engineering (MACD, RSI, Bollinger Band width, volume change rate) and a scikit-learn classifier (Random Forest / Gradient Boosting); retrains every 60 days, predicts 5-day direction; buy signal when probability > 0.6, sell when < 0.4; evaluates win rate, profit factor, and Sharpe ratio. Triggers: "机器学习", "ML策略", "预测模型", "随机森林", "梯度提升", "深度学习", "AI选股", "walk-forward", "機器學習", "ML策略", "預測模型", "隨機森林", "梯度提升", "machine learning", "ML strategy", "predictive model", "random forest", "gradient boosting", "AI stock selection", "walk-forward", "rolling training", "feature engineering", "scikit-learn", "XGBoost".
npx skill4agent add longbridge/skills longbridge-ml-strategyResponse language: match the user's input language — Simplified Chinese / Traditional Chinese / English.
scikit-learnpandasnumpyxgboostlightgbmlongbridge kline <SYMBOL> --period day --count 504 --format jsonRandomForestClassifier(n_estimators=100)GradientBoostingClassifierlongbridge kline --helplongbridge kline --help
longbridge kline <SYMBOL> --period day --count 504 --format json| Metric | 简体 | 繁體 | English |
|---|---|---|---|
| Current signal | 当前信号 | 當前訊號 | Current signal |
| Signal probability | 预测概率 | 預測概率 | Signal probability |
| Win rate | 胜率 | 勝率 | Win rate |
| Profit factor | 盈亏比 | 盈虧比 | Profit factor |
| Sharpe ratio | 夏普比率 | 夏普比率 | Sharpe ratio |
| Max drawdown | 最大回撤 | 最大回撤 | Max drawdown |
| Top features | 重要特征 | 重要特徵 | Top features |
| Situation | 简体回复 | 繁體回復 | English reply |
|---|---|---|---|
| 回退到 MCP 或提示安装 longbridge-terminal | 回退到 MCP 或提示安裝 longbridge-terminal | Fall back to MCP or install longbridge-terminal |
| 请运行 | 請執行 | Run |
| 提示 | 提示安裝,降級至邏輯回歸 | Prompt install; degrade to logistic regression |
| Fewer than 252 candles | 数据不足,无法完成 walk-forward 训练 | 數據不足 | Insufficient data for walk-forward |
| Other stderr | 直接显示原始错误 | 直接顯示原始錯誤 | Surface verbatim |
mcp__longbridge__candlesticksperiod=Daycount=504longbridge-klinelongbridge-volatility-strategylongbridge-multifactorlongbridge-ml-strategy/
└── SKILL.md