piranha-strategy
PIRANHA v1.0.0 — Liquidation-Cascade / Forced-Flow Hunter. When open interest is unwinding fast (positions being force-closed) AND price is moving violently, that's forced flow — liquidations begetting liquidations. Piranha rides it: OI down + price spiking up = shorts squeezed → LONG; OI down + price dropping = longs liquidated → SHORT. A thin order book on the side price runs into confirms little resistance. Universe: BTC, ETH, SOL, HYPE. Wide DSL (a squeeze can extend far) + 24h hard_timeout (forced flow is short-horizon).
What this skill does
# 🐟 PIRANHA v1.0.0 — Liquidation-Cascade / Forced-Flow Hunter **Ride the forced flow.** When positions are being force-closed en masse, the liquidation flow pushes price hard in one direction — and the move feeds on itself until the leverage is flushed. Piranha detects that signature and rides it. ## Why this strategy exists A liquidation cascade is the cleanest momentum in crypto: it's *forced* flow, not opinion. The signature is unmistakable — **open interest dropping fast** (positions closing) **+ a violent price move** + a volume spike + a **thinning order book** on the side price is running into. Most agents react to price; Piranha reads the *order flow underneath* it (OI velocity + book depth) to confirm the move is forced, not discretionary. - **OI down + price spiking UP** = shorts being squeezed → ride **LONG** - **OI down + price dropping HARD** = longs being liquidated → ride **SHORT** At a 3-min cadence Piranha catches the *continuation* of a liquidation event (OI unwind over 15m–1h alongside a >2% move), not the microsecond cascade itself — which is the part that's actually tradeable without co-located infra. ## CRITICAL RULES ### RULE 1: OI must be unwinding — this is the whole edge Open interest must be falling at least `oiDropMinPct` (default 3%) over the 1h window. Rising or flat OI means the move is normal discretionary flow, not forced — no entry. This is what separates Piranha from a plain momentum chaser. ### RULE 2: OI velocity has a fallback Uses `market_get_asset_data`'s `oi_velocity` object when present; when null, self-computes the OI delta from a persisted last-OI cache (`state/oi-state.json`). A freshly-started Piranha needs one tick per asset to warm the cache. ### RULE 3: The flow must still be flowing The 1h move sets the direction, but the **5m candle must still be moving the same way** — Piranha rides flow that's *ongoing*, not one that already reversed. ### RULE 4: Producer enters. DSL exits. No `close_position` call site. Wide Phase 2 ladder lets a squeeze extend; Phase 1 max_loss 18% cuts a V-shaped reversal; 24h `hard_timeout` is the outer bound (forced flow resolves fast). ## How Piranha scores a trade **Gates** (all required): 1. OI unwinding ≥ `oiDropMinPct` (default 3%) over 1h 2. |1h price move| ≥ `priceMoveMinPct` (default 2%) 3. 5m candle still moving in the 1h direction **Score components** (max ~9): | Signal | Points | |---|---| | OI unwinding (gate-confirmed) | +2 | | OI unwinding strongly (≤ −`oiDropStrongPct`, default −6%) | +1 | | Violent 1h move (gate-confirmed) | +2 | | 5m acceleration | +1 | | Book thin on the side price runs into | +1 | | Volume spike (≥ `volSpikePct`, default 50%) | +1 | | Smart Money aligned with the flow (≥ 55%) | +1 | **Floor:** `minScore: 5`. ## DSL preset (wide + short-horizon outer bound) | Phase | Component | Setting | |---|---|---| | Phase 1 | max_loss_pct | 18% | | Phase 1 | retrace_threshold | 8 | | Time cuts | hard_timeout | **24h (ENABLED)** — forced flow is short-horizon | | Time cuts | weak_peak_cut / dead_weight_cut | DISABLED | | Phase 2 | T0 → T5 | +10/0 · +20/25 · +30/40 · +50/60 · +75/75 · +100/85 | ## Scanner pattern This strategy introduces the **Microstructure / order-flow** archetype — see `senpi-trading-runtime/references/producer-patterns.md`. Primary MCP calls: `market_get_asset_data` (candles + `asset_context.openInterest` + `oi_velocity` + L2 `order_book`), `leaderboard_get_markets` (SM alignment). ## Operator install See [README.md](README.md). ## Changelog ### v1.0.0 (2026-05-22) — initial release First fleet agent to trade on order-flow microstructure (OI velocity + L2 book depth) rather than price/SM alone. Built with the per-strategy-class DSL rule: wide "let winners run" ladder (a squeeze can extend) + a short-horizon 24h hard_timeout, taker-fallback entry (forced-flow entries must fill now), exit timeout 30s, no null numeric signal fields. ## License MIT — Copyright 2026 Senpi (https://senpi.ai). ## Skill Attribution When creating a strategy, include `skill_name` and `skill_version`. See `references/skill-attribution.md`.
Related in General
modeling-omnistudio-epc-catalog
IncludedSalesforce Industries CME EPC product-modeling skill for Product2-based catalog creation. Use when creating EPC products, configuring product attributes, building offer bundles with Product Child Items, or reviewing EPC DataPack JSON metadata for product catalog changes. TRIGGER when: user creates or updates Product2 EPC records, AttributeAssignment payloads, AttributeMetadata/AttributeDefaultValues, Offer bundles, or ProductChildItem relationships. DO NOT TRIGGER when: designing OmniScripts/FlexCards/Integration Procedures (use building-omnistudio-omniscript, building-omnistudio-flexcard, or building-omnistudio-integration-procedure), implementing Apex business logic (use generating-apex), or troubleshooting deployment pipelines (use deploying-metadata).
relationship-science-coach
IncludedUse this skill for direct, practical adult relationship coaching: couples conflict, repair, trust, marriage, dating, flirting, attachment patterns, emotional connection, sex, desire differences, eroticism, kink negotiation, affection, love languages, breakups, and long-term passion. Draw on Gottman, EFT and Hold Me Tight, attachment science, modern sex research, Perel, Nagoski, Kerner, Schnarch, Love and Stosny, and flexible love-language tools. Be concrete and low-hedge. Redirect only for imminent danger, abuse, coercive control, minors, non-consent, self-harm, stalking, or medical/legal/psychiatric decisions.
building-sf-integrations
IncludedSalesforce integration architecture and runtime plumbing with 120-point scoring. Use this skill to set up Named Credentials, External Credentials, External Services, REST/SOAP callout patterns, Platform Events, and Change Data Capture. TRIGGER when: user sets up Named Credentials, External Services, REST/SOAP callouts, Platform Events, CDC, or touches .namedCredential-meta.xml files. DO NOT TRIGGER when: Connected App/OAuth config (use configuring-connected-apps), Apex-only logic (use generating-apex), or data import/export (use handling-sf-data).
venue-templates
IncludedAccess comprehensive LaTeX templates, formatting requirements, and submission guidelines for major scientific publication venues (Nature, Science, PLOS, IEEE, ACM), academic conferences (NeurIPS, ICML, CVPR, CHI), research posters, and grant proposals (NSF, NIH, DOE, DARPA). This skill should be used when preparing manuscripts for journal submission, conference papers, research posters, or grant proposals and need venue-specific formatting requirements and templates.
let-fate-decide
IncludedDraws the 12 Houses of the Zodiac Tarot spread to inject entropy into planning when prompts are vague, ambiguous, or casually delegated. Interprets the spread to guide next steps. Use when the user says 'let fate decide', 'YOLO', 'whatever', 'idk', or other nonchalant phrases, makes Yu-Gi-Oh references, or when you are about to arbitrarily pick between multiple reasonable approaches. Prefer over ask-questions-if-underspecified when the user's tone is casual or playful rather than precision-seeking.
net-ops
IncludedCross-platform network troubleshooting (Windows, macOS, Linux) via local or remote shell. Use for: DNS broken, can't resolve hostnames, nslookup/dig works but apps fail, NRPT, WFP, scutil, /etc/resolver, systemd-resolved, /etc/resolv.conf, NetworkManager, VPN DNS leak residue (ProtonVPN/Mullvad/WireGuard/AnyConnect), AV/firewall blocking DNS or DoH, Tailscale DNS interaction, intermittent connectivity, remote diagnostics over SSH.