Skip to content
Agentmart
Submit a tool

bb-scalper

BB 双向套利策略:加密合约 10x 杠杆布林带均值回归。布林带收窄=横盘→在下轨买、上轨卖;三重过滤器(1h趋势/RSI/BB甜区)确认碗平放,轨对轨止盈(RR 2:1~4:1)。含实时WebSocket模拟盘(paper)、历史回测(simulate/backtest_daily)、币安永续实盘CLI(trade…

Skill by aAAaqwq

IndexedMIT★ 111
Write a review

Chalk Labs

Need help deploying bb-scalper?

Chalk Labs sets up agents like this inside real teams: connected to your tools, tested on your data, with a human in the loop where it matters.

Book a call

Install

Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.

npx agentmarket install skill/aaaaqwq-bb-scalper

Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.

Get the weekly diff

The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.

We use your email only for this newsletter. Privacy

About

BB 双向套利策略:加密合约 10x 杠杆布林带均值回归。布林带收窄=横盘→在下轨买、上轨卖;三重过滤器(1h趋势/RSI/BB甜区)确认碗平放,轨对轨止盈(RR 2:1~4:1)。含实时WebSocket模拟盘(paper)、历史回测(simulate/backtest_daily)、币安永续实盘CLI(trade_exec)。触发:'bb套利'、'布林带'、'bollinger'、'横盘策略'、'NEAR'、'回测'、'模拟盘'、'paper trading'。

Use cases: research, finance

No reviews yet. Installed it? Reviews come from verified installers only. How reviews work

Permissions

What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.

Tools
No tools found
Secrets
None asked for
Install scripts
None found
Runs as
Python package

Network hosts it talks to 1

  • codeload.github.com · found in install command

Files it touches

  • ~/.claude/skills/bb-scalper

What's inside

Skill name
bb-scalper
Description
BB 双向套利策略:加密合约 10x 杠杆布林带均值回归。布林带收窄=横盘→在下轨买、上轨卖;三重过滤器(1h趋势/RSI/BB甜区)确认碗平放,轨对轨止盈(RR 2:1~4:1)。含实时WebSocket模拟盘(paper)、历史回测(simulate/backtest_daily)、币安永续实盘CLI(trade_exec)。触发:'bb套利'、'布林带'、'bollinger'、'横盘策略'、'NEAR'、'回测'、'模拟盘'、'paper trading'。
License
MIT
Instructions
304 lines in SKILL.md · view on GitHub

Before installing

  • Ships executable scripts

Files (25)

  • SKILL.md
  • __init__.py · cli/
  • backtest_daily.py · cli/
  • kline_fetch.py · cli/
  • paper.py · cli/
  • paper_testnet.py · cli/
  • simulate.py · cli/
  • test_trade_exec.py · cli/
  • testnet_exec.py · cli/
  • trade_exec.py · cli/
  • trade_log.py · cli/
  • config.yaml
  • __init__.py · core/
  • binance_client.py · core/
  • filters.py · core/
  • logger.py · core/
  • strategy.py · core/
  • test_binance_client.py · core/
  • backtest-records.md · docs/
  • paper-reviews.md · docs/
  • paper-trading-record.md · docs/
  • telegram-push-report.md · docs/
  • bb_report.py · scripts/
  • fix_testnet_exit_prices.py · scripts/
  • telegram_push.py · scripts/

SKILL.md (first lines)

# 🎯 BB 双向套利策略 — 完整策略文档

> **版本**: v2.0 三重过滤 | **更新**: 2026-08-11
> **定位**: 加密合约 10x 杠杆双向套利 Skill
> **适配币种**: USDT 永续合约(主流优先)

---

## 零、一句话说清楚

> **布林带收窄 = 横盘震荡 → 在下轨买、上轨卖;在上轨卖、下轨买。
>   不赌方向,只吃区间振荡的统计优势。**

---

## 一、策略直觉:硬币在碗里滚

想象一个碗——左边是下轨、右边是上轨。硬币在里面滚来滚去:

```
        上轨 ═══════════ 🔴 做空入场 ────
        │                                │
        │   价格在碗里来回弹                │
        │                                │
        下轨 ═══════════ 🟢 做多入场 ─────
```

**做多逻辑**:硬币滚到碗左边(%B < 0.15)→ 大概率弹回去 → 买入,等它滚到右边再卖

**做空逻辑**:硬币滚到碗右边(%B > 0.85)→ 大概率弹回去 → 卖出,等它滚到左边再买

但市场的碗会变形——有时变窄(没空间赚)、有时倾斜(趋势中不能做)。所以需要**三重过滤器**确认碗是稳定平的。

---

## 二、核心数学:为什么「轨对轨」是唯一解

### ❌ 错误方案:止盈放中轨(我们踩的第一个坑)

```
做多: 入场=下轨 → 止盈=中轨 → 收益=1σ
      止损=下轨下面 → 风险=1σ + 缓冲
      RR = 1σ / (1σ + 0.15%) < 1  ← 永远亏多赚少!
```

**扫了 20 个币,15 个在震荡,RR 没一个超过 1.1。** 数学死结,不是参数问题。

### ✅ 正确方案:轨对轨(解法一)

```
做多: 入场=下轨 → 止盈=上轨 → 收益=2σ
      止损=下轨外 0.15% → 风险 ≈ 1σ + 0.15%
      RR = 2σ / (1σ + 0.15%) ≈ 2:1 到 4:1 ✅
```

**一句话**:止盈必须放到对侧轨道——吃整个区间,而不是只吃到中轨。

---

## 三、三重过滤器(v2.0 核心)

### 🔴 过滤器一:趋势过滤

**检查**:1h K 线的布林带中轨斜率

```
做多: 1h 中轨不能明显下行(斜率 > -0.06%)
做空: 1h 中轨不能明显上行(斜率 < +0.06%)

斜率 < 0.03% = 走平 ✅ 最优
斜率 0.03%-0.06% = 弱趋势,顺方向可以做
斜率 > 0.06% = 明确趋势,禁止逆势
```

**为什么**:碗底在下陷 → 硬币碰到底不会弹 → 假突破扫止损。趋势过滤就是确认碗是平放的。

**实际效果**:刚才扫码,ETH/SOL/BTC/INJ 四个币做空信号全被「1h 中轨上行」拦下——这些恰好是 v1.0 里连续止损 6-8 根的元凶。

---

### 🟡 过滤器二:RSI 确认

**检查**:价格是否已经超买/超卖

```
做多: RSI < 55 才做(不在高位接盘)
       RSI 30-45 加分(超卖反弹概率大)

做空: RSI > 45 才做(不在低位砸盘)
       RSI 55-70 加分(超买回落概率大)
```

**直觉**:下轨 + RSI 70 = 趋势刚启动、还会继续跌,买就是接飞刀。

---

### 🟢 过滤器三:BB 甜区

**检查**:布林带宽度是否合适

```
< 0.8%:  太窄 → 10x 利润不够覆盖滑点+手续费 → 跳过
0.8-2.5%: 甜区 → 可以做
> 2.5%:  太宽 → 不是真横盘,是波动行情 → 跳过
```

**各币宽度速查**:

| 宽度 | 币种例子 | 判断 |
|------|---------|------|
| 0.71% | XRP | ❌ 太窄 |
| 0.87% | BTC | ⚠️ 刚够线 |
| 0.88% | AVAX | ✅ 甜区 |
| 1.13% | NEAR | ✅ 甜区中心 |
| 2.75% | ATOM | ❌ 太宽 |
| 47.5% | TUT | ❌ 崩溃行情 |

---

From aAAaqwq/AGI-Super-Team, MIT.

More from aAAaqwq/AGI-Super-Team

Signals

Stars
111
Forks
25
Open issues
1
Last commit (this folder)
Aug 14, 2026 (2 months ago)
Last release
Sep 20, 2026 (1 month ago)

From GitHub (fetched Oct 24, 2026).

Details

License
MIT
First seen
Oct 24, 2026
Last checked
Oct 24, 2026

Done for you

Rather not set it up yourself?

Chalk Labs scopes, builds and runs agents for your team: the task audit, the eval harness, the integrations and the weekly ops report. Fixed scope, priced before we start.

See how we build AI agents →Read the case studies

Chalk Labs is a two-founder AI and growth studio. We build AI agents, CRMs and MVPs for Web3 and AI companies, and have shipped 50+ product and token launches.

launches shipped
50+
launches shipped
media placements
500+
media placements
founders on every account
2
founders on every account

Press we've placed: Forbes · CoinDesk · Decrypt · Cointelegraph · The Block

Rahil Jain, Co-founder, Chalk Labs. Ex-Goldman Sachs engineer. You talk to the person who builds it.

Get bb-scalper running in your business

Tell us what you want to automate. A founder replies within one working day with a plan, not a pitch deck.

Goes to the Chalk Labs founders, not the newsletter. Privacy

Need help deploying bb-scalper?

CallGet help
Cite this page

bb-scalper skill. Agent Mart. https://agentmart.dev/skills/aaaaqwq-bb-scalper (last updated 2026-10-24)