signal-classification

Train XGBoost and LightGBM models to classify future price movements with walk-forward validation and SHAP feature importance.

266|54|Updated Mar 11, 2026
One-click install
npx skills add https://github.com/agiprolabs/claude-trading-skills --skill signal-classification
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: signal-classification
Source: https://github.com/agiprolabs/claude-trading-skills/tree/main/skills/signal-classification
Command: npx skills add https://github.com/agiprolabs/claude-trading-skills --skill signal-classification

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires pandas, numpy, scikit-learn, xgboost, lightgbm, shap, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill automates the prediction of whether an asset's price will move up or down over a future period using machine learning, enabling more informed trading decisions.

Core Features & Use Cases

  • Predictive Modeling: Utilizes XGBoost and LightGBM for accurate price movement forecasts.
  • Robust Validation: Employs walk-forward validation to prevent lookahead bias and ensure realistic performance.
  • Interpretability: Provides SHAP feature importance to understand the drivers behind predictions.
  • Threshold Optimization: Fine-tunes prediction thresholds to maximize trading profitability.
  • Use Case: A quantitative trader can use this Skill to build a model that predicts the probability of a 1% price increase in BTC/USD within the next 24 hours, helping to identify potential long entry signals.

Quick Start

Train a signal classification model using the provided features and labels, applying walk-forward validation.

Frequently Asked Questions about signal-classification

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I predict market price movements using machine learning classifiers?

Walk-forward validation prevents lookahead bias in time series forecasting by sequentially training on past data and testing on subsequent periods. This method ensures predictive models are evaluated realistically without accessing future information during training.

Can I use XGBoost and LightGBM for financial trading signal classification?

SHAP feature importance explains machine learning predictions in financial models by quantifying the contribution of each input feature to the forecast. This interpretability mechanism reveals the underlying drivers behind asset price movement classifications.

What is the best way to validate time series models without lookahead bias?

Walk-forward validation is the best way to validate time series models without lookahead bias because it sequentially advances the training and testing windows. This process maintains temporal data integrity by strictly preventing future data from leaking into training sets.

How do I optimize prediction thresholds for trading signals?

You optimize prediction thresholds for trading signals by fine-tuning the probability cutoffs of machine learning classifiers to maximize profitability. This threshold optimization adjusts model sensitivity to balance risk and reward in market entry decisions.