# Gap Trading

> Identify and trade opening price gaps using gap type classification and fill statistics. Use when price opens significantly above/below prior close, at market open, or when gaps appear on intraday charts.

- **Type:** Skill
- **Install:** `agentstack add skill-ske-labs-agent-trading-skills-gap-trading`
- **Verified:** Yes — security-reviewed for prompt injection and unsafe behavior
- **Seller:** [SKE-Labs](https://agentstack.voostack.com/s/ske-labs)
- **Installs:** 0
- **Category:** [Finance & Payments](https://agentstack.voostack.com/c/finance-and-payments)
- **Latest version:** 0.1.0
- **License:** Apache-2.0
- **Upstream author:** [SKE-Labs](https://github.com/SKE-Labs)
- **Source:** https://github.com/SKE-Labs/agent-trading-skills/tree/main/skills/day-trading/gap-trading

## Install

```sh
agentstack add skill-ske-labs-agent-trading-skills-gap-trading
```

Requires the [AgentStack CLI](https://agentstack.voostack.com/docs/cli). Works with Claude Code, Cursor, and any MCP-compatible agent.

## About

# Gap Trading

Trade price gaps by classifying gap type first -- different types require opposite strategies.

## Identification

A gap exists when current open > previous high (gap up) or current open , exchange=, interval="1D", date=)
```

Gap size = (Open - Previous Close) / Previous Close x 100. Ignore gaps 2x | Yes | Starting new trend | ~30% | Continuation (gap-and-go) |
| **Runaway** | ~1.5x | No | Mid-trend | ~50% | Continuation |
| **Exhaustion** | >2x | No | Extended trend end | ~80% | Fade (reversal) |

## Workflow

### 1. Detect and Classify

```
get_candles_around_date(symbol=, exchange=, interval="1D", date=)
get_indicators(indicator_code="mfi", symbol=, exchange=, interval="1D")
```

Calculate gap size %. Compare volume to 20-period average. Classify using table above.

### 2. Check Trend Context

```
get_indicators(indicator_code="dmi", symbol=, exchange=, interval="1D")
get_indicators(indicator_code="ema", symbol=, exchange=, interval="1D")
```

Determine if ranging, starting trend, mid-trend, or extended trend to confirm classification.

### 3. Mark Gap Zone

```
draw_chart_analysis(action="create", drawing={
    "type": "highlight",
    "points": [
        {"time": , "price": },
        {"time": , "price": }
    ],
    "options": {"text": " Gap (+/-X.X%)"}
})
```

### 4. Apply Strategy

- **Gap Fill (fade)**: For common/exhaustion gaps. Wait 15-30 min, enter on reversal toward previous close. Stop beyond gap extreme.
- **Gap-and-Go (continuation)**: For breakaway/runaway gaps. Wait for first 15-30 min consolidation, enter on breakout in gap direction. Stop below gap open -- if gap fills, thesis is wrong.
- **Gap Reversal**: For exhaustion gaps at trend end. Enter on reversal candle (engulfing, hammer). Target full gap fill.

### 5. Report to Orchestrator

Gap type and rationale, gap size, volume confirmation, strategy recommendation, gap boundaries, fill target, stop level.

## Key Rules

- NEVER enter during the first 15-30 minutes -- initial price discovery is pure noise
- NEVER treat all gaps the same -- common gaps fill ~70%, breakaway gaps only ~30%
- NEVER fade a breakaway gap through major resistance with high volume -- that is fighting institutional flow
- For gap-and-go stops, gap filling = thesis invalidated = exit
- During event-driven gaps (earnings, news), use wider stops

## Related Skills

- **breakout-trading** -- gap-and-go follows breakout principles
- **momentum-trading** -- breakaway gaps create momentum moves

## Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

- **Author:** [SKE-Labs](https://github.com/SKE-Labs)
- **Source:** [SKE-Labs/agent-trading-skills](https://github.com/SKE-Labs/agent-trading-skills)
- **License:** Apache-2.0

Install and usage instructions live in the source repository linked above.

## Pricing

- **Free** — Free

## Security capabilities

Automated source analysis of v0.1.0 — what this tool can access:

- **Network access:** no
- **Filesystem access:** no
- **Shell / process execution:** no
- **Environment & secrets:** no
- **Dynamic code execution:** no

*"Yes" means the capability is present in the source — more access means more to trust, not that it is unsafe.*


## Versions

- **0.1.0** — security scan: passed — Imported from the upstream source.

## Links

- Listing page: https://agentstack.voostack.com/l/skill-ske-labs-agent-trading-skills-gap-trading
- Seller: https://agentstack.voostack.com/s/ske-labs
- Browse the marketplace: https://agentstack.voostack.com/browse

---
Listed on AgentStack — the marketplace for AI agent skills and MCP servers. Every listing is security-reviewed. Creators keep 70%.
