chameleon-strategy
CHAMELEON v1.0.0 โ Relative-Value / Pairs (ratio mean-reversion). When the price ratio between two correlated assets extends far from its recent mean (high |z-score|), it tends to revert. Chameleon trades the reversion via a directional bet on the high-beta leg (the runtime is single-position, so not a two-leg spread). Pairs: ETH/BTC (trade ETH), SOL/ETH (trade SOL), SOL/BTC (trade SOL). Mean-reversion DSL โ tight "bank the snapback" ladder, 48h hard_timeout, weak_peak_cut.
What this skill does
# ๐ฆ CHAMELEON v1.0.0 โ Relative-Value / Pairs (Ratio Mean-Reversion) **Trade the spread between two coins, not the market.** When ETH gets expensive relative to BTC (or SOL vs ETH), the ratio stretches โ and ratios revert far more reliably than outright prices. Chameleon measures how stretched a pair's ratio is (z-score) and bets on the snap-back. ## Why this strategy exists Correlated majors trade as a pack, but their *ratios* oscillate around a mean. A 3-sigma ETH/BTC extension is a much cleaner edge than guessing ETH's absolute direction โ the pair's correlation does the work. This is the first fleet agent to trade **relative value** rather than a single asset's trend, funding, or order flow. **Single-position note:** a textbook pairs trade is two legs (long one, short the other) for true market-neutrality. The Senpi runtime is single-position, so Chameleon instead takes a **directional bet on the high-beta leg** in the reversion direction. It captures most of the reversion edge without needing spread-level position management. ## CRITICAL RULES ### RULE 1: The z-score is the gate For each pair (`numerator/denominator`), Chameleon computes the latest ratio's z-score vs its mean/std over `lookbackBars` 1h candles. Entry requires `|z| >= zEntryMin` (default 2.0). No extension, no trade. ### RULE 2: Which leg, which direction It trades the configured **high-beta leg** (the more volatile asset โ ETH in ETH/BTC, SOL in SOL/ETH). Direction profits from reversion: - **z high** (numerator rich): `leg == numerator โ SHORT`; `leg == denominator โ LONG` - **z low** (numerator cheap): `leg == numerator โ LONG`; `leg == denominator โ SHORT` ### RULE 3: Reversion must be *starting* A bonus, not a gate, but important: the position only scores its "turning" point when `|z|` this bar is smaller than last bar โ i.e., the ratio is already snapping back, not still extending. Don't catch a ratio mid-blowout. ### RULE 4: Producer enters. DSL exits. No `close_position` call site. A ratio reversion is a **bounded** move, so the DSL is the mean-reversion preset โ tight ladder (lock 30% at +5%), 48h `hard_timeout` + `weak_peak_cut`. Bank the snap-back; don't hold for a trend. ## How Chameleon scores a trade **Gate:** `|z| >= zEntryMin` on at least one pair. **Score components** (max ~7): | Signal | Points | |---|---| | `|z| >= zEntryMin` (gate-confirmed) | +2 | | `|z| >= zStrong` (default 3.0) | +2 | | Ratio turning (reversion starting) | +1 | | Smart Money on the leg confirms the direction (โฅ `smTiltMinPct`) | +1 | | Leg volume rising (> 10%) | +1 | **Floor:** `minScore: 4`. ## DSL preset (mean-reversion โ bank the snapback) | Phase | Component | Setting | |---|---|---| | Phase 1 | max_loss_pct | 15% | | Phase 1 | retrace_threshold | 6 | | Time cuts | hard_timeout | **48h** | | Time cuts | weak_peak_cut | **120 min / 2%** | | Time cuts | dead_weight_cut | DISABLED | | Phase 2 | T0 โ T4 | +5/30 ยท +10/50 ยท +15/65 ยท +25/80 ยท +40/90 | ## Scanner pattern This introduces the **Relative-value / pairs** archetype โ see `senpi-trading-runtime/references/producer-patterns.md`. Primary MCP calls: `market_get_asset_data` (1h candles for *both* legs of each pair), `leaderboard_get_markets` (SM on the leg). The pure functions (`ratio_zscore`, `reversion_direction`) are unit-tested in `tests/test_signal.py`. ## Operator install See [README.md](README.md). ## Changelog ### v1.0.0 (2026-05-22) โ initial release First fleet agent to trade relative value (ratio mean-reversion) rather than a single asset's direction. Introduces the relative-value/pairs archetype. Built with the mean-reversion DSL class (tight ladder + time-cuts on), taker-fallback entry (enter at the extreme; maker-only risks CREATE_ORDER_RESTING and a missed reversion window), no null numeric signal fields, and unit-tested pure functions. ## 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.