/tradecraft:smart-money-trap-detectorfrom tradecraft
Detects fake breakouts, stop hunts, liquidity grabs, and institutional traps in price data using ATR-filtered wick analysis. Identifies bull traps (false break above resistance) and bear traps (false break below support) with historical trap probability statistics.
Ships in tradecraft. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
import pandas as pd, numpy as np
class TrapDetector:
@staticmethod
def detect_traps(df: pd.DataFrame, lookback: int = 20) -> list[dict]:
traps = []
atr = (df["high"] - df["low"]).rolling(14).mean()
high_n = df["high"].rolling(lookback).max()
low_n = df["low"].rolling(lookback).min()
for i in range(lookback + 1, len(df)):
bar = df.iloc[i]
prev = df.iloc[i - 1]
# Bull trap: breaks above resistance then closes below
if bar["high"] > high_n.iloc[i - 1] and bar["close"] < high_n.iloc[i - 1]:
wick = bar["high"] - max(bar["open"], bar["close"])
if wick > atr.iloc[i]:
traps.append({"type": "bull_trap", "time": df.index[i], "level": round(high_n.iloc[i-1], 5),
"wick_pips": round(wick * 10000, 1), "signal": "SELL — false breakout above resistance"})
# Bear trap: breaks below support then closes above
if bar["low"] < low_n.iloc[i - 1] and bar["close"] > low_n.iloc[i - 1]:
wick = min(bar["open"], bar["close"]) - bar["low"]
if wick > atr.iloc[i]:
traps.append({"type": "bear_trap", "time": df.index[i], "level": round(low_n.iloc[i-1], 5),
"wick_pips": round(wick * 10000, 1), "signal": "BUY — false breakout below support"})
return traps[-10:]
@staticmethod
def trap_probability(df: pd.DataFrame, lookback: int = 100) -> dict:
"""Historical trap frequency — helps calibrate breakout vs trap expectations."""
traps = TrapDetector.detect_traps(df, 20)
high_breaks = ((df["high"] > df["high"].rolling(20).max().shift(1))).sum()
low_breaks = ((df["low"] < df["low"].rolling(20).min().shift(1))).sum()
bull_traps = sum(1 for t in traps if t["type"] == "bull_trap")
bear_traps = sum(1 for t in traps if t["type"] == "bear_trap")
return {
"total_breakouts_up": int(high_breaks),
"bull_trap_pct": round(bull_traps / max(high_breaks, 1) * 100, 1),
"total_breakouts_down": int(low_breaks),
"bear_trap_pct": round(bear_traps / max(low_breaks, 1) * 100, 1),
"recommendation": "High trap rate — wait for retest confirmation" if (bull_traps + bear_traps) / max(high_breaks + low_breaks, 1) > 0.4 else "Low trap rate — breakouts tend to follow through",
}
Source: "Automated Break Out Detection in Python" by CodeTrading (Nov 2025)
A Python-automated approach to filtering fake breakouts:
For full implementation details, see breakout-strategy-engine skill.
Source: "I Built an Indicator that exposes FAKE Moves EVERYTIME" by Trading IQ (Mar 2026)
The Delta Ladder indicator (free on TradingView) exposes fake moves by showing delta at each price level within a candle:
breakout-strategy-engine) with volume-based confirmationFor full delta ladder analysis methods, see order-flow-delta-strategy.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
trading, trap-detection, smart-money, breakout-analysis, liquidity-grab
npx claudepluginhub mahmoud20138/tradecraft --plugin tradecraft169 skills in this plugin
/agent-developmentThis skill should be used when the user asks to "create an agent", "add an agent", "write a subagent", "agent frontmatter", "when to use description", "agent examples", "agent tools", "agent colors", "autonomous agent", or needs guidance on agent structure, system prompts, triggering conditions, or agent development best practices for Claude Code plugins./agentic-storageAgentic storage architecture — persistent memory for AI agents using MCP, immutable versioning, sandboxing, and intent validation. Covers the stateless problem in LLM agents, RAG limitations (read-only), MCP protocol (JSON-RPC, resources, tools), storage safety layers, and agent file system design. Source: IBM Technology (Martin Keen), March 2026. Use this skill for "agentic storage", "agent memory", "persistent agent state", "MCP storage", "agent file system", "agent hard drive", "stateless agent problem", "agent work product", "immutable versioning", "agent sandboxing", "intent validation", "agent safety layers", "agent context window limits", "storage for AI agents", "agent persistence", "autonomous agent storage", "agent audit trail". Works with mcp-integration, trading-brain, agents, trade-psychology-coach.
Other plugins' skills for the same job