/superior-skills:breakoutfrom superior-skills
Provides a momentum breakout strategy template for Superior Trade with backtest results and regime sensitivity guidance.
Ships in superior-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
A user asks for "breakout", "momentum", "trend following", "buy new highs", "Donchian breakout", "range expansion". Single or multi-pair, hour-scale, with a trailing stop.
The reference backtest was unprofitable (36% WR, −0.95% PnL) on BTC/USDC:USDC 1h Jan-May 2026 — but BTC fell −13% in that window. Long-only breakouts in a downtrend are structurally a losing setup. The strategy is correct; the regime was wrong.
Two practical paths to make this work:
close > ema_200 on the higher timeframe).| Window | BTC/USDC:USDC 1h, 2026-01-01 → 2026-05-01 (BTC −13%) |
|---|---|
| Trades | 64 |
| Win rate | 36% |
| Wallet PnL | −0.95% |
| Backtest ID | 01kqypw5bqsaezpgm8pxcrpvyb |
Trailing stop kept losses small per trade, but the entry signal fired into too many failed breakouts in a downtrend. Re-run on Q4 2025 or a trending alt to see the strategy in its native regime.
from freqtrade.strategy import IStrategy
import pandas as pd
import talib.abstract as ta
class MomentumBreakoutStrategy(IStrategy):
minimal_roi = {"0": 100.0} # let trailing stop manage exits
stoploss = -0.05
trailing_stop = True
trailing_stop_positive = 0.015
trailing_stop_positive_offset = 0.025
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:
dataframe["high_12h"] = dataframe["high"].rolling(12).max().shift(1)
dataframe["low_6h"] = dataframe["low"].rolling(6).min().shift(1)
dataframe["vol_avg20"] = dataframe["volume"].rolling(20).mean()
dataframe["atr_14"] = ta.ATR(dataframe, timeperiod=14)
return dataframe
def populate_entry_trend(self, dataframe: pd.DataFrame, metadata: dict) -> pd.DataFrame:
# Break the prior 12h high on above-average volume.
dataframe.loc[
(dataframe["close"] > dataframe["high_12h"])
& (dataframe["volume"] > dataframe["vol_avg20"]),
"enter_long",
] = 1
return dataframe
def populate_exit_trend(self, dataframe: pd.DataFrame, metadata: dict) -> pd.DataFrame:
# Break the prior 6h low → exit (momentum failed).
dataframe.loc[(dataframe["close"] < dataframe["low_6h"]), "exit_long"] = 1
return dataframe
{
"exchange": { "name": "hyperliquid", "pair_whitelist": ["BTC/USDC:USDC"] },
"stake_currency": "USDC",
"stake_amount": 100,
"timeframe": "1h",
"max_open_trades": 1,
"stoploss": -0.05,
"minimal_roi": { "0": 100.0 },
"trading_mode": "futures",
"margin_mode": "cross",
"trailing_stop": true,
"trailing_stop_positive": 0.015,
"trailing_stop_positive_offset": 0.025,
"trailing_only_offset_is_reached": true,
"entry_pricing": { "price_side": "same" },
"exit_pricing": { "price_side": "same" },
"pairlists": [{ "method": "StaticPairList" }]
}
The trailing-stop block is what makes this template worth keeping — it locks in profits once a breakout extends past +2.5%, then trails 1.5% behind.
| Knob | Effect |
|---|---|
12 (rolling high length) | Shorter (6) → more entries, lower-quality breakouts. Longer (24) → fewer, higher-conviction. |
volume > vol_avg20 | Stricter (> vol_avg20 × 1.5) → only volume-confirmed breakouts. |
trailing_stop_positive_offset (0.025) | Higher → trailing stop activates later, gives more room. Lower → locks in earlier, exits more often. |
trailing_stop_positive (0.015) | Tighter trail → exits closer to highs, more stops out. |
low_6h exit | Shorter window → faster invalidation. Longer → patience but bigger giveback. |
1d close > 1d ema_50. Removes trades in clear downtrends (would have killed most of the −0.95% in the reference).StaticPairList with VolumePairList filtered to top 30 by 24h volume. Diversifies regime risk.process_only_new_candles = False. Default True is correct here; setting it false fires on every tick during backtest dry-run and triple-counts entries.minimal_roi and trailing stop. Setting minimal_roi: { "0": 0.05 } exits at +5% before the trailing stop activates at +2.5% offset. Use {"0": 100.0} and let the trailing stop run.startup_candle_count too small for ATR-14. ATR needs 14 bars of warmup; the default 30 is fine. If you switch to ATR-100, bump startup to 100+.docs/standard-strategies-audit.md, backtest 01kqypw5bqsaezpgm8pxcrpvybWhat SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub superior-trade/superior-skills --plugin superior-skills30 skills in this plugin
/aerodromeUse when creating, validating, backtesting, deploying, sizing, or troubleshooting Aerodrome/Base spot trading strategies through the Superior Trade API, especially Freqtrade configs using exchange.name "aerodrome", AERO/USDC or CHECK/USDC pairs, AMM market swaps, wallet/gas balance checks, no-orderbook pricing, or Aerodrome live deployment safety./backtestingUse when running, interpreting, or designing backtests on Superior Trade — anything about backtest windows, trade-count thresholds, exit-reason mix, parameter sweeps, walk-forward validation, zero-trade diagnosis, compute-cost estimation, or "is this backtest result trustworthy?". Pair with the relevant strategy skill, such as mean-reversion or breakout./basis-arbUse when the user asks for spot-perp basis trade, basis arbitrage, cash-and-carry, perp discount, or any setup that reads the spot–perp basis as a positioning signal. Long-perp leg only — pure two-leg basis arb requires a paired spot short (or long) which Freqtrade can't run cleanly. The strategy below captures the directional read, not the hedged carry./bollinger-reverter-4hUse when writing a symmetric Bollinger-band mean-reversion strategy on the 4h timeframe — BB reverter, range trader, chop strategy, ADX<25 mean reversion, band-fade with a minimal_roi ladder. Long-or-short on 2-sigma band touches with RSI confirmation. Validated on BTC/ETH/SOL/DOGE; numbers and the exact ROI ladder are in the body./catalyst-confirmationUse when a Polymarket prediction-market thesis rests on an external event — CPI, Fed, elections, court rulings, ETF decisions — and needs market confirmation before committing./dca-weeklyUse when writing, validating, or troubleshooting a recurring scheduled buy strategy (DCA, dollar-cost averaging, weekly buys, daily buys, monthly accumulation, accumulator) on Superior Trade — especially anything that should "buy more of the same pair" on a calendar trigger rather than a price trigger.Other plugins' skills for the same job