contrarian-setup-gate

Synthesize three contrarian-pipeline verdicts into one fail-closed setup status.

2.8k|632|Updated Oct 19, 2025
One-click install
npx skills add https://github.com/tradermonty/claude-trading-skills --skill contrarian-setup-gate
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: contrarian-setup-gate
Source: https://github.com/tradermonty/claude-trading-skills/tree/main/skills/contrarian-setup-gate
Command: npx skills add https://github.com/tradermonty/claude-trading-skills --skill contrarian-setup-gate

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

Traders running Jason Shapiro's 3-step contrarian process (COT crowding detection, news-reaction failure analysis, weekly price-action confirmation) end up with three separate JSON reports and no consistent way to combine them into a single go/no-go decision. This Skill applies an explicit, exhaustively-tested precedence state machine to merge those verdicts into one actionable setup_status, failing closed on any missing, stale, malformed, or inconsistent input.

Core Features & Use Cases

  • Sequential precedence state machine: Evaluates crowding, then news, then price-action in strict pipeline order, producing one of five statuses: READY_FOR_PLAN, WATCHING_PRICE, CROWDED, REJECTED, or INSUFFICIENT_EVIDENCE.
  • Fail-closed input validation: Rejects unreadable, malformed, stale, symbol-mismatched, direction-mismatched, or non-finite-number reports with named reason tokens, never letting a bad input pass as a confirmation.
  • Actionable output contract: At READY_FOR_PLAN, populates direction, gate_confidence, entry_trigger, and invalidation_level for handoff to a position-sizing stage, with JSON and Markdown reports written per run.
  • Use Case: After running cot-contrarian-detector on B6 and getting CROWDED_SHORT, run the gate with the detector and news reports to learn the setup is REJECTED because the news-failure step came back NOT_CONFIRMED, stopping further analysis before any trade plan is built.

Quick Start

Run the gate script with your symbol, the cot-contrarian-detector JSON report, an explicit as-of date, and optionally the news and price-action reports to get a synthesized setup status.

Frequently Asked Questions about contrarian-setup-gate

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

FAQPage Schema
How do I combine COT crowding, news reaction, and price action signals into one trade decision?

Run the gate script with the three upstream JSON reports and an explicit as-of date. It evaluates crowding first, then news, then price action in strict pipeline order and outputs a single setup_status such as READY_FOR_PLAN, REJECTED, or INSUFFICIENT_EVIDENCE.

What does the contrarian setup gate require as input?

It requires a cot-contrarian-detector JSON report for the symbol and an explicit --as-of date. The news-reaction-failure-analyzer and technical-analyst contrarian-confirmation reports are optional, letting you check the pipeline state at any stage.

Does this tool place trades or recommend position sizes?

No. The furthest state it reaches is READY_FOR_PLAN, which populates direction, entry_trigger, and invalidation_level for a downstream position-sizing step. It never places or recommends orders and is not investment advice.

What happens when an input report is stale, malformed, or missing?

The gate fails closed: the input is marked INVALID or INSUFFICIENT with a named reason token, and the status becomes INSUFFICIENT_EVIDENCE or stops advancing. The CLI still exits 0 and writes a full report naming the blocking input.

Can I run the price-action confirmation before the news analysis?

Yes, but out-of-order use caps the status at CROWDED with an out_of_order_price_action warning even if price action confirms. A NOT_CONFIRMED price-action verdict still rejects the setup, since that step is fully evaluated in the out-of-order branch.