ml-strategy

Generates machine-learning trading signals from OHLCV data using walk-forward training and sklearn models.

Updated Apr 9, 2026
One-click install
npx skills add https://github.com/JacobHsu/vibe-trading-agent --skill ml-strategy-jacobhsu
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: ml-strategy
Source: https://github.com/JacobHsu/vibe-trading-agent/tree/main/agent/src/skills/ml-strategy
Command: npx skills add https://github.com/JacobHsu/vibe-trading-agent --skill ml-strategy-jacobhsu

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill removes the risk of future data leakage when deriving predictive trading signals from OHLCV series by enforcing walk-forward training, dedicated scaling, and cautious signal mapping.

Core Features & Use Cases

  • Walk-forward training: Expanding-window retraining with controlled frequency keeps the model updated while preventing leakage.
  • Feature engineering template: Momentum, RSI, Bollinger position, volume and volatility factors are computed to enrich signal quality from raw OHLCV candles.
  • Signal generation guidance: Maps predict_proba outputs to continuous [-1, 1] signals or uses discrete up/neutral/down decisions for live trading overlays.
  • Use Case: Apply this Skill when you need a ready-to-go predictive strategy for backtesting and live alerts on equity, crypto, or futures data.

Quick Start

Ask the skill to train a walk-forward RandomForest on your OHLCV data and report today's signal strengths.

Frequently Asked Questions about ml-strategy

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

FAQPage Schema
How do I generate machine-learning trading signals from OHLCV data without future leakage?

To generate trading signals without future leakage, apply walk-forward training with expanding-window retraining to ensure models only use past data. This method isolates scalers and maps predict_proba outputs to continuous or discrete signals, keeping OHLCV-driven strategy predictions strictly historical.

What features should I engineer for a scikit-learn trading strategy using OHLCV candles?

For a scikit-learn trading strategy, you should engineer momentum, RSI, Bollinger position, volume, and volatility factors from raw OHLCV candles. These features enrich signal quality and provide the necessary inputs for RandomForest, GradientBoosting, or Ridge classifiers.

How does walk-forward training prevent look-ahead bias in predictive market direction models?

Walk-forward training prevents look-ahead bias by using expanding-window retraining with controlled frequency, ensuring the model updates only with newly available data. This approach strictly separates training periods from testing periods to eliminate future data exposure.

Can I map predict_proba outputs to continuous trading signals for live backtesting?

Yes, you can map predict_proba outputs to continuous [-1, 1] signals or discrete up/neutral/down decisions for live trading overlays. This probability-to-signal mapping translates model confidence into actionable trading alerts for equity, crypto, or futures data.

Does this walk-forward machine-learning approach work for crypto and futures OHLCV data?

Yes, this walk-forward machine-learning approach works for crypto and futures OHLCV data. It applies to any OHLCV-driven strategy development, allowing you to train models like RandomForest across asset classes for backtesting and live market alerts.

Why do I need scaler isolation during expanding-window retraining for trading models?

Scaler isolation is required during expanding-window retraining to prevent future data leakage. Fitting scalers on the entire dataset would expose the model to future distribution statistics, so isolating them within each walk-forward window ensures strict temporal boundaries.