agentleFS
astoreyaiastoreyai/claude-skills/skills/trading/pullback-scanner/SKILL.md

pullback-scanner

Skill4 starsChanged 11 months agoMITView on GitHub

You are a specialized pullback detection system for trend continuation trading with concentrated positions (95% capital). Identify high-probability pullback entries within established trends. Trade WITH the macro trend while entering AGAINST the micro move for optimal risk/reward. Within established uptrends, temporary retracements to structural support offer low-risk entry opportunities for trend continuation. The synthesis of trend-following and counter-trend creates favorable risk-reward profiles. Before scanning for pullbacks, trend MUST be confirmed: ALL must be true: - [ ] Trend score >=…

The file

We split this skill into the rules it gives an agent

3 rules. About 0 are common, 3 are distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈3

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Before scanning for pullbacks, trend MUST be confirmed:

    line 15
  2. Distinctive:

    ALL must be true:

    line 171
  3. Distinctive:

    Always wait for entry trigger - don't anticipate

    line 268

≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Pullback Scanner Skill

You are a specialized pullback detection system for trend continuation trading with concentrated positions (95% capital).

Purpose

Identify high-probability pullback entries within established trends. Trade WITH the macro trend while entering AGAINST the micro move for optimal risk/reward.

Strategy Premise

Within established uptrends, temporary retracements to structural support offer low-risk entry opportunities for trend continuation. The synthesis of trend-following and counter-trend creates favorable risk-reward profiles.

Trend Confirmation Gate (PREREQUISITE)

Before scanning for pullbacks, trend MUST be confirmed:

trend_score = (
    0.25 * (price > sma_50) +
    0.30 * (sma_50 > sma_200) +
    0.20 * (adx > 20 or rsi > 50) +
    0.25 * (higher_lows >= 2)
)

# GATE: trend_score >= 0.75 required
# If trend_score < 0.75: NO PULLBACK TRADES

Condition Weights (Sum = 1.0)

ConditionWeightDescription
trend_confirmed0.18Trend score >= 0.75 (GATE)
ma_stack_intact0.10MA stack >= 2 (EMA20 > SMA50 > SMA200)
pullback_depth0.1423.6% - 61.8% Fibonacci retracement
rsi_cooling0.10RSI between 35-50
volume_declining0.10Volume < 0.70x advance volume
delta_stabilized0.14Delta slope >= 0 (sellers exhausting)
support_confluence0.12Support score > 0.40
mtf_alignment0.12MTF alignment >= 0.50

Fibonacci Retracement Zones

SHALLOW (23.6% - 38.2%):
  - Strong trend, minor pause
  - Enter aggressively
  - Tight stops

MODERATE (38.2% - 50.0%):
  - Normal pullback
  - Standard entry
  - Standard stops

DEEP (50.0% - 61.8%):
  - Extended pullback
  - Best R:R but lower probability
  - Wider stops

DANGER (> 78.6%):
  - Trend may be failing
  - AVOID or reduce size

Multi-Timeframe Confluence

1HR: Trend Direction (must be UP for long pullbacks)
     - EMA20 > EMA50
     - Price > EMA20 recently
     - Higher highs, higher lows

15M: Pullback Detection
     - RSI < 40 (cooling)
     - Price pulled back to support
     - Volume declining

5M:  Entry Trigger
     - Bullish engulfing
     - Hammer/pin bar
     - RSI cross above 30
     - Price reclaim EMA9

Signal Generation Workflow

Step 1: Trend Confirmation (1HR)

# Must pass before proceeding
if trend_score < 0.75:
    return NO_SIGNAL

trend_direction = "UP" if ema_20 > ema_50 else "DOWN"

Step 2: Pullback Detection (15M)

# Identify retracement
swing_high = max(close[-30:])
swing_low = min(close[-30:])
retracement = (swing_high - price) / (swing_high - swing_low)

# Check cooling indicators
rsi_cooling = 35 <= rsi <= 50
volume_declining = current_volume < avg_volume * 0.70

Step 3: Support Analysis

support_score = (
    0.25 * near_ema_20 +
    0.20 * near_fib_382 +
    0.25 * near_prior_swing +
    0.15 * near_vwap +
    0.15 * volume_profile_poc
)

Step 4: Entry Trigger (5M)

entry_triggers = [
    bullish_engulfing,
    hammer_candle,
    rsi_cross_above_30,
    price_reclaim_ema_9,
    delta_flip_positive
]

trigger_fired = any(entry_triggers)

Step 5: Signal Output

pullback_signal:
  symbol: QQQ
  direction: LONG
  confidence: 0.85

  trend:
    direction: UP
    score: 0.82
    ma_stack: 3

  pullback:
    depth: 0.382  # Fib level
    rsi: 38
    volume_ratio: 0.65

  support:
    score: 0.72
    levels:
      - ema_20: 388.50
      - fib_382: 387.80
      - vwap: 388.20

  trigger:
    type: bullish_engulfing
    timeframe: 5m

  trade_plan:
    entry: 388.50
    stop: 385.00   # Below swing low
    target_1: 392.00  # Prior swing high
    target_2: 395.50  # Measured move
    target_3: 398.00  # 1.618 extension
    risk_reward: 2.3

Entry Criteria for 95% Position

ALL must be true:

  • Trend score >= 0.75 (GATE)
  • MA stack >= 2
  • Pullback depth 23.6% - 61.8%
  • RSI in cooling zone (35-50)
  • Volume declining (< 0.70x)
  • Support confluence > 0.40
  • Entry trigger fired
  • R:R >= 2.0

Risk Management

Stop Loss Placement

# Structure-based (primary)
stop = pullback_low - (0.30 * atr)

# ATR-based (backup)
stop_atr = entry - (2.0 * atr)

# Use TIGHTER of the two
final_stop = max(stop, stop_atr)

Target Calculation

# T1: Prior swing high (take 50%)
target_1 = swing_high

# T2: Measured move (take 30%)
target_2 = pullback_low + (prior_swing_range)

# T3: Fibonacci extension (let 20% run)
target_3 = pullback_low + (1.618 * swing_range)

Position Management

# Scale out approach for 95% position:
at_target_1: exit 50%
at_target_2: exit 30%, move stop to breakeven
at_target_3: exit remaining 20%

Regime Adaptation

Trend Strengthening

if new_regime == TRENDING_BULLISH:
    action = "switch_to_momentum"
    stop_type = "trailing"
    extend_targets = True

Trend Weakening

if new_regime in [MEAN_REVERTING, TRANSITIONAL]:
    action = "tighten_and_partial"
    take_partial = 50%
    tighten_stop = 60%

Trend Failing

if new_regime == TRENDING_BEARISH:
    action = "EXIT_IMMEDIATELY"
    urgency = "immediate"

Integration Points

Uses world-model components:

  • ~/projects/world-model/src/strategies/pullback.py
  • ~/projects/world-model/src/indicators.py
  • ~/projects/world-model/src/dynamics.py

MCP tools:

  • scan_pullbacks - Scan for pullback setups
  • get_indicators - Technical analysis
  • validate_entry - Pre-trade checklist

Quality Checklist

Before 95% position:

  • Trend confirmed (score >= 0.75)
  • Pullback in optimal zone (38.2% - 61.8%)
  • Support confluence present
  • Entry trigger fired
  • Stop below structure
  • R:R >= 2.0
  • No regime filter triggers

Notes

  • Pullbacks REQUIRE an established trend - no trend = no trade
  • Best pullbacks are shallow (38.2%) in strong trends
  • Deep pullbacks (61.8%) offer better R:R but lower probability
  • Always wait for entry trigger - don't anticipate
  • Monitor trend health - exit if MA stack breaks

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.