aerodrome
Use when creating, validating, backtesting, deploying, sizing, or troubleshooting Aerodrome/Base spot trading strategies through…
Use when writing a strategy that captures short-squeeze setups on Hyperliquid perps — squeeze, short squeeze fuel, negative funding rally, fade the shorts, paid to long. Goes long when funding APR is deeply negative and price is already rising, then exits on funding
$ npx -y skills add Superior-Trade/superior-skills --skill funding-squeeze --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/funding-squeezeContext preview
The summary Claude sees to decide when to auto-load this skill.
Use when writing a strategy that captures short-squeeze setups on Hyperliquid perps — squeeze, short squeeze fuel, negative funding rally, fade the shorts, paid to long. Goes long when funding APR is deeply negative and price is already rising, then exits on funding
name: funding-squeeze description: "Use when writing a strategy that captures short-squeeze setups on Hyperliquid perps — squeeze, short squeeze fuel, negative funding rally, fade the shorts, paid to long. Goes long when funding APR is deeply negative and price is already rising, then exits on funding normalisation or a time stop. Reads squeeze fuel rather than funding-harvest carry." metadata: version: 0.1.0 updated: 2026-05-08
A user asks for "squeeze trade", "fade the shorts", "short squeeze fuel", "longs eat shorts", "negative funding rally", or any framing where they want to **ride the squeeze** by going long when the order book is short-heavy and the price is already turning up.
This is the inverse of pure carry: instead of waiting for funding to mean-revert (`strategy-funding-rate-arbitrage`), this strategy enters when shorts are getting **squeezed harder** (funding worsening AND price rising), expecting forced unwinds to fuel further upside.
Squeeze setups are time-sensitive and regime-dependent:
Use the time-stop and the funding-flip exit. Don't try to ride the trend after funding turns positive.
| Window | `BTC/USDC:USDC` 1h, 2026-01-01 → 2026-05-01 (BTC −13% over the window) | |---|---| | Trades | 8 | | Win rate | 38% (3W / 5L) | | Wallet PnL | **−0.75%** | | Sharpe | −0.75 | | Max drawdown | 0.75% | | Avg holding | 12h 30m | | Backtest ID | `01kr42gvqnyessxdrsf3qym7sa` | | Exit-reason mix | 6 signal exits · 1 trailing-stop win · 1 stoploss |
**The strategy executed correctly** — the negative PnL is a regime call, not a broken implementation. The window covers BTC's −13% slide; long-only squeezes in a structural downtrend get stopped repeatedly. The trailing-stop win shows the trade thesis works when a squeeze actually catches (the one trade that resolved up made +1.3%); the issue is that the entry filter fired on too many bear-market dead-cat bounces.
Two practical refinements before recommending live: 1. **Add a higher-timeframe regime filter** (e.g. only enter when `1d close > 1d ema_50`). Removes most of the bear-market false starts. 2. **Run on a multi-pair scan** rather than BTC alone. Squeezes are uncorrelated across alts — diversification compounds.
See `docs/alpha-scan-improvement-plan.md` for context on the squeeze-fuel bucket of the alpha scan.
Same `dp.get_pair_dataframe(candle_type="funding_rate")` pattern as `strategy-funding-rate-arbitrage` — Hyperliquid funds hourly and the data is auto-downloaded for backtest. Layer the recent return condition on top.
from freqtrade.strategy import IStrategy
from datetime import datetime
import pandas as pd
import talib.abstract as ta
class FundingSqueezeStrategy(IStrategy):
minimal_roi = {"0": 100.0} # exits managed by the funding flip + time stop
stoploss = -0.04
trailing_stop = True
trailing_stop_positive = 0.02
trailing_stop_positive_offset = 0.03
trailing_only_offset_is_reached = True
timeframe = "1h"
process_only_new_candles = True
startup_candle_count = 30
can_short = False
def populate_indicators(self, dataframe: pd.DataFrame, metadata: dict) -> pd.DataFrame:
# Funding rate via the dedicated candle type. HL funds hourly.
try:
funding = self.dp.get_pair_dataframe(
pair=metadata["pair"],
timeframe="1h",
candle_type="funding_rate",
)
except Exception:
funding = pd.DataFrame()
if not funding.empty and "open" in funding.columns:
f = funding[["date", "open"]].rename(columns={"open": "funding_rate"}).copy()
dataframe = dataframe.merge(f, on="date", how="left")
dataframe["funding_rate"] = dataframe["funding_rate"].ffill().fillna(0.0)
# Annualise hourly funding: APR = rate * 24 * 365.
dataframe["funding_apr"] = dataframe["funding_rate"] * 24 * 365
else:
dataframe["funding_rate"] = 0.0
dataframe["funding_apr"] = 0.0
# Recent up-move (squeeze fuel needs the move already started).
dataframe["ret_24h"] = dataframe["close"].pct_change(24)
dataframe["ret_4h"] = dataframe["close"].pct_change(4)
dataframe["atr_24"] = ta.ATR(dataframe, timeperiod=24)
dataframe["vol_avg20"] = dataframe["volume"].rolling(20).mean()
return dataframe
def populate_entry_trend(self, dataframe: pd.DataFrame, metadata: dict) -> pd.DataFrame:
# Long when funding is deeply negative AND price is already rising AND
# volume confirms (avoid dead-tape squeezes that can't propagate).
dataframe.loc[
(dataframe["funding_apr"] < -0.10)
& (dataframe["ret_24h"] > 0.03)
& (dataframe["ret_4h"] > 0.0)
& (dataframe["volume"] > dataframe["vol_avg20"])
& (dataframe["volume"] > 0),
"enter_long",
] = 1
return dataframe
def populate_exit_trend(self, dataframe: pd.DataFrame, metadata: dict) -> pd.DataFrame:
# Exit when funding flips back to non-negative — the squeeze has been
# paid out and we're now competing with reset shorts and tired longs.
dataframe.loc[(dataframe["funding_apr"] >= 0.0), "exit_long"] = 1
return datafrTrading strategies and intelligence tools for Superior Trade — natural-language strategy authoring, backtesting, and autonomous deployment on Hyperliquid, Lighter, and Polymarket.
Use when creating, validating, backtesting, deploying, sizing, or troubleshooting Aerodrome/Base spot trading strategies through…
Use when running, interpreting, or designing backtests on Superior Trade — anything about backtest windows, trade-count…
Use when the user asks for spot-perp basis trade, basis arbitrage, cash-and-carry, perp discount, or any setup that reads the…
Use when writing a symmetric Bollinger-band mean-reversion strategy on the 4h timeframe — BB reverter, range trader, chop…
Use when writing a swing/intraday breakout strategy on Superior Trade — anything described as breakout, momentum, trend…
Use when a Polymarket prediction-market thesis rests on an external event — CPI, Fed, elections, court rulings, ETF decisions —…