Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Use when writing a symmetric Bollinger-band mean-reversion strategy on the 4h timeframe — anything described as BB reverter, range trader, chop strategy, ADX-gated mean reversion, band-fade with ROI ladder. Long-or-short on 2σ band touches with RSI confirmation, gated to ADX<25 range regimes. Validated +8.77%/65.5% win across BTC/ETH/SOL/DOGE over 162d; depends entirely on its minimal_roi ladder (2.5% → 1.5% → 0.5% → breakeven). Pairs with donchian-strong-regime for full-regime coverage.
.claude/skills/superior-trade-bollinger-reverter-4h/SKILL.md| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-01 | ✗→✓ | ▲ Improved | 1% | 0% |
| case-10 | ✗→✓ | ▲ Improved | 103% | 0% |
| case-12 | ✗→✓ | ▲ Improved | 281% | 0% |
| case-13 | ✗→✓ | ▲ Improved | 33% | 0% |
| case-14 | ✗→✓ | ▲ Improved | 39% | 0% |
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.
| 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.
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.
close > upper_band AND RSI > 65 AND ADX < 25close < lower_band AND RSI < 35 AND ADX < 25close < bb_midclose > bb_midpythonfrom 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
json{ "exchange": { "name": "hyperliquid", "pair_whitelist": ["BTC/USDC:USDC", "ETH/USDC:USDC", "SOL/USDC:USDC", "DOGE/USDC:USDC"] }, "stake_currency": "USDC", "stake_amount": 75, "dry_run_wallet": {"USDC": 350}, "timeframe": "4h", "max_open_trades": 4, "minimal_roi": {"0": 100.0}, "stoploss": -0.02, "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"}] }
Strategy-level minimal_roi overrides config-level — the ROI ladder is what makes this work.
The 100% second-half BTC win rate is partly small sample (8 trades). The full-period multi-pair result (+8.77%, 84 trades, 65.5% win) is the more credible expectation. Range-bound regimes are when this prints; in strong trends it modestly loses (-1.75% on BTC during the first-half strong bear) because band touches keep continuing rather than reverting.
In any window with mixed regimes, the strategy should be net positive because the chop periods dominate by count.
The DOGE result (-0.65%) is the failure case — meme-coin volatility breaks more bands than reverts to them. Use this strategy on majors, not meme pairs.
| Parameter | Range | Effect | |---|---|---| | BB period | 18 - 24 | Length of mean-reversion window | | BB σ | 1.8 - 2.5 | Wider = rarer signals, deeper reversion | | RSI confirmation | 60-70 / 30-40 | Confirms exhaustion at band edge | | ADX cutoff | 20 - 30 | Below = range regime; above = trend (skip) | | ROI tier 0 | 0.020 - 0.030 | Initial take-profit | | Stop | -0.015 to -0.025 | Tight enough that one trend break doesn't erase the lifetime edge |
donchian-strong-regime — they fire on mutually exclusive regimes (ADX < 25 here, regime-strong gate there)mean-reversionRun as its own sub-account with stake_amount sized so 4× max_open_trades fits within the wallet plus 1.5× buffer. Multi-pair allocation across BTC/ETH/SOL is the validated default.
| Case | Status | Duration (ms) | Turns | Tokens | Tool calls | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Without | With | Δ | Without | With | Δ | Without | With | Δ | Without | With | Δ | ||
case-01 | fail→pass | 23,000 | 11,158 | -51% | 1 | 1 | 0% | 4,633 | 4,659 | +1% | 0 | 0 | — |
case-02 | fail→fail | 21,570 | 14,852 | -31% | 1 | 1 | 0% | 3,477 | 5,176 | +49% | 0 | 0 | — |
case-08 | pass→pass | 13,555 | 12,014 | -11% | 1 | 1 | 0% | 2,508 | 4,247 | +69% | 0 | 0 | — |
case-03 | pass→pass | 27,143 | 14,517 | -47% | 1 | 1 | 0% | 5,998 | 5,639 | -6% | 0 | 0 | — |
case-04 | pass→pass | 17,786 | 16,008 | -10% | 1 | 1 | 0% | 3,207 | 5,368 | +67% | 0 | 0 | — |
case-05 | pass→pass | 17,292 | 33,260 | +92% | 1 | 1 | 0% | 3,049 | 7,925 | +160% | 0 | 0 | — |
case-06 | pass→pass | 26,664 | 25,902 | -3% | 1 | 1 | 0% | 5,809 | 7,756 | +34% | 0 | 0 | — |
case-07 | pass→pass | 13,925 | 16,870 | +21% | 1 | 1 | 0% | 2,357 | 5,146 | +118% | 0 | 0 | — |
case-09 | fail→fail | 22,847 | 16,580 | -27% | 1 | 1 | 0% | 3,218 | 5,307 | +65% | 0 | 0 | — |
case-10 | fail→pass | 8,417 | 5,995 | -29% | 1 | 1 | 0% | 1,738 | 3,530 | +103% | 0 | 0 | — |
case-11 | pass→pass | 14,269 | 10,318 | -28% | 1 | 1 | 0% | 2,445 | 3,982 | +63% | 0 | 0 | — |
case-12 | fail→pass | 12,988 | 3,773 | -71% | 1 | 1 | 0% | 773 | 2,946 | +281% | 0 | 0 | — |
case-13 | fail→pass | 13,772 | 2,793 | -80% | 1 | 1 | 0% | 2,144 | 2,843 | +33% | 0 | 0 | — |
case-14 | fail→pass | 18,465 | 12,445 | -33% | 1 | 1 | 0% | 3,094 | 4,297 | +39% | 0 | 0 | — |
case-15 | pass→pass | 13,744 | 3,732 | -73% | 1 | 1 | 0% | 2,369 | 2,865 | +21% | 0 | 0 | — |
case-16 | pass→pass | 6,002 | 3,049 | -49% | 1 | 1 | 0% | 1,043 | 2,805 | +169% | 0 | 0 | — |
case-17 | fail→pass | 10,388 | 2,629 | -75% | 1 | 1 | 0% | 1,753 | 2,640 | +51% | 0 | 0 | — |
case-18 | fail→pass | 15,816 | 3,533 | -78% | 1 | 1 | 0% | 2,724 | 2,888 | +6% | 0 | 0 | — |
case-19 | fail→pass | 9,619 | 5,934 | -38% | 1 | 1 | 0% | 1,613 | 3,105 | +92% | 0 | 0 | — |
case-20 | fail→pass | 19,963 | 3,429 | -83% | 1 | 1 | 0% | 2,792 | 2,691 | -4% | 0 | 0 | — |
case-21 | pass→pass | 7,752 | 3,490 | -55% | 1 | 1 | 0% | 1,403 | 2,933 | +109% | 0 | 0 | — |
case-22 | pass→pass | 10,090 | 7,688 | -24% | 1 | 1 | 0% | 1,915 | 3,346 | +75% | 0 | 0 | — |
case-23 | pass→fail | 13,691 | 16,475 | +20% | 1 | 1 | 0% | 2,187 | 4,668 | +113% | 0 | 0 | — |
DecimalAI ran this skill against gemini-3.6-flash twice over the same eval suite — once with the skill loaded and once without — and compared the two runs case by case. 23 cases were attempted, and 22 counted toward the lift figure. The other 1 produced results that are not comparable between the two arms, so they are excluded from the headline rather than averaged into it. The headline lift of +35 percentage points is the difference between those two pass rates over the 22 comparable cases. 1 case got worse with the skill loaded, and it is included in that figure.
Without the skill loaded, the model failed this case. With it loaded, the same prompt on the same model passed. This is one improved case from the latest verified run; every case, including any that regressed, is in the table above.
Other measured skills in the registry, with their headline benchmark lift.