aerodrome
Use when creating, validating, backtesting, deploying, sizing, or troubleshooting Aerodrome/Base spot trading strategies through…
Use when writing a trend-breakdown short gated by a triple-confirmed strong-bear regime — donchian short, structural breakdown, regime-gated trend follower, EMA-separation plus ADX plus N-bar return confirmation. Validated on BTC; fires only in confirmed bear regimes and takes
$ npx -y skills add Superior-Trade/superior-skills --skill donchian-strong-regime --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/donchian-strong-regimeContext preview
The summary Claude sees to decide when to auto-load this skill.
Use when writing a trend-breakdown short gated by a triple-confirmed strong-bear regime — donchian short, structural breakdown, regime-gated trend follower, EMA-separation plus ADX plus N-bar return confirmation. Validated on BTC; fires only in confirmed bear regimes and takes
name: donchian-strong-regime description: "Use when writing a trend-breakdown short gated by a triple-confirmed strong-bear regime — donchian short, structural breakdown, regime-gated trend follower, EMA-separation plus ADX plus N-bar return confirmation. Validated on BTC; fires only in confirmed bear regimes and takes zero trades in chop by design. Pairs with bollinger-reverter-4h." metadata: version: 0.1.0 updated: 2026-05-18
Trend-breakdown short, gated by a triple-confirmed strong-bear regime. Stays out of chop entirely. Validated on BTC/USDC:USDC over 162 days (2025-11-20 → 2026-05-01).
Searchable under: **trend follower**, **breakdown**, **regime-gated**, **donchian short**, **structural break**.
| Window | Trades | Win rate | Profit | Max DD | |---|---|---|---|---| | Full period (162d) | 6 | **100%** | **+6.69%** | **0%** | | First-half / strong bear (82d) | 6 | **100%** | +6.69% | 0% | | Second-half / chop (80d) | **0** | — | **0%** | 0% |
The triple-confirmation gate produced **zero trades in the rangy second half** — exactly the behavior a regime gate should produce. Every fired trade in the first half captured the trailing stop for profit.
In a confirmed strong-bear regime (ema separation, ADX, recent momentum all aligned), a close below the 24-bar low (4 days of structure) reliably continues lower. The gate prevents the strategy from firing during sideways/rangy markets where the same signal mean-reverts.
from freqtrade.strategy import IStrategy
import pandas as pd
import talib.abstract as ta
class DonchianStrongRegimeStrategy(IStrategy):
INTERFACE_VERSION = 3
timeframe = "4h"
can_short = True
stoploss = -0.05
trailing_stop = True
trailing_stop_positive = 0.02
trailing_stop_positive_offset = 0.03
trailing_only_offset_is_reached = True
minimal_roi = {"0": 100.0} # disable ROI; trailing + signal exits only
process_only_new_candles = True
startup_candle_count = 220
use_exit_signal = True
def populate_indicators(self, dataframe: pd.DataFrame, metadata: dict) -> pd.DataFrame:
dataframe["lowest_24"] = dataframe["low"].rolling(24).min().shift(1)
dataframe["highest_6"] = dataframe["high"].rolling(6).max().shift(1)
dataframe["ema50"] = ta.EMA(dataframe, timeperiod=50)
dataframe["ema200"] = ta.EMA(dataframe, timeperiod=200)
dataframe["rsi"] = ta.RSI(dataframe, timeperiod=14)
dataframe["adx"] = ta.ADX(dataframe, timeperiod=14)
dataframe["ema_sep"] = (
(dataframe["ema50"] - dataframe["ema200"]) / dataframe["ema200"]
)
dataframe["ret_30"] = dataframe["close"].pct_change(30)
dataframe["regime_strong"] = (
(dataframe["ema_sep"] < -0.06)
& (dataframe["adx"] > 25)
& (dataframe["ret_30"] < -0.10)
)
return dataframe
def populate_entry_trend(self, dataframe: pd.DataFrame, metadata: dict) -> pd.DataFrame:
cond = (
(dataframe["close"] < dataframe["lowest_24"])
& dataframe["regime_strong"]
)
dataframe.loc[cond, "enter_short"] = 1
dataframe.loc[cond, "enter_tag"] = "donchian_strong_bear"
return dataframe
def populate_exit_trend(self, dataframe: pd.DataFrame, metadata: dict) -> pd.DataFrame:
cond = (
(dataframe["close"] > dataframe["highest_6"])
| ((dataframe["rsi"] > 55) & (dataframe["rsi"].shift(1) > 55))
)
dataframe.loc[cond, "exit_short"] = 1
return dataframe{
"exchange": {"name": "hyperliquid", "pair_whitelist": ["BTC/USDC:USDC"]},
"stake_currency": "USDC",
"stake_amount": 100,
"dry_run_wallet": {"USDC": 150},
"timeframe": "4h",
"max_open_trades": 1,
"minimal_roi": {"0": 100.0},
"stoploss": -0.05,
"trading_mode": "futures",
"margin_mode": "isolated",
"entry_pricing": {"price_side": "same", "price_last_balance": 0.0},
"exit_pricing": {"price_side": "same", "price_last_balance": 0.0},
"pairlists": [{"method": "StaticPairList"}]
}This strategy **only fires during confirmed strong-bear regimes**. In bull markets, sideways markets, and weak bears it will trade rarely or not at all — by design. Do not "improve" by loosening the gate; the loose-gate version (without triple confirmation) lost money in the same window.
The 100% backtest win rate is partly a function of sample size (6 trades). The honest expectation is **~60-75% win rate** with similar expectancy when the gate is properly confirmed across longer windows.
Pair this strategy with `bollinger-reverter-4h` (the chop-regime sibling) for full-spectrum coverage — they fire on mutually exclusive regimes.
| Parameter | Range | Effect | |---|---|---| | Regime EMA separation | -0.04 to -0.08 | Looser = more trades, more chop noise; tighter = fewer, cleaner | | Regime ADX threshold | 20 - 30 | Higher = more selective trend confirmation | | Regime
Trading 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 —…