bb-scalper

bb-scalper is a skill for Claude Code from aAAaqwq/AGI-Super-Team. It costs 159 tokens per session (4,318 once invoked), scanned A, original, MIT.

A cryptocurrency futures trading strategy based on Bollinger Bands, which are price-range lines used to identify sideways markets. It includes paper trading, historical backtesting, and a command-line mode for Binance perpetual contracts with 10x leverage.

In plain words
What is it for?
Use it to backtest the strategy, run simulated trades, or execute it on Binance perpetual contracts after applying its trend, RSI, and band filters.
Why use it?
It provides a repeatable way to test and run a range-trading approach instead of relying only on manual decisions. Leveraged trading can cause substantial losses.

Skill for Claude Code

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

Part of the agi-super-team plugin — 194 skills, 1 agent shipped together

Good fit Use it to backtest the strategy, run simulated trades, or execute it on Binance perpetual contracts after applying its trend, RSI, and band filters.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/aaaaqwq/agi-super-team/bb-scalper
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 aAAaqwq/AGI-Super-Team --skill bb-scalper
Clone the repo
git clone --depth 1 https://github.com/aAAaqwq/AGI-Super-Team

Made for: Claude Code.

Or install agi-super-team, the plugin that ships this one along with the rest of its 194 skills, 1 agent.

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 bb-scalper

README.md
[![agentmods](https://agentmods.dev/badge/skills/aaaaqwq/agi-super-team/bb-scalper/github.svg)](https://agentmods.dev/skills/aaaaqwq/agi-super-team/bb-scalper)
Your own site
<a href="https://agentmods.dev/skills/aaaaqwq/agi-super-team/bb-scalper"><img src="https://agentmods.dev/badge/skills/aaaaqwq/agi-super-team/bb-scalper/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 bb-scalper

Your own site · 80×15
<a href="https://agentmods.dev/skills/aaaaqwq/agi-super-team/bb-scalper"><img src="https://agentmods.dev/badge/skills/aaaaqwq/agi-super-team/bb-scalper.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 159 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 4,318 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.00159 $0.04318
Opus 5 $0.00079 $0.02159
Sonnet 5 $0.00032 $0.00864
Haiku 4.5 $0.00016 $0.00432

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

Security

Grade A, and why

bb-scalper 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 5d ago.

The scan reads SKILL.md. This mod also ships 19 executable files (cli/__init__.py, cli/backtest_daily.py, cli/kline_fetch.py, …), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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/bb-scalper/SKILL.md · 309 lines

How it starts

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

🎯 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 ❌ 崩溃行情

四、动态宽度适配(🎯 进阶)

当前固定甜区 0.8-2.5%。但能否根据 BB 宽度动态调整而非一刀切?

分析

BB宽度 1%:  10x 杠杆 → 轨对轨 10% 收益 | 止损 1.5% | RR 6.7:1
BB宽度 2%:  10x 杠杆 → 轨对轨 20% 收益 | 止损 2.3% | RR 8.7:1
BB宽度 3%:  10x 杠杆 → 轨对轨 30% 收益 | 止损 3.2% | RR 9.4:1

Read the full file on GitHub · 309 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. 5d ago First seen · 309 lines · 159 tokens per session scan A c00861690be4

Subscribe to this mod's changes

bb-scalper is a skill published in the GitHub repository aAAaqwq/AGI-Super-Team (91 stars, last pushed yesterday), licensed MIT. It adds 159 tokens to every session and 4,318 once invoked, about $0.0008 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-09-05.

Related

Other skills, from other repositories