Token导航 LogoToken导航TokenDH.com
待分类external-servicegithub未标认证来源可访问许可证需确认审计提醒

tiger-strategy老虎策略

Agent Skill

tiger-strategy 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要围绕仓库状态、代码变更或协作事项进行整理时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

1,248

周安装

51

GitHub Stars

75

下载量

125
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:tiger-strategy(老虎策略)
来源仓库:https://github.com/senpi-ai/senpi-skills
仓库路径:skills/tiger-strategy
安装命令:
npx skills add https://github.com/senpi-ai/senpi-skills --skill tiger-strategy
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/senpi-ai/senpi-skills --skill tiger-strategy

简介

用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息。

  • 适合围绕仓库状态、代码变更或协作事项进行整理。tiger-strategy 属于待分类类 Skill,可作为该场景下的辅助能力补充。
  • 可结合来源仓库和原始 README 核验具体用法。
  • 安装前建议确认权限范围、维护状态及是否触发联网或文件读写。
  • 安装方式:通过 npx 从指定 GitHub 仓库添加技能。

SKILL.md

TIGER v2 — Multi-Scanner Goal-Based Trading

5 scanners. 1 goal. Configurable aggression. Mechanical exits.

Philosophy: WOLF hunts on instinct. TIGER calculates what it needs, then hunts exactly that much. Give it a budget, a target, and a deadline — it adjusts aggression automatically.


Architecture

┌──────────────────────────────────────────┐
│           10 OpenClaw Crons              │
│  Compress(5m) Corr(3m) Momentum(5m)     │
│  Reversion(5m) Funding(30m) OI(5m)      │
│  Goal(1h) Risk(5m) Exit(5m) DSL(30s)    │
├──────────────────────────────────────────┤
│           Python Scripts                  │
│  tiger_lib.py  tiger_config.py           │
│  5 scanners / goal-engine / risk /       │
│  exit / oi-tracker / dsl-v4              │
├──────────────────────────────────────────┤
│           Senpi MCP (via mcporter)        │
│  market_list_instruments                  │
│  market_get_asset_data / market_get_prices│
│  create_position / close_position         │
│  edit_position / cancel_order             │
│  strategy_get_clearinghouse_state         │
│  leaderboard_get_markets                  │
│  account_get_portfolio                    │
├──────────────────────────────────────────┤
│           State Files                     │
│  tiger-config.json → tiger_config.py      │
│  state/{instance}/*.json (atomic writes)  │
└──────────────────────────────────────────┘

State flow: OI Tracker samples all assets → Scanners score signals by confluence → Goal Engine sets aggression → Agent enters via create_position → DSL manages trailing stops → Risk Guardian enforces limits → Exit Checker handles pattern-specific exits.


Skill Attribution

When creating a strategy, include skill_name and skill_version in the call. See references/skill-attribution.md for details.


Quick Start

  1. Ensure Senpi MCP is connected (mcporter list shows senpi)
  2. Create a custom strategy: strategy_create_custom_strategy
  3. Fund the wallet: strategy_top_up
  4. Run setup: python3 scripts/tiger-setup.py --wallet 0x... --strategy-id UUID \ --budget 1000 --target 2000 --deadline-days 7 --chat-id 12345
  5. Create 10 OpenClaw crons from references/cron-templates.md

First hour: OI Tracker needs ~1h of history before compression/reversion scanners can use OI data. Goal engine and risk guardian work immediately.


5 Signal Patterns

1. Compression Breakout (Primary)

BB squeeze with OI accumulation → price breaks bands.

FactorWeightThreshold
BB squeeze (4h)0.25Width < bbSqueezePercentile (default: 35th)
BB breakout (1h)0.25Price closes outside 1h BB
OI building0.20OI rising > 5% in 1h
OI-price divergence0.15OI rising, price flat
Volume surge0.15Short vol > 1.5× long avg
RSI not extreme0.10RSI 30-70
Funding aligned0.10Funding favors direction
ATR expanding0.05ATR > 2%

2. BTC/ETH Correlation Lag (v2 — Multi-Leader, Multi-Window)

Leader (BTC or ETH) moves significantly → high-corr alts haven't caught up.

Multi-window detection: Checks 1h, 4h, 12h, and 24h rolling windows with scaled thresholds (1×, 1×, 1.5×, 2× base threshold). Catches sustained moves that single-candle checks miss.

Multi-leader: BTC and ETH are both tracked as leaders. ETH uses 0.8× threshold multiplier (more volatile). Each leader has its own alt list:

  • BTC alts: SOL, DOGE, AVAX, LINK, ADA, DOT, NEAR, ATOM, FIL, INJ, SEI, SUI, TIA, JUP, WIF, PEPE, RENDER, FET, TAO, AR
  • ETH alts (ecosystem-specific): OP, ARB, MATIC, STRK, AAVE, UNI, LDO, SNX, MKR, ENS, PENDLE, EIGEN, ENA, ETHFI, DYDX, CRV, COMP, SUSHI, IMX, BLUR

Smart dedup: If BTC and ETH move in the same direction, only BTC's alts are scanned (avoids redundancy). Max 4 alts total per scan to stay within 55s timeout.

FactorWeightThreshold
Leader significant move0.20> btcCorrelationMovePct (default: 2%) in any rolling window
Alt lagging0.25Lag ratio ≥ 0.5
Volume quiet0.15Alt volume not spiked yet
RSI safe0.10Not at extremes
SM aligned0.15Smart money direction matches
High correlation0.10Asset in leader's known alt list
Sufficient leverage0.05Max leverage ≥ minLeverage

Window quality: STRONG (lag > 0.7), MODERATE (0.5-0.7), CLOSING (0.4-0.5).

3. Momentum Breakout

Strong price move with volume confirmation.

FactorWeightThreshold
1h move0.25> 1.5%
2h move0.15> 2.5%
Volume surge0.20Ratio > 1.5×
4h trend aligned0.15Move matches 4h direction
RSI not extreme0.1030-70
SMA aligned0.10Price correct side of SMA20
ATR healthy0.05> 1.5%

DSL note: Tighter Phase 1 retrace (0.012) — momentum reversals are fast.

4. Mean Reversion

Overextended asset with exhaustion signals → counter-trend.

FactorWeightThreshold
RSI extreme (4h)0.20> rsiOverbought or < rsiOversold (required)
RSI extreme (1h)0.15Confirms 4h
RSI divergence0.20Divergence aligned with reversal
Price extended0.10> 10% move in 24h
Volume exhaustion0.15Declining volume on extension
At extreme BB0.10Price beyond BB bands
OI crowded0.15OI 15%+ above avg
Funding pays us0.10Collect funding in our direction

5. Funding Rate Arb

Extreme funding → go opposite the crowd, collect income.

FactorWeightThreshold
Extreme funding0.25Annualized > minFundingAnnualizedPct (default: 30%)
Trend aligned0.20SMA20 supports direction
RSI safe0.15Not extreme against us
OI stable0.15Funding source not collapsing
SM aligned0.10Smart money on our side
High daily yield0.10> 5% daily yield on margin
Volume healthy0.05> $10M daily

DSL note: Wider retrace tiers (0.02+) — edge is income, not price direction. Risk Guardian auto-exits if funding flips.


Goal Engine & Aggression

goal-engine.py runs hourly. Calculates required daily return and sets aggression:

AggressionDaily Rate NeededMin ConfluenceTrailing LockBehavior
CONSERVATIVE< 3%0.7585%Quality-only setups, tight locks
NORMAL3-8%0.6570%Standard operation
ELEVATED8-15%0.5550%Wider entries, lower threshold
ABORT> 15%999 (never)90%Stop new entries, tighten all

DSL v4 — Trailing Stop System

Per-position DSL state file. Combined runner (dsl-v4.py) checks all active positions every 30s.

IMPORTANT: The DSL cron must first check activePositions in TIGER state. If no positions are open, output HEARTBEAT_OK immediately and do NOT invoke dsl-v4.py. This prevents unnecessary session spam when TIGER is idle.

Phase 1 (pre-Tier 1): Absolute floor. 3 consecutive breaches → close. Max duration: 90 minutes.

Phase 2 (Tier 1+): Trailing tiers.

TierROE TriggerLock % of High-WaterNotes
15%2%Early profit signal
210%6%Momentum confirmed
315%11%Fills the old T3→T4 gap
420%16%Solid runner
530%25%Strong trend
640%34%Extended move
750%44%Exceptional run
865%57%Rare territory
980%72%Near-max
10100%90%Moon lock

Stagnation TP: ROE ≥ 8% + high-water stale 1h → auto-close.

DSL Tuning by Pattern

PatternPhase 1 RetraceTier WidthsNotes
COMPRESSION0.015 (standard)StandardWatch for false breakouts
CORRELATION_LAG0.015StandardTight absolute floor — window closes fast
MOMENTUM0.012 (tighter)StandardFast reversals
MEAN_REVERSION0.015MediumExpect 2-3 ATR move
FUNDING_ARB0.020+ (wider)WiderIncome-based, needs room

Risk Management

RuleLimitConfig KeyDefault
Max single trade loss3% of balancemaxSingleLossPct3
Max daily loss8% of day-start balancemaxDailyLossPct8
Max drawdown from peak15%maxDrawdownPct15
Max concurrent positions2maxSlots2
OI collapse exitOI drops > 25% in 1hoiCollapseThresholdPct25
Funding reversal exitFunding flips on FUNDING_ARBAuto
Deadline proximityFinal 24h → tighten all stopsAuto

All percentage values are whole numbers (5 = 5%).


Anti-Patterns

  1. NEVER enter in ABORT aggression. Goal engine set ABORT for a reason.
  2. NEVER override DSL. DSL auto-closes. Don't re-enter after DSL exit.
  3. NEVER hold FUNDING_ARB after funding flips. The thesis is dead.
  4. NEVER chase momentum after 2h. If you missed the 1h move, wait for the next one.
  5. NEVER enter reversion without 4h RSI extreme. That's the required filter, not optional.
  6. NEVER run scanners without timeout wrapper. timeout 55 prevents overlap.
  7. NEVER mix xyz: assets into main scanner groups. Prescreener isolates them into group_xyz; scanners hard-filter them out.

Resilience Architecture

xyz: Hard Isolation (3 layers)

  1. Prescreener: Separates xyz: prefixed assets into group_xyz, never mixed with main groups a-f
  2. Scanner filtering: Every scanner has names = {n for n in names if not n.startswith("xyz:")} guard
  3. Per-asset try/except: Even if an xyz: asset leaks through, it's caught by the per-asset error handler

Per-Asset Error Isolation

All 4 scanners (compression, correlation, momentum, reversion) wrap their per-asset analysis loops in try/except. One bad asset (missing data, API error, unexpected format) logs the error and skips — the rest of the scan continues normally. This prevents cascade failures where one problematic asset kills an entire scan run.


API Dependencies

ToolUsed ByPurpose
market_list_instrumentsall scanners, oi-trackerAsset discovery, OI, funding, volume
market_get_asset_dataall scannersCandles (1h, 4h), funding
market_get_pricescorrelation-scanner, risk-guardianBTC price, alt prices
leaderboard_get_marketscorrelation, funding scannersSM alignment
account_get_portfoliogoal-enginePortfolio balance
strategy_get_clearinghouse_stategoal-engine, risk-guardianMargin, positions
create_positionagent (from scanner output)Open positions
close_positiondsl-v4, risk-guardian, tiger-exitClose positions
edit_positionrisk-guardianResize positions

State Schema

See references/state-schema.md for full schema with field descriptions.

Key state files:

state/{instanceKey}/
├── tiger-state.json              # Positions, aggression, safety, daily stats
├── dsl-{ASSET}.json              # Per-position DSL trailing stop state
├── oi-history.json               # 24h OI time-series
├── trade-log.json                # All trades with outcomes
└── scan-history/                 # Scanner output history

All state files include version, active, instanceKey, createdAt, updatedAt. All writes use atomic_write().


Cron Setup

See references/cron-templates.md for ready-to-use OpenClaw cron payloads.

Silence Policy — CRITICAL: When a cron fires and the result is HEARTBEAT_OK, NO_POSITIONS, or no actionable signals:

  • Do NOT notify Telegram
  • Do NOT reply in chat
  • Do NOT explain what the cron did
  • Do NOT summarize the scan results
  • Produce NO output of any kind — complete silence Only speak (chat or Telegram) when something actionable happens: trade opened, trade closed, aggression changed, risk halt triggered, or an error that needs attention. Idle cycles = total silence.

All crons run isolated. No main session crons. No narration during scan cycles. The user should never see HEARTBEAT_OK, scanner reasoning, or "systems nominal" messages.

#JobIntervalScriptModel Tier
0Prescreener5 minprescreener.pyTier 1
1Compression Scanner5 mincompression-scanner.pyTier 1
2Correlation Scanner3 mincorrelation-scanner.pyTier 1
3Momentum Scanner5 minmomentum-scanner.pyTier 1
4Reversion Scanner5 minreversion-scanner.pyTier 1
5Funding Scanner30 minfunding-scanner.pyTier 1
6OI Tracker5 minoi-tracker.pyTier 1
7Goal Engine1 hourgoal-engine.pyTier 2
8Risk Guardian5 minrisk-guardian.pyTier 2
9Exit Checker5 mintiger-exit.pyTier 2
10DSL Combined30 secdsl-v4.pyTier 1
11ROAR Analyst8 hourroar-analyst.pyTier 2

Tier 1 (fast/cheap): threshold checks, data collection, DSL math. Runs isolated with delivery.mode: "none" and explicit model (the configured model). Tier 2 (capable): aggression decisions, risk judgment, exit evaluation. Runs isolated with delivery.mode: "announce" and explicit model (the configured model). OpenClaw auto-suppresses HEARTBEAT_OK — only real content gets delivered. DSL (Cron 10): Runs in main session (systemEvent) — needs position state context.

Scanners are staggered by 1-2 minutes to avoid mcporter rate limits (see cron-templates.md).


ROAR — Recursive Optimization & Adjustment Runtime

ROAR is TIGER's meta-optimizer. It runs every 8 hours (+ ad-hoc every 5th trade), analyzes TIGER's trade log, and tunes execution parameters within bounded ranges. User intent (budget, target, risk limits) is never touched.

What ROAR tunes (within hard min/max bounds):

  • Per-pattern confluence thresholds (0.25–0.85)
  • Scanner thresholds (BB squeeze percentile, BTC correlation move, funding annualized)
  • DSL retrace thresholds per phase (0.008–0.03)
  • Trailing lock percentages per aggression level

What ROAR never touches (protected): budget, target, deadline, max_slots, max_leverage, maxDrawdownPct, maxDailyLossPct, maxSingleLossPct.

Rules engine (6 rules):

  1. Win rate < 40% over 10+ trades → raise pattern confluence threshold by 0.05
  2. Win rate > 70% over 10+ trades → lower threshold by 0.03 to catch more signals
  3. Avg DSL exit tier < 2 → loosen phase1 retrace by 0.002 (let positions run)
  4. Avg DSL exit tier ≥ 4 → tighten phase1 retrace by 0.001 (lock gains)
  5. No entries in 48h for a pattern with 5+ trades → lower threshold by 0.02
  6. Negative expectancy over 20+ trades → disable pattern for 48h (auto-re-enables)

Safety: revert-if-worse checks every cycle. If both win rate AND avg PnL degraded since last adjustment, auto-reverts to previous config.

Scripts: roar-analyst.py (engine), roar_config.py (bounds, state, revert logic).


Expected Performance

MetricTarget
Trades per day1-4 (quality over quantity)
Win rate55-65%
Profit factor1.8-2.5
Daily return target1.5-3% (proven sustainable in Mission 1)
Best conditionsVolatile with clear setups (squeeze→breakout)
Worst conditionsLow-vol grind (few signals), choppy (false breakouts)
Fee drag (10x, round-trip)~1.8% of margin — factor into all PnL estimates

Known Limitations

  • OI history bootstrap. Scanners need ~1h of OI data before OI-dependent signals are reliable.
  • mcporter latency. ~6s per call. Scanners limited to 8 assets per cycle.
  • DSL is per-position. Each position needs its own DSL state file.
  • Correlation scanner tracks BTC + ETH as leaders. Doesn't detect moves led by other assets (e.g., SOL-led rallies).
  • Funding arb needs patience. Edge is income over time; DSL must be wide enough.
  • Goal engine recalculates hourly. Aggression can shift mid-trade.

Optimization Levers

LeverConfig KeyConservativeDefaultAggressive
Confluence threshold (NORMAL)minConfluenceScore.NORMAL0.750.650.55
BB squeeze percentilebbSqueezePercentile202535
BTC corr move %btcCorrelationMovePct432
Max leveragemaxLeverage71010
Max slotsmaxSlots123
Daily loss halt %maxDailyLossPct5812
Trailing lock (NORMAL)trailingLockPct.NORMAL0.850.700.50
Margin % per slotmargin_pct_per_slot0.250.300.40
Volume ratio gate (momentum)volume_ratio_gate.MOMENTUM1.51.21.0

Gotchas

  • maxSingleLossPct is a whole number: 5 = 5%.
  • minConfluenceScore values are decimals (0.40 = 40%), NOT whole numbers — this is a weighted score 0-1.
  • trailingLockPct values are decimals (0.60 = lock 60%).
  • triggerPct in DSL tiers is ROE % (5 = 5% ROE), not price %.
  • lockPct in DSL is % of high-water move to lock, not a retrace threshold.
  • DSL reads DSL_STATE_FILE env var ONLY — positional args are silently ignored.
  • timeout 55 on all scanner scripts to prevent cron overlap.
  • Cron stagger offsets::00 compression,:01 momentum,:02 reversion,:03 OI,:04 risk+exit.

Lessons from Live Trading

Operational

  • DSL state file active field: MUST include active: true or dsl-v4.py returns {"status": "inactive"} (line 22 check). This is the #1 gotcha when setting up new positions.
  • DSL invocation syntax: DSL_STATE_FILE=/path/to/file.json python3 scripts/dsl-v4.py COIN
  • API latency: market_get_asset_data ~4s/call, market_list_instruments ~6s. Max 8 assets per 55s scan window. This is NORMAL — design around it, don't blame it.
  • Correlation scanner timeouts: Max 4 alts per scan (down from 6) to stay within 55s. Cron interval tightened to 3min for time-sensitive lag trades.
  • Compression scanner signals: Requires breakout: true AND a direction to be actionable — a high compression score alone is not enough.
  • Test exit scripts after EVERY edit: A crashing exit script is invisible and bleeds real money (lost ~$43 on PUMP from UnboundLocalError).
  • Config changes mean nothing if code doesn't read them: Always verify the consuming code actually loads changed config keys.
  • Exchange SLs FIRST, DSL state SECOND: Set exchange-level SL via edit_position immediately after entry. DSL is intelligence, exchange SL is safety net.
  • Zombie processes from frequent cron spawns: Can accumulate under PID 1 and cause fork failures. Monitor and restart container if needed.
  • mcp-remote stdio proxy is unreliable: Use direct streamable-http transport instead.

Trading

  • Don't short compressed assets with building OI — compression often resolves upward.
  • No duplicate positions: Skip signals for assets already in active_positions.
  • Re-entry in opposite direction IS valid: When signals are strong, entering the same asset in the opposite direction works.
  • DSL trailing stops >> fixed TP: Every winning trade ran past where a fixed TP would have closed. Let winners run.
  • High-score signals (0.85+) justify overriding blacklists: If original loss was small and new direction differs, take the trade.
  • create_position format: Requires orders array with coin, direction, leverage, marginAmount, orderType fields.
  • ALO fee optimization: Use orderType: "FEE_OPTIMIZED_LIMIT" + ensureExecutionAsTaker: true for entries AND non-urgent exits (stagnation, time-stop, daily target). Saves ~8 bps per fill. Use MARKET ONLY for: DSL breach closures, risk guardian hard stops, daily loss limit hits, and exchange-level SLs. Exchange SL orderType in edit_position must always be MARKET.
  • close_position syntax: mcporter call 'senpi.close_position(...)'
  • CLOSE_NO_POSITION pattern: Position may already be closed on-chain before DSL's close call — handle gracefully (not an error).
  • Position sizing: think in MARGIN first: per_slot_budget = 30% of balance as margin. Multiply by leverage for notional. Old formula (balance÷slots÷leverage) left $730 on the table on PUMP.
  • Fees at 10x eat 1.8% of margin per round-trip: Track balance from clearinghouse accountValue, NOT price deltas.
  • 24h correlation signals go stale when 4h diverges: Always check timeframe alignment. Lost ~$90 on SEI/OP/ARB LONG trades that reversed in 1 hour.
  • Volume ratio < 1.2 = no conviction for momentum entries: XPL at 0.42 volume ratio stopped out immediately. Hard gate in config.
  • RSI > 70 on entry = red flag: FARTCOIN entered at RSI 70.4, lost -13.7% ROE. Tightened RSI gates.
  • LIMIT SL on exchange = unreliable: Always use orderType: "MARKET" for stop losses. LIMIT can fail on fast moves.
  • Realistic targets beat moonshots: Mission 1 (18.5% in 2.5 days, ~3%/day) succeeded. Mission 3 (8%/day) ABORTed. Target 1.5-3%/day max.
  • 2 slots > 3 slots at $3K: Concentration beats diversification at small capital. Each position gets meaningful margin.

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

36.66%
按下载量换算46

Claude

29.31%
按下载量换算37

Cursor

19.35%
按下载量换算24

Gemini CLI

9.91%
按下载量换算12

安全审计

Gen Agent Trust Hub

通过

Socket

可疑

Snyk

可疑

权限和风险

external-service

该 Skill 可能调用第三方服务、云服务或外部模型 API,使用前需要确认账号、额度、数据发送范围和服务条款。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills