bollinger-reverter-4h

bollinger-reverter-4h is a skill for Claude Code from Superior-Trade/superior-skills. It costs 91 tokens per session (2,122 once invoked), scanned A, original, MIT.

A four-hour crypto trading strategy that buys or sells when price reaches a Bollinger Band, then looks for a move back toward the middle band. It uses RSI and ADX, indicators that help confirm momentum and whether the market is moving sideways.

In plain words
What is it for?
Use it to write or test a symmetric mean-reversion strategy for BTC, ETH, SOL, or DOGE on four-hour data. It supports research into band-touch entries, RSI confirmation, and ADX-based filtering of sideways markets.
Why use it?
It gives a defined way to trade range-bound markets, where prices move up and down without a clear trend. The strategy is designed to avoid relying on guesswork about when price may return toward the middle of the range.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the superior-skills plugin — 31 skills shipped together

Good fit Use it to write or test a symmetric mean-reversion strategy for BTC, ETH, SOL, or DOGE on four-hour data. It supports research into band-touch entries, RSI confirmation, and ADX-based filtering of sideways markets.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/superior-trade/superior-skills/bollinger-reverter-4h
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add Superior-Trade/superior-skills --skill bollinger-reverter-4h
Clone the repo
git clone --depth 1 https://github.com/Superior-Trade/superior-skills

Made for: Claude Code.

Or install superior-skills, the plugin that ships this one along with the rest of its 31 skills.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for bollinger-reverter-4h

README.md
[![agentmods](https://agentmods.dev/badge/skills/superior-trade/superior-skills/bollinger-reverter-4h/github.svg)](https://agentmods.dev/skills/superior-trade/superior-skills/bollinger-reverter-4h)
Your own site
<a href="https://agentmods.dev/skills/superior-trade/superior-skills/bollinger-reverter-4h"><img src="https://agentmods.dev/badge/skills/superior-trade/superior-skills/bollinger-reverter-4h/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for bollinger-reverter-4h

Your own site · 80×15
<a href="https://agentmods.dev/skills/superior-trade/superior-skills/bollinger-reverter-4h"><img src="https://agentmods.dev/badge/skills/superior-trade/superior-skills/bollinger-reverter-4h.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 91 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,122 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00091 $0.02122
Opus 5 $0.00046 $0.01061
Sonnet 5 $0.00018 $0.00424
Haiku 4.5 $0.00009 $0.00212

Measured 12d ago against content hash fb12724b3c53, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade A, and why

bollinger-reverter-4h scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 12d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/bollinger-reverter-4h/SKILL.md · 171 lines

How it starts

The opening of the file, as written. The whole thing — 171 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Bollinger Reverter 4h

Symmetric mean-reversion strategy on the 4h timeframe. Long-or-short on band touches, gated to range regimes via ADX. Validated across BTC/ETH/SOL/DOGE over 162 days.

Searchable under: mean reversion, bollinger band, range trader, chop strategy, ADX filter.

Backtest evidence

Config Trades Win rate Profit Max DD
BTC/USDC:USDC, 162d 18 72.2% +8.14% 10%
BTC/USDC:USDC, second-half / chop (80d) 8 100% +9.88% 0%
BTC/USDC:USDC, first-half / strong bear (82d) 10 50% -1.75% 10%
Multi-pair (BTC/ETH/SOL/DOGE), 162d 84 65.5% +8.77% 18.5%

Per-pair breakdown (multi-pair 162d):

Pair Trades Win Profit
BTC/USDC:USDC 29 72% +3.76%
ETH/USDC:USDC 19 74% +4.39%
SOL/USDC:USDC 15 60% +1.27%
DOGE/USDC:USDC 21 52% -0.65%

3 of 4 majors profitable, DOGE marginally negative. Generalizes well; not BTC-specific.

Thesis

When the market is range-bound (ADX < 25), price touching the upper or lower Bollinger Band is statistically likely to revert to the midline. Tight ROI ladder takes profit fast since mean-reversion targets are small; tight stop prevents the position from holding if the band touch turns into a trend break.

Mechanics

  • Pair: validated on majors; extend to any pair with sustained 24h volume > $50M
  • Timeframe: 4h
  • Indicators: 20-bar Bollinger Bands (2σ), RSI(14), ADX(14)
  • Entry short: close > upper_band AND RSI > 65 AND ADX < 25
  • Entry long: close < lower_band AND RSI < 35 AND ADX < 25
  • Exit short: close < bb_mid
  • Exit long: close > bb_mid
  • Stops: -2% hard stop
  • ROI ladder: 2.5% immediate, 1.5% after 4h, 0.5% after 12h, breakeven after 24h
  • No trailing stop (mean reversion targets are short — let ROI or signal-exit fire)

Full strategy code

from freqtrade.strategy import IStrategy
import pandas as pd
import talib.abstract as ta


class BollingerReverter4hStrategy(IStrategy):
    INTERFACE_VERSION = 3
    timeframe = "4h"
    can_short = True

    stoploss = -0.02
    trailing_stop = False

    minimal_roi = {
        "0": 0.025,    # take 2.5% immediately
        "240": 0.015,  # 1.5% after 4 hours (1 bar)
        "720": 0.005,  # 0.5% after 12 hours (3 bars)
        "1440": 0,     # breakeven after 24 hours
    }

    process_only_new_candles = True
    startup_candle_count = 60
    use_exit_signal = True

    def populate_indicators(self, dataframe: pd.DataFrame, metadata: dict) -> pd.DataFrame:
        bb = ta.BBANDS(dataframe, timeperiod=20, nbdevup=2.0, nbdevdn=2.0)
        dataframe["bb_upper"] = bb["upperband"]
        dataframe["bb_mid"] = bb["middleband"]
        dataframe["bb_lower"] = bb["lowerband"]

        dataframe["rsi"] = ta.RSI(dataframe, timeperiod=14)
        dataframe["adx"] = ta.ADX(dataframe, timeperiod=14)
        return dataframe

    def populate_entry_trend(self, dataframe: pd.DataFrame, metadata: dict) -> pd.DataFrame:
        cond_short = (
            (dataframe["close"] > dataframe["bb_upper"])
            & (dataframe["rsi"] > 65)
            & (dataframe["adx"] < 25)
        )
        dataframe.loc[cond_short, "enter_short"] = 1
        dataframe.loc[cond_short, "enter_tag"] = "bb_upper_revert"

        cond_long = (
            (dataframe["close"] < dataframe["bb_lower"])
            & (dataframe["rsi"] < 35)
            & (dataframe["adx"] < 25)
        )
        dataframe.loc[cond_long, "enter_long"] = 1
        dataframe.loc[cond_long, "enter_tag"] = "bb_lower_revert"
        return dataframe

    def populate_exit_trend(self, dataframe: pd.DataFrame, metadata: dict) -> pd.DataFrame:
        dataframe.loc[dataframe["close"] < dataframe["bb_mid"], "exit_short"] = 1
        dataframe.loc[dataframe["close"] > dataframe["bb_mid"], "exit_long"] = 1
        return dataframe

Read the full file on GitHub · 171 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 12d ago First seen · 171 lines · 91 tokens per session scan A fb12724b3c53

Subscribe to this mod's changes

bollinger-reverter-4h is a skill published in the GitHub repository Superior-Trade/superior-skills (209 stars, last pushed 2d ago), licensed MIT. It adds 91 tokens to every session and 2,122 once invoked, about $0.0005 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.