gap-trading-strategy

Detect opening price gaps using ATR thresholds and evaluate gap-fill probability within 20 bars.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Gaps in price data create entry opportunities and risk that can be systematically analyzed. This skill provides a framework to detect opening gaps, evaluate the likelihood of gap fills, and apply fade-the-gap or gap-and-go strategies with consistency.

Core Features & Use Cases

  • Gap detection using historical price data and ATR-based thresholds.
  • Evaluation of gap-fill probability and historical performance for up to 20 bars post-gap.
  • Support for typical gap scenarios, including Sunday/weekend gaps and intraday gaps, with options for fade or go strategies.
  • Integration-ready with session-profiler to contextualize gaps within market sessions and volatility.

Quick Start

Run the gap-trading-strategy on your price series to identify tradable gaps and evaluate their potential.

Frequently Asked Questions about gap-trading-strategy

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

FAQPage Schema
How do I detect opening price gaps and evaluate gap-fill probability?

To detect opening price gaps and evaluate gap-fill probability, apply ATR-based thresholds to historical time-series market data to identify gaps and assess fill likelihood within 20 bars. This outputs gap statistics for systematic decision making.

What is the difference between fade-the-gap and gap-and-go strategies?

Fade-the-gap and gap-and-go strategies differ by trading against or with the opening gap direction. This skill evaluates gap-fill probability to determine which rule applies, supporting both approaches across stocks, forex, and futures intraday or weekend gap events.

Can I apply gap trading strategies to weekend and Sunday forex gaps?

Yes, you can apply gap trading strategies to weekend and Sunday forex gaps. The framework supports typical gap scenarios including Sunday and weekend gaps across assets, using ATR thresholds to detect gaps and evaluate fills within 20 bars.

How do I use ATR thresholds for intraday gap detection?

To use ATR thresholds for intraday gap detection, run the strategy on your time-series price data. It calculates ATR-based thresholds to identify significant opening gaps, counts them, and assesses whether they fill within 20 bars to output actionable statistics.

Does this gap trading approach work with session-profiler for market volatility context?

Yes, this gap trading approach is integration-ready with session-profiler to contextualize gaps within market sessions and volatility. Combining them provides a framework to evaluate gap-fill probability and apply fade or go strategies with market session awareness.

What are the limitations of using ATR thresholds for gap-fill probability evaluation?

A limitation of using ATR thresholds for gap-fill probability evaluation is that performance relies on historical price data patterns. While it assesses fills within 20 bars across assets, sudden volatility shifts or low-liquidity intraday gap events may impact statistical reliability.