feature-engineering

Generate lag features, rolling statistics, and rank-based signals for financial ML models.

10|2|Updated Mar 14, 2026
One-click install
npx skills add https://github.com/brainbytes-dev/everything-claude-trading --skill feature-engineering-brainbytes-dev
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: feature-engineering
Source: https://github.com/brainbytes-dev/everything-claude-trading/tree/main/skills/data/feature-engineering
Command: npx skills add https://github.com/brainbytes-dev/everything-claude-trading --skill feature-engineering-brainbytes-dev

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Automates feature engineering for financial machine learning by generating lag features, rolling statistics, and rank-based signals from price, volume, fundamentals, and alternative data, reducing manual toil.

Core Features & Use Cases

  • Lag features: capture momentum and mean reversion by computing past values over multiple windows.
  • Rolling statistics and normalization: produce moving means, stds, ranks, and cross-sectional standardization for robust ML inputs.
  • Feature selection and leakage control: ensure features are forward-looking compliant with backtesting and production deployment.

Quick Start

Instruct the model to generate a feature matrix from historical OHLCV data for a backtest-ready ML model.

Frequently Asked Questions about feature-engineering

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

FAQPage Schema
How do I create lag features and rolling statistics from historical OHLCV data for machine learning?▼

You can generate lag features and rolling statistics from OHLCV data by computing past values over multiple windows. This produces moving means, standard deviations, and rank-based signals for momentum and mean reversion analysis in ML models.

What is the best way to prevent data leakage when building a feature matrix for financial ML backtesting?▼

Prevent data leakage in financial ML feature matrices by applying point-in-time, forward-looking pipeline logic. This ensures features only use information available at each timestamp, keeping datasets compliant for backtesting and production deployment.

How does cross-sectional normalization work for financial time-series data?▼

Cross-sectional normalization standardizes features across assets at each point in time. It ranks and scales values relative to the cross-section, producing robust ML inputs that are comparable across different securities and market conditions.

Can I use automated feature engineering with alternative data and fundamentals, not just price and volume?▼

Yes, automated feature engineering works with price, volume, fundamentals, and alternative data. It generates lag features, rolling statistics, and rank-based signals across all these data types for comprehensive ML model inputs.

Why do I need multicollinearity control and stability checks in my financial feature pipeline?▼

Multicollinearity control and stability checks are needed to remove redundant features and ensure consistent signal quality. They produce a clean, robust feature matrix that prevents model overfitting and improves generalization performance.

Does automated feature engineering handle missing data in financial time series?▼

Automated feature engineering includes missing-data handling within its pipeline. It processes raw financial data with gaps, applying necessary calculations and cleaning steps to output a complete feature matrix ready for model training.