hype-sniper
暂无简介
- License 许可
- GPL-3.0
- 最近更新
- 2026-07-02
- Stars
- ★ 1
- Forks
- 0
02 资源文件 10
- 参考文档alo-guide.md1.5 KB
- 参考文档hype-config.json2.9 KB
- 脚本scripts/dsl-cleanup.py2.1 KB
- 脚本scripts/dsl-v52.py46.0 KB
- 脚本scripts/health.py5.0 KB
- 脚本scripts/hedge-monitor-v2.py6.9 KB
- 脚本scripts/hype_lib.py8.4 KB
- 脚本scripts/risk-guardian.py6.1 KB
- 脚本scripts/scanner_v3.py23.2 KB
- 其他state/.gitkeep—
03 SKILL.md 正文
HYPE Momentum Sniper v2
10x leveraged HYPE trading on Hyperliquid via Senpi. Smart entries with multi-timeframe confirmation, DSL v5.2 trailing stops with time decay, and ALO fee optimization.
Architecture
| Script | Freq | Purpose |
|---|---|---|
scanner_v3.py |
30s | Smart entry: 5m+15m momentum, volume, chop filter, OI |
dsl-v52.py |
3min | DSL v5.2 trailing stops + time decay + partial TP |
hedge-monitor-v2.py |
60s | Funding + market-risk hedging with ALO |
health.py |
10min | Portfolio health + Telegram reports |
risk-guardian.py |
5min | Account-level guard rails: daily loss, drawdown, max entries, cooldown |
dsl-cleanup.py |
manual | Strategy cleanup when all positions closed |
Entry Logic v2 (scanner_v3.py)
Multi-filter entry system:
- 5m momentum ≥ 1.0% (was 0.6%) — only decisive moves, not noise dips
- 1h trend hard block — if signal direction conflicts with 1h trend, skip. MIXED/UNKNOWN trends also blocked — must have clear directional bias.
- 15m trend agreement — only trade with the trend
- Volume spike ≥ 1.5x average — confirms conviction
- Chop detection — skip if 30m range < 0.5%
- OI confirmation — rising OI for longs, flat/dropping for shorts
- Funding alignment — same as v1
- Direction block — no same-direction re-entry within 20min of loss
- Adaptive cooldown — 15min normal, 30min after SL loss
Strong momentum override (1.8x threshold): Ignores funding and 15m disagreement.
Execution: FEE_OPTIMIZED_LIMIT with ALO (saves ~3 bps per entry)
DSL v5.2 (dsl-v52.py)
ROE-based trailing stop loss with time decay and partial take-profit.
Phase 1 (Let it breathe): 4% ROE retrace from HWM, 5 consecutive breaches, 8% ROE hard floor.
Phase 2 (Lock the bag): Activated at Tier 1 (8% ROE). 2% ROE retrace, 2 breaches.
Tiers:
| Tier | Trigger | Lock | Retrace |
|---|---|---|---|
| 1 | 8% ROE | 3% | 2.0% |
| 2 | 15% ROE | 10% | 1.8% |
| 3 | 25% ROE | 18% | 1.5% |
| 4 | 40% ROE | 30% | 1.2% |
| 5 | 60% ROE | 48% | 1.0% |
| 6 | 80% ROE | 65% | 0.8% |
| 7 | 100% ROE | 80% | 1.0% |
Time Decay (cut stale losers):
| After | If ROE < | Action |
|---|---|---|
| 5 min | 3% | Tighten floor to 6% ROE |
| 15 min | 5% | Tighten floor to 4% ROE |
| 30 min | 8% | Force close (not a momentum trade) |
Partial Take-Profit: At Tier 3 (25% ROE), reduce position 25% via edit_position(targetMargin). Let rest ride.
Pyramiding (add to winners):
- Triggered on tier upgrades in Phase 2 (confirmed trend)
- Adds 15% margin per pyramid via
edit_position(targetMargin) - Max 2 adds per trade, once per tier
- Entry price blends automatically (Senpi handles the math)
HL-native SL + TP:
- Stop loss synced to Hyperliquid via
edit_position(stopLoss) - Take profit set at next tier target via
edit_position(takeProfit)— HL executes natively, no cron dependency - Both use
LIMITorder type for fee optimization
Scanner Feedback: On close, DSL updates scanner_state.json with loss flag → triggers 30min cooldown.
Hedge Logic v2 (hedge-monitor-v2.py)
- Funding hedge: threshold raised to 0.015 (was 0.01)
- Market-risk hedge: if HYPE >15% ROE and BTC drops 1%+ → hedge
- Hedge entry: ALO (was MARKET) — saves fees
- Auto-close when main position closes
Risk Management
- Max single position: 25% of margin
- Max margin usage: 60%
- Max daily loss: 5%
- Max drawdown: 15%
- Max positions: 3
- Entry cooldown: 15min normal / 30min post-SL
Fee Optimization (ALO)
- Entries:
FEE_OPTIMIZED_LIMIT+ ALO - Stop losses Phase 1:
MARKET(speed > cost) - Stop losses Phase 2:
LIMIT - Partial TP:
FEE_OPTIMIZED_LIMIT - Hedge entries:
FEE_OPTIMIZED_LIMIT
Cron Setup
4 crons total:
- Scanner v2: every 30s,
OPENCLAW_WORKSPACE=/data/workspace python3 scripts/scanner_v3.py - DSL v5.2: every 3min,
DSL_STATE_DIR=/data/workspace/dsl DSL_STRATEGY_ID={id} python3 scripts/dsl-v52.py - Hedge v2: every 60s,
OPENCLAW_WORKSPACE=/data/workspace python3 scripts/hedge-monitor-v2.py - Health: every 10min,
OPENCLAW_WORKSPACE=/data/workspace python3 scripts/health.py
Config
hype-config.json — entry_v2 section controls scanner v2 params.
State
- Scanner state:
state/scanner_state.json,state/price_history.json - DSL state:
/data/workspace/dsl/{strategy_id}/HYPE.json - Hedge state:
state/hedge_state.json - Health state:
state/health_state.json
Legacy Scripts (kept for reference)
scanner.py— v1 scanner (0.2% threshold, no filters)dsl-v5.py— v5.0 DSL (3% retrace, 3 breaches, no time decay)hedge-monitor.py— v1 hedge (MARKET orders, lower threshold)
04 同仓库更多 Skills
supermemory
Supermemory is a state-of-the-art memory and context infrastructure for AI agents. Use this skill when building applications that need persistent memory, user personalization, long-term context retention, or semantic search across knowledge bases. It provides Memory API for learned user context, User Profiles for static/dynamic facts, and RAG for semantic search. Perfect for chatbots, assistants, and knowledge-intensive applications.
wolverine-strategy
WOLVERINE v2.0 — HYPE alpha hunter. Entry-only scanner, DSL-exit-only architecture. v1.1 lost -22.7% because the scanner's thesis exit chopped 25/27 trades before DSL could manage them. v2.0 removes thesis exit entirely. Scanner decides entries (score 8+, 4H/1H aligned, SM consensus). DSL manages all exits (wide Phase 1 for HYPE volatility, trailing tiers starting at +15% ROE). Leverage lowered to 7x. Max 4 entries/day. 3-hour cooldown between entries. DSL exit managed by plugin runtime via runtime.yaml.
wolf-strategy
WOLF v6.3 — Fully autonomous multi-strategy trading for Hyperliquid perps via Senpi MCP. Manages multiple strategies simultaneously, each with independent wallets, budgets, slots, and DSL configs. 5+N cron architecture: 5 shared wolf crons (Emerging Movers 3min, SM Flip 5min, Watchdog 5min, Risk Guardian 5min, Health Check 10min) plus one DSL v5.2 cron per strategy (native Hyperliquid SL sync via dsl-dynamic-stop-loss skill v5.3.1). Same asset can be traded in different strategies simultaneously. Enter early on first jumps, not at confirmed peaks. Dynamic risk-based leverage per strategy. Requires Senpi MCP connection, python3, mcporter CLI, OpenClaw cron system, and dsl-dynamic-stop-loss skill (provides dsl-cli.py + dsl-v5.py).
wolf-howl
HOWL v2 — Hunt, Optimize, Win, Learn. Nightly self-improvement loop for the WOLF autonomous trading strategy. Runs once per day (via cron) to review all trades from the last 24 hours, compute win rates, analyze signal quality correlation, evaluate DSL tier performance, identify missed opportunities, and produce concrete improvement suggestions for the wolf-strategy skill. v2 adds fee drag ratio (FDR) analysis, holding period bucketing, LONG vs SHORT regime detection, rotation cost tracking, cumulative drift detection, and gross vs net profit factor separation. Use when setting up daily trade review automation, analyzing trading performance, or improving an autonomous trading strategy through data-driven feedback loops. Requires Senpi MCP connection, mcporter CLI, and OpenClaw cron system.
whale-index
Auto-mirror top Discovery traders on Hyperliquid. Scans top 50 traders, scores on PnL rank (35%), win rate (25%), consistency (20%), hold time (10%), drawdown (10%). Creates 2-5 mirror strategies with overlap checks. Daily rebalance with 2-day watch period before swaps. Use when setting up trader mirroring, copy trading, or portfolio auto-rebalancing based on Discovery leaderboard performance.
vixen-strategy
VIXEN v1.0 — Dual-mode emerging movers scanner. Built from FOX v1.6 live trading data (+34.5% ROI). Two entry modes: STALKER (steady accumulation, score 6+, catches the SM buildup BEFORE the explosion) and STRIKER (violent FIRST_JUMP, score 9+, with raw volume confirmation to filter blow-off tops). 2-hour per-asset cooldown after Phase 1 exits. DSL High Water Mode mandatory.