Trend following ยท SP500, XYZ100 ยท Days
Iguana
XYZ Macro Index Trend
Trades only the two broad stock-market indices (S&P 500 and the XYZ 100).
- Trend following
- Moderate risk
- Starter
- Up to 5x
- From $25
- v1.2.1
- Macro regime
- Beginner-friendly
How it works
Every few minutes it checks which index has the bigger 4-day move; if that move is large enough it goes that way (up = long, down = short), bets bigger when the move is strong and volume is rising, and then trails a stop. The simplest stock-market exposure on Hyperliquid โ no individual stocks.
Watches
SP500, XYZ100
Every 5 minutes
Enters
Trades broad indices (SP500, XYZ100).
Sizes
20% of its balance as margin
Up to 1 positions at once ยท up to 5x leverage
Exits
4-step trailing lock
Stops opening trades for the day after a 12% loss
The technical version
IGUANA โ two-asset XYZ macro index trend-follower (xyz:SP500 + xyz:XYZ100, HIP-3 DEX). Each tick computes the 4-day trend strength (% change over the last trendLookbackBars 4h candles) for each index, picks the stronger move past minTrendPct, and emits in its direction. Score 3 base + 2 if |trend| >= strongTrendPct + 1 if 4h volume rising > 15%; floor minScore 4. Held-asset and recent-signal dedup. Flat sizing: marginPct 20% of withdrawable, leverage clamped to maxLeverage (5x). DSL is the ONLY exit (balanced Phase 1 + Phase 2 ratchet; first lock tier REACHABLE at +5% ROE; 48h hard_timeout for XYZ weekend pricing-gap risk; 8h weak_peak_cut bails flat-but-tired positions before the weekend gap). The simplest possible XYZ equity exposure โ closest thing to an index fund, but 24/7. Faithful port of the v2 thesis. ONBOARDING TIER.
The idea
You want broad stock-market exposure on Hyperliquid without picking individual stocks, commodities, or pre-IPO names. Two liquid index instruments, one decision per tick: trend-follow whichever index has the clearer 4-day direction.
Read the full reasoning
The edge is in the slow index drift, so a wide DSL rides it for days and a 48h hard-timeout caps the XYZ weekend pricing-gap risk.
Where it can go wrong
- Trendless markets and sharp reversals. It gives back part of a move before the trail closes it.
- At 5x, a 20% move against a position erases its margin.
- One position at a time, so each trade is a large share of the balance.
The rules
Version 1.2.1What it trades
- Direction
- Long and short
- Positions at once
- Up to 1
- Typical hold
- Days (swing)
- Checks the market
- Every 5 minutes
Sizing
- Leverage
- Up to 5x
- Size per trade
- 20% of its balance as margin
- Minimum to start
- $25
Protection
- Profit lock
- 4 steps, from +10% on margin
- Daily loss limit
- Stops opening trades for the day after a 12% loss
- Drawdown halt
- Pauses after its balance falls 20% from its peak
- New trades a day
- At most 2
- Losing streak
- After 3 losses in a row, waits 90 minutes
4-step trailing lock. The first step keeps 40% of the peak once a trade is up 10% on margin (about 3.3% in price at 3x)
See the chart โThe profit lock
4 stepsAs a trade gains, the stop locks in a bigger share of its best level, and it only moves up. At +10% on margin it keeps 40% of the peak; by +50% it keeps 85%.
See all 4 steps
| When the trade is up on margin | Price move at 3x | The stop keeps |
|---|---|---|
| +10% | โ3.3% | 40% of the peak |
| +18% | โ6.0% | 60% of the peak |
| +30% | โ10.0% | 75% of the peak |
| +50% | โ16.7% | 85% of the peak |
Versions
1 versionSame idea, tuned differently. Each is its own fork.
Trades only the two broad stock-market indices (S&P 500 and the XYZ 100).
XYZ Macro Index Trend
Make it yours
- Run it on BTC, ETH and SOL instead
- Cut the leverage to 3x
- Only take long trades
- Make the profit lock tighter
- Allow 2 positions at once
Your fork carries your name. Changing it never touches the original or anyone else's fork.
FAQs
What is the Iguana strategy?
Iguana is a trend following strategy for Hyperliquid. Trades only the two broad stock-market indices (S&P 500 and the XYZ 100).
What does Iguana trade?
SP500, XYZ100. Long and short, up to 5x leverage, holding for days.
How much do I need to start?
$25 is the minimum. You choose the amount when you fork it, and you can add more later.
Can I change how Iguana works?
Yes. A fork is your own copy: ask your agent to change the markets, leverage, sizing or exits and it rewrites the rules for you.
Why doesn't Senpi show Iguana's returns?
Every fork runs with its owner's money and settings, so no single return describes it. Backtests aren't shown either: they're fitted to the past. Start small and watch it trade.
Similar strategies
All trend following strategies
Take the read with you
The same read, refreshed on demand, in the Senpi Companion for Chrome, the app, and your own agent through Connectors.
Strategies are starting points, not advice. Trading perpetual futures with leverage can lose the money in a strategy.