ml-strategy

Generate predictive trading signals from OHLCV data with walk-forward validation.

Updated Jul 8, 2026
One-click install
npx skills add https://github.com/hxhyyy/Vibe-Trading --skill ml-strategy-hxhyyy
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: ml-strategy
Source: https://github.com/hxhyyy/Vibe-Trading/tree/main/agent/src/skills/ml-strategy
Command: npx skills add https://github.com/hxhyyy/Vibe-Trading --skill ml-strategy-hxhyyy

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires scikit-learn, pandas, numpy.

What problem does it solve?

This skill addresses the complexity of building reliable, leak-proof machine learning models for financial time-series data by providing a standardized, safety-first pipeline.

Core Features & Use Cases

  • Walk-Forward Validation: Automatically trains and tests models on expanding or sliding windows to prevent future data leakage.
  • Feature Engineering: Includes a suite of pre-built technical indicators like RSI, Bollinger Bands, and momentum ratios with built-in division-by-zero protection.
  • Use Case: Use this to generate predictive trading signals for any OHLCV dataset by selecting between RandomForest, GradientBoosting, or Ridge models.

Quick Start

Use the ml-strategy skill to generate trading signals for the provided OHLCV data using the random forest model.

Frequently Asked Questions about ml-strategy

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

FAQPage Schema
How do I generate predictive trading signals from OHLCV data using machine learning?

You can generate predictive trading signals from OHLCV data by training machine learning models like RandomForest or GradientBoosting on engineered technical indicators. This pipeline performs feature engineering and model training to output actionable predictive signals for quantitative trading research.

How does walk-forward validation prevent look-ahead bias in financial time-series forecasting?

Walk-forward validation prevents look-ahead bias by training and testing models on expanding or sliding windows sequentially. This ensures the model only evaluates on unseen future data chronologically, maintaining data integrity for reliable financial time-series forecasting.

Do I need scikit-learn and pandas to build quantitative trading strategies with this approach?

Yes, you need scikit-learn, pandas, and numpy to build quantitative trading strategies with this approach. These dependencies are required to perform feature engineering, train machine learning models, and manipulate OHLCV financial data arrays for signal generation.

What is the best way to prevent data leakage when building machine learning models for finance?

The best way to prevent data leakage is using a safety-first pipeline with walk-forward validation. By automatically applying expanding or sliding windows to separate training and testing data chronologically, it ensures future data does not influence past predictions.

Can I use Ridge regression alongside technical indicators like RSI and Bollinger Bands for trading?

Yes, you can use Ridge regression alongside technical indicators like RSI and Bollinger Bands. The pipeline includes pre-built indicators with division-by-zero protection and supports selecting between RandomForest, GradientBoosting, or Ridge models for trading signal generation.

Why does my machine learning trading strategy fail on unseen financial data?

Machine learning trading strategies often fail on unseen data due to look-ahead bias from improper validation. Implementing walk-forward validation and using built-in division-by-zero protection during feature engineering ensures robust model generalization and prevents future data leakage.