ml-trading

Identify and optimize machine learning models for forecasting returns, regimes, and trading signals.

10|2|Updated Mar 8, 2026
One-click install
npx skills add https://github.com/mahmoud20138/Tradecraft --skill ml-trading
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: ml-trading
Source: https://github.com/mahmoud20138/Tradecraft/tree/main/plugins/tradecraft/skills/ml-trading
Command: npx skills add https://github.com/mahmoud20138/Tradecraft --skill ml-trading

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This skill enables teams to build, validate, and deploy machine learning models for trading, including classification, regression, regime detection, and RL-based strategies, to improve decision-making and automation.

Core Features & Use Cases

  • End-to-end ML pipeline for trading: data ingestion, feature engineering, model training, evaluation, and deployment readiness.
  • Supports supervised learning (classification/regression), unsupervised regime detection, and reinforcement learning workflows for strategy development.
  • Use cases include predicting regime shifts, forecasting returns, and generating actionable trading plans with risk controls.

Quick Start

Train an ML trading model on historical data and evaluate its predictive performance on a held-out test period.

Frequently Asked Questions about ml-trading

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

FAQPage Schema
How do I build a machine learning pipeline for time-series trading signals?

To build a machine learning pipeline for time-series trading signals, you need end-to-end workflows covering data ingestion, feature engineering, model training, evaluation, and deployment readiness. This supports supervised learning, regime detection, and reinforcement learning workflows.

What is regime detection in trading and how does it improve forecasting?

Regime detection in trading identifies underlying market states to improve forecasting accuracy. By applying unsupervised learning to time-series asset data, models can predict regime shifts and generate actionable trading plans with appropriate risk controls.

Can I use reinforcement learning for trading strategy development on historical data?

Yes, you can use reinforcement learning for trading strategy development on historical data. The workflow supports RL-based strategies alongside classification and regression, enabling you to train models and evaluate predictive performance on held-out test periods.

Does this approach support cross-validation and reproducible training for ML models?

Yes, this approach supports cross-validation and reproducible training for ML models. It satisfies requirements for modular model development, feature tooling, and scalable evaluation, ensuring reliable validation across different time-series asset data regimes.

What's the best way to forecast returns using feature-engineered financial datasets?

The best way to forecast returns using feature-engineered financial datasets is to apply supervised learning models within a modular pipeline. This allows you to optimize classification or regression models, validate them through cross-validation, and evaluate on held-out test periods.

When should I not use machine learning models for trading decisions?

You should not use machine learning models for trading decisions when your time-series asset data lacks sufficient historical depth for regime detection, or when feature-engineered datasets cannot support the cross-validation and reproducible training pipelines required for scalable evaluation.