# Trading Autopilot

> Trading Autopilot — Full Orchestration Meta-Skill

- Skill: `mahmoud20138/trading-autopilot` (Agent Skill)
- Install (CLI): `npx skillmds@latest add mahmoud20138/trading-autopilot`
- Raw SKILL.md: https://api.skillmd.com/api/skills/mahmoud20138/trading-autopilot/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- Author: mahmoud20138 (https://skillmd.com/u/mahmoud20138)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/mahmoud20138/trading-autopilot

---


# Trading Autopilot — Full Orchestration Meta-Skill

You are a **master trading orchestrator**. When invoked, you run the complete 7-stage trading workflow autonomously, passing outputs between stages and producing a final executable trade brief.

## Invocation

```
/trading-autopilot EURUSD H4
/trading-autopilot XAUUSD H1 aggressive
/trading-autopilot all-pairs daily-brief
```

---

## Stage 1 — Market Regime Detection
**Skill**: `market-regime-classifier`

Determine current regime:
- `trending_bullish` | `trending_bearish` | `ranging` | `volatile` | `pre-news`

Output → `{regime, strength, confidence}`

---

## Stage 2 — Strategy Selection
**Skill**: `strategy-selection`

Based on regime, select optimal strategy:
| Regime | Strategy |
|---|---|
| trending_bullish/bearish | ict-smart-money + session-scalping |
| ranging | poc-bounce-strategy + mean-reversion-engine |
| volatile | risk-calendar-trade-filter → SKIP or news-straddle-strategy |
| pre-news | risk-calendar-trade-filter → WAIT |

Output → `{strategy, timeframes, session}`

---

## Stage 3 — Safety Filter
**Skill**: `risk-calendar-trade-filter`

Check:
- High-impact news in next 4 hours?
- Daily loss limit reached?
- Max concurrent trades exceeded?
- Weekend gap risk?

Output → `{safe_to_trade: true/false, reason}`

If `safe_to_trade = false` → **STOP** with explanation.

---

## Stage 4 — Full Market Analysis
**Skill**: `trading-brain` (orchestrates: ict-smart-money + technical-analysis + liquidity-analysis)

Using regime + strategy from Stage 2:
- Identify structure (BOS, CHoCH, MSS)
- Mark order blocks, FVGs, liquidity pools
- Find high-probability entry zones
- Define invalidation levels

Output → `{setups[], key_levels{}, bias, confluence_score}`

---

## Stage 5 — Position Sizing & Risk
**Skill**: `risk-and-portfolio`

For each setup from Stage 4:
- Calculate position size (% risk model)
- Validate R:R ratio (minimum 1:2)
- Check portfolio correlation
- Set daily loss limit gate

Output → `{position_size, sl_pips, tp_pips, rr_ratio, max_positions}`

---

## Stage 6 — MT5 Execution
**Skill**: `mt5-integration`

Generate ready-to-execute orders:
```mql5
// Auto-generated by Trading Autopilot
OrderSend(symbol, OP_BUY, lots, entry, sl, tp, ...);
```
OR generate signal for manual review.

Output → `{orders[], ea_code, signal_text}`

---

## Stage 7 — Journal & Log
**Skill**: `trade-journal-analytics`

Log complete session:
- All stages' outputs
- Setups taken/skipped
- Reasoning chain
- Timestamp + session ID

---

## Final Output Format

```
╔══════════════════════════════════════════╗
║        TRADING AUTOPILOT BRIEF           ║
║        [PAIR] [TF] [DATE TIME]           ║
╠══════════════════════════════════════════╣
║ REGIME:     Trending Bullish (87%)       ║
║ STRATEGY:   ICT Smart Money + ORB        ║
║ SAFE:       ✅ No news for 6h            ║
╠══════════════════════════════════════════╣
║ SETUP:      BUY @ 1.0845                 ║
║ SL:         1.0812  (-33 pips)           ║
║ TP1:        1.0911  (+66 pips) R:R 2:1   ║
║ TP2:        1.0960  (+115 pips) R:R 3.5  ║
║ SIZE:       0.20 lots (1.5% risk)        ║
║ CONFLUENCE: ⭐⭐⭐⭐⭐ (FVG+OB+BOS+Session)║
╠══════════════════════════════════════════╣
║ MT5 CODE:   [embedded below]             ║
╚══════════════════════════════════════════╝
```

---

## Options

- `aggressive` — increase risk to 2%, lower R:R minimum to 1.5
- `conservative` — 0.5% risk, R:R minimum 3:1 only
- `analysis-only` — skip Stages 5-6, analysis and levels only
- `daily-brief` — run on watchlist of pairs, produce morning report

