with one click
apex-strategy
Autonomous multi-slot trading orchestrator
Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.
Menu
Autonomous multi-slot trading orchestrator
Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.
Based on SOC occupation classification
| name | apex-strategy |
| version | 1.0.0 |
| description | Autonomous multi-slot trading orchestrator |
| author | YEX |
| dependencies | ["modules/apex_config.py","modules/apex_state.py","modules/apex_engine.py","modules/radar_guard.py","modules/pulse_guard.py","modules/guard_bridge.py"] |
Autonomous multi-slot trading strategy that composes Radar + Pulse + DSL into a unified orchestrator.
APEX runs a single tick loop (60s base) that:
Before running APEX live (not mock), ensure:
hl setup claim-usdyp (without funds, all orders fail silently)hl builder approve (testnet) or hl builder approve --mainnet# Mock mode (no funds needed)
hl apex run --mock --max-ticks 10
# Live (testnet) — requires USDyP balance + builder approval
hl apex run
# Live (mainnet) — requires USDC balance + mainnet builder approval
hl apex run --mainnet
# Check status
hl apex status
# List presets
hl apex presets
You are the APEX orchestrator. Your job is to hunt for high-probability setups and manage 2-3 concurrent positions with strict risk controls.
RULES:
max_slots concurrent positionsdaily_loss_limit before entering new positions--mock --max-ticks 5 before first live deployment| Condition | Action |
|---|---|
| Radar score > 200 + Pulse IMMEDIATE | Enter with 1.5x size — strongest conviction |
| Radar score > 170, no Pulse signal | Enter with 1.0x size — radar-only conviction |
| Radar score 140-170 | Queue entry, wait for Pulse confirmation within 15 min |
| Radar score < 140 | Skip — insufficient edge |
| ROE > 5% and DSL Phase 2 active | Let DSL manage exit — do not manually close |
| ROE < -3% for > 15 min | Exit — conviction lost, don't wait for hard stop |
| 2 consecutive losses same session | Reduce position size by 50% for next 2 trades |
| Daily loss > 50% of limit | Switch to conservative preset for remainder |
| All slots filled | Wait for exit before scanning new entries |
| Pulse IMMEDIATE but all slots full | Evaluate weakest slot for replacement |
--budget. Unbounded budget = unbounded loss.| Error | Cause | Fix |
|---|---|---|
No positions but slots show ACTIVE | Stale state after restart | hl apex status, manually reset via state file |
Radar returned 0 candidates | Low-vol period or API issue | Normal during weekends/low-vol — APEX will idle safely |
Daily loss limit reached | Bad session | APEX auto-closes all. Review with hl reflect run tomorrow |
Builder fee not approved | Skipped onboarding step | hl builder approve then restart APEX |
Connection timeout | HL API rate limit | APEX auto-retries with backoff — no action needed |
APEX is the top-level orchestrator. It composes Radar (opportunity finding), Pulse (real-time signal detection), and DSL (risk management) into one tick loop. Use APEX for autonomous trading. Use individual skills when you need manual control.
# Start APEX at market open, stop at EOD
0 8 * * 1-5 cd ~/agent-cli && source .venv/bin/activate && hl apex run --budget 5000 >> logs/apex.log 2>&1
0 20 * * 1-5 pkill -f "hl apex run"
# Nightly REFLECT review
55 23 * * * cd ~/agent-cli && source .venv/bin/activate && hl reflect run >> logs/reflect.log 2>&1
Autonomous Hyperliquid trading — 14 strategies (MM, momentum, arbitrage, LLM) with APEX multi-slot orchestrator, REFLECT performance review, DSL trailing stops, and builder fee revenue collection.
First-time setup — from zero to first trade on Hyperliquid
Guard — two-phase ROE-based trailing stop system for Hyperliquid perps. Phase 1 lets the trade breathe with wide retrace and patient breach counting. Phase 2 locks profit through configurable tier ratcheting with per-tier retrace overrides. Supports LONG and SHORT, hard/soft breach decay, stagnation take-profit, and preset configs. Use when protecting an open position, setting trailing stops, or automating profit-locked exits.
Detects assets with sudden capital inflow via OI/volume/funding proxy signals
Screens all Hyperliquid perps and surfaces top trading setups
Reflect, Evaluate, Fine-tune, Learn, Evolve, Correct, Transform — nightly automated performance review