finance-ml

Train LSTM, XGBoost, and transformer models for financial price prediction and backtesting.

6|1|Updated Apr 7, 2026
One-click install
npx skills add https://github.com/kmshihab7878/claude-code-setup --skill finance-ml
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: finance-ml
Source: https://github.com/kmshihab7878/claude-code-setup/tree/main/skills/finance-ml
Command: npx skills add https://github.com/kmshihab7878/claude-code-setup --skill finance-ml

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Provides structured machine learning patterns, indicators, and workflows to convert raw market and financial data into predictive signals, risk metrics, and backtestable trading strategies so teams can move from exploration to disciplined execution.

Core Features & Use Cases

  • Technical Indicators & Feature Engineering: implementations for SMA, EMA, RSI, MACD, Bollinger Bands, ATR and automated feature pipelines for returns, volatility, volume, and position features.
  • Model Patterns & Selection: LSTM sequence models, XGBoost and Random Forest feature-based patterns, transformer guidance, and statistical models (ARIMA/GARCH) for volatility forecasting.
  • Backtesting & Validation: walk-forward backtesting template, common pitfall mitigations (look-ahead, survivorship, transaction costs), and example backtest orchestration.
  • Risk & Portfolio Tools: Sharpe/Sortino/Calmar/VaR utilities, Kelly position sizing, and mean-variance portfolio optimization with numerical solvers.
  • Exchange Integration: workflow notes for integrating ML signals with Aster DEX including data fetch, risk checks, mandatory user confirmation, and execution monitoring.
  • Use Case: train an LSTM on BTC-USD, generate hourly signals, run walk-forward backtests including realistic fees, compute position sizes, and produce a risk-adjusted portfolio allocation.

Quick Start

Use the finance-ml skill to compute features from recent BTC-USD price data, train a predictive model, perform a walk-forward backtest with transaction costs, and summarize signals and risk metrics for review.

Frequently Asked Questions about finance-ml

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

FAQPage Schema
How do I perform walk-forward backtesting with transaction costs for a trading strategy?

Walk-forward backtesting with transaction costs requires a validation template that mitigates look-ahead and survivorship biases while modeling realistic execution fees. This approach ensures predictive trading strategies are evaluated reliably against historical market data.

Can I use LSTM and XGBoost models for time-series financial price prediction?

Yes, LSTM sequence models and XGBoost are supported for time-series financial price prediction. The workflow includes automated feature engineering for returns and volatility, enabling you to train models that generate hourly predictive trading signals.

How do I calculate risk metrics and Kelly position sizing for portfolio optimization?

Calculating risk metrics and Kelly position sizing involves computing Sharpe, Sortino, Calmar, and VaR utilities to evaluate risk-adjusted returns. Mean-variance portfolio optimization then uses numerical solvers to determine optimal capital allocation across assets.

Does this workflow integrate machine learning signals with Aster DEX for execution?

Yes, the workflow integrates machine learning signals with Aster DEX for execution. It provides data fetching, risk checks, mandatory user confirmation, and execution monitoring to ensure disciplined automated trading based on predictive models.

What technical indicators are available for feature engineering in financial machine learning?

Available technical indicators for feature engineering include SMA, EMA, RSI, MACD, Bollinger Bands, and ATR. These are integrated into automated pipelines that generate returns, volatility, volume, and position features for training predictive financial models.