predict

Approve trading signals via XGBoost probability gate and dual-LLM ensemble voting.

Updated Apr 14, 2026
One-click install
npx skills add https://github.com/raosuraj23/alpaca-bot --skill predict-raosuraj23
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: predict
Source: https://github.com/raosuraj23/alpaca-bot/tree/main/.claude/skills/predict
Command: npx skills add https://github.com/raosuraj23/alpaca-bot --skill predict-raosuraj23

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This Skill automates rigorous signal approval for trading strategies by combining a machine-learning probability gate with dual-LLM ensemble voting.

Core Features & Use Cases

  • Layer 1: XGBoost probability gate with thresholds (P(win) ≥ 0.55 and edge ≥ 0.04)
  • Layer 2: Dual-LLM ensemble voting (Gemini + Haiku) using AND logic
  • Layer 3: Calibration tracking (Brier score, Kelly scaling)
  • Standalone validator script in scripts/ to QA and test signal logic
  • Applies to real-time strategy signals and research signals; logs consensus and calibration data

Quick Start

Run the validator with a sample xgb_prob and market_implied_prob to get an approval decision

Frequently Asked Questions about predict

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

FAQPage Schema
How do I validate trading signals using LLM ensembles and XGBoost?

You validate trading signals by passing them through a three-layer system: an XGBoost probability gate checking win probability and edge, a dual-LLM AND gate using Gemini and Haiku, and a calibration layer tracking Brier scores.

What is dual-LLM ensemble voting for signal approval?

Dual-LLM ensemble voting is a consensus mechanism requiring both Gemini and Haiku language models to independently approve a trading signal before execution, enforcing cross-model agreement to reduce false positives.

How do I test signal approval logic without live market data?

You test signal logic offline by running the standalone validator script provided in the scripts directory, supplying sample XGBoost probability and market-implied probability values to generate an approval decision.

Can I use XGBoost probability thresholds for real-time strategy alerts?

Yes, the system applies XGBoost probability thresholds, requiring a minimum win probability of 0.55 and an edge of 0.04, to filter real-time technical analysis signals and research-driven alerts.

How does calibration tracking work with Kelly scaling and Brier scores?

Calibration tracking works by calculating a Brier score to measure prediction accuracy and applying a Kelly scalar to adjust position sizing, ensuring probability estimates align with actual historical outcomes across strategy contexts.

When should I use dual-LLM gating instead of a single model for trading?

You should use dual-LLM gating when strict cross-model consensus is required to approve signals, preventing single-model biases from triggering trades and ensuring higher reliability for research-driven alerts.