Agent skill

Donchian Strong Regime

by Superior-Trade in Superior-Trade/superior-skills

A skill your agent uses 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…

MITAuto-check passedBusiness, Finance & HR

Install Donchian Strong Regime

skills CLI
$ npx skills add Superior-Trade/superior-skills --skill donchian-strong-regime -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install Superior-Trade/superior-skills donchian-strong-regime --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/Superior-Trade/superior-skills.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/donchian-strong-regime .claude/skills/donchian-strong-regime && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
donchian-strong-regime
GitHub stars
215
Token cost
~1.8k tokens
SKILL.md length
559 words
Files
1
Skills in repo
31
Repo updated
First seen
Licence
MIT

At a glance

A skill your agent uses 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…

  • Writing a trend-breakdown short gated by a triple-confirmed strong-bear regime — donchian short
  • SKILL.md covers Backtest evidence, Thesis, Mechanics and Full strategy code, plus 6 more sections
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md
  • Structural breakdown

What it does

Donchian Strong Regime is an agent skill from Superior-Trade/superior-skills. 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.

Its SKILL.md is about 1.8k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in Business, Finance & HR, covering Trading and backtesting. It works with Circle USDC. The repository describes itself as: Open agent skills and tool schemas for Superior Trade — build, backtest, and deploy trading strategies on Hyperliquid. The licence is MIT.

When your agent uses it

  • 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

Example prompts

  • “/donchian-strong-regime”

Requirements

  • Python 3

What it can do on your machine

Read from SKILL.md and the folder at commit 9d41db5. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md (its code samples are python and json).

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Donchian Strong Regime loads about 1.8k tokens when it runs. Until then it costs about 91 tokens; SKILL.md has 559 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~91
When it runs · the whole SKILL.md, loaded when a task matches
~1.8k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from Superior-Trade/superior-skills at commit 9d41db5, republished under its MIT licence (© Superior-Trade). 559 words, ~1,811 tokens.

Download SKILL.mdSave it as .claude/skills/donchian-strong-regime/SKILL.md (or your agent's skills folder).
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
metadata.updated
2026-05-18

Donchian Strong-Regime Short

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.

Backtest evidence

WindowTradesWin rateProfitMax DD
Full period (162d)6100%+6.69%0%
First-half / strong bear (82d)6100%+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.

Thesis

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.

Mechanics

  • Pair: validated on BTC/USDC:USDC; expected to behave similarly on other deeply-liquid majors during their own confirmed bear regimes
  • Timeframe: 4h (entry signal); 4h trend indicators (regime gate)
  • Regime gate (ALL three required):
    • EMA50 / EMA200 - 1 < -0.06 (≥6% separation = deep structural downtrend, not a fresh cross)
    • ADX(14) > 25 (trend strength confirmed)
    • close.pct_change(30) < -0.10 (last 30 bars = ~5 days, actual downside momentum)
  • Entry (short): close < lowest_24_bar_low AND regime gate satisfied
  • Exit (any of):
    • close > highest_6_bar_high (24h ceiling break — local reversal)
    • 2 consecutive bars with RSI > 55 (sustained rebound)
    • Trailing stop fires (Phase 2 — see the dsl-exit-engine skill)
  • Stops: Phase 1 hard stop at -5%; Phase 2 trailing activates at +3%, trails 2% behind peak

Full strategy code

python
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

Reference config

json
{
  "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"}]
}

Honest framing

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.

Show full SKILL.md (207 more words)Show less

Tunables

ParameterRangeEffect
Regime EMA separation-0.04 to -0.08Looser = more trades, more chop noise; tighter = fewer, cleaner
Regime ADX threshold20 - 30Higher = more selective trend confirmation
Regime return lookback20 - 40 barsWindow for "actual momentum" check
Donchian lookback (low)18 - 36Length of structural floor
Exit lookback (high)4 - 8Tighter exit = faster wins, more giveback
Trail activate0.02 - 0.04Where Phase 2 kicks in
Trail offset0.015 - 0.025Tightness once activated

Known failure modes

  • Fresh bear regimes that haven't yet triggered the 30-bar return < -10% threshold: strategy waits until momentum is established, missing the first leg
  • Whipsaw within a strong bear: a sharp counter-rally past the 6-bar high exits the trade right before the resumption. This is the price of having tight exits
  • Alts with low liquidity: Donchian lows can be set by a single liquidation wick; restrict to majors

Pairing

  • Designed to coexist with the bollinger-reverter-4h skill (the chop-regime sibling)
  • Uses the triple-gate pattern from the regime-overlay skill
  • Uses the Phase 2 trailing stop from the dsl-exit-engine skill

Deployment recommendation

Run as its own sub-account so the regime gate's "trade nothing for weeks" behavior doesn't fight a mean-reversion strategy in the same wallet. See your Superior Trade account setup for sub-accounts.

© Superior-Trade, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in skills/donchian-strong-regime of Superior-Trade/superior-skills.

Open the folder on GitHubat commit 9d41db5

Compare with similar skills

Donchian Strong Regime next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Donchian Strong Regime compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Donchian Strong Regime this skillSuperior-Trade/superior-skills215—~1.8kAutomated safety check: PassMIT
Polymarket TradingBlockRunAI/ClawRouter6.6k—~1.4kAutomated safety check: PassMIT
Solana Payments Wallets Tradingnpc-live/clawfirm1561 repos~4.7kAutomated safety check: PassMIT
Nansen Tradingnansen-ai/nansen-cli139—~3.3kAutomated safety check: NotesMIT
Shipp Sports Datamoonpay/skills113—~1.4kAutomated safety check: PassMIT
Aomi Transactjeremylongshore/tons-of-skills-marketplace2.8k—~2.3kAutomated safety check: PassMIT

Similar skills

  • Polymarket Trading

    BlockRunAI/ClawRouter

    A skill your agent uses when the user wants to actually PLACE, manage, or redeem bets on Polymarket (not just read odds — that's the blockrunpredexon data tools).

    6.6k GitHub stars~1.4k tokensUpdated 6 days ago
    Business, Finance & HRAuto-check passed
  • Pay people in SOL or USDC, buy and sell tokens, check prices, discover trending and new tokens, create and manage Solana wallets, stake SOL, earn yield through lending and managed vaults, borrow…

    156 GitHub starsUsed in 1 repo~4.7k tokens
    Business, Finance & HRAuto-check passed
  • Nansen Trading

    nansen-ai/nansen-cli

    Execute DEX swaps on Solana or Base (including cross-chain bridges) and Hyperliquid perpetual trades.

    139 GitHub stars~3.3k tokensUpdated 2 days ago
    Business, Finance & HRAuto-check: notes
  • Shipp Sports Data

    moonpay/skills

    Real-time sports & events data for AI agents via Shipp. An agent skill from moonpay/skills.

    113 GitHub stars~1.4k tokensUpdated 1 mo ago
    Business, Finance & HRAuto-check passed
  • Aomi Transact

    jeremylongshore/tons-of-skills-marketplace

    Build natural-language crypto agents, web3 assistants, and trading bots that read and write EVM chain state.

    2.8k GitHub stars~2.3k tokensUpdated yesterday
    Business, Finance & HRAuto-check passed
  • Aero Stock Lp

    BankrBot/skills

    LP tokenized stocks onchain — range-LP Coinbase tokenized equities (NVDA, AAPL, GOOGL, META) and AERO/USDC on Aerodrome Slipstream (Base) for trading-fee + AERO emission yield.

    1.2k GitHub stars~5.8k tokensUpdated yesterday
    Business, Finance & HRAuto-check passed

More from Superior-Trade/superior-skills

All 31 skills in this repo
  • Superior Trade Auth

    Superior-Trade/superior-skills

    A skill your agent uses when an agent needs to register a Superior Trade account, verify an email OTP, configure x-api-key authentication, or recover from missing or invalid credentials before using…

    215 GitHub stars~950 tokensUpdated 1 mo ago
    Auto-check passed
  • Deposit Qr

    Superior-Trade/superior-skills

    A skill your agent uses when a user needs a QR code or wallet payment URI to fund a Superior-managed EVM wallet on a specific chain before using Lighter, Polymarket, Hyperliquid, or other Superior…

    215 GitHub stars~1.1k tokensUpdated 1 mo ago
    Auto-check passed
  • External Deposit

    Superior-Trade/superior-skills

    A skill your agent uses when a user wants to fund or bridge from an external wallet through a third-party UI such as Relay, especially when asking for MetaMask Mobile QR codes, bridge links…

    215 GitHub stars~1.7k tokensUpdated 1 mo ago
    Auto-check passed
  • Aerodrome

    Superior-Trade/superior-skills

    A skill your agent uses when creating, validating, backtesting, deploying, sizing, or troubleshooting Aerodrome/Base spot trading strategies through the Superior Trade API, especially Freqtrade…

    215 GitHub stars~2.3k tokensUpdated 1 mo ago
    Auto-check passed
  • Polymarket

    Superior-Trade/superior-skills

    A skill your agent uses when the user wants to trade, research, or backtest Polymarket prediction markets through Superior Trade — finding markets by slug or event URL, placing a single immediate…

    215 GitHub stars~4.2k tokensUpdated 1 mo ago
    Auto-check passed
  • Backtesting

    Superior-Trade/superior-skills

    A skill your agent uses when running, interpreting, or designing backtests on Superior Trade — anything about backtest windows, trade-count thresholds, exit-reason mix, parameter sweeps…

    215 GitHub stars~2.9k tokensUpdated 1 mo ago
    Auto-check passed

Works with

Questions about Donchian Strong Regime

What does Donchian Strong Regime do?

A skill your agent uses 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…. Donchian Strong Regime is an agent skill from Superior-Trade/superior-skills. 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.

When should I use Donchian Strong Regime?

Donchian Strong Regime fits situations like: 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.

How do I install Donchian Strong Regime in Claude Code?

Run `npx skills add Superior-Trade/superior-skills --skill donchian-strong-regime -a claude-code`. Or copy the skill folder (skills/donchian-strong-regime in Superior-Trade/superior-skills) into .claude/skills/donchian-strong-regime in your project. Claude Code loads it when a task matches its description.

How do I install Donchian Strong Regime in Codex?

Run `npx skills add Superior-Trade/superior-skills --skill donchian-strong-regime -a codex`. Or copy the skill folder (skills/donchian-strong-regime in Superior-Trade/superior-skills) into .agents/skills/donchian-strong-regime in your project. Codex loads it when a task matches its description.

Can I use Donchian Strong Regime in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add Superior-Trade/superior-skills --skill donchian-strong-regime -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/donchian-strong-regime, .gemini/skills/donchian-strong-regime, .github/skills/donchian-strong-regime and .opencode/skills/donchian-strong-regime in your project.

What does Donchian Strong Regime need to run?

SKILL.md names no scripts, command-line tools or credentials: Donchian Strong Regime is instructions for the agent only. Our summary lists: Python 3.

Does Donchian Strong Regime access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Donchian Strong Regime safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Donchian Strong Regime use?

Donchian Strong Regime is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Donchian Strong Regime use?

About 1.8k tokens (SKILL.md is roughly 7.2k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Donchian Strong Regime?

Skills that share tags, products or a category with Donchian Strong Regime: Polymarket Trading (BlockRunAI/ClawRouter, 6.6k stars), Solana Payments Wallets Trading (npc-live/clawfirm, 156 stars), Nansen Trading (nansen-ai/nansen-cli, 139 stars) and Shipp Sports Data (moonpay/skills, 113 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Donchian Strong Regime?

Superior-Trade (a GitHub organization) maintains it in Superior-Trade/superior-skills, which has 215 GitHub stars. The repository holds 31 skills in this directory. The repository was last updated on September 10, 2026.

Source: Superior-Trade/superior-skills on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.