BNB Hack · Track 2 · Strategy Skills

In a bull market, every bot's a genius. Then the market turns.

We tested 30 ways to trade crypto with CoinMarketCap data. We kept the one that survived the crashes: a trend-following skill on the four major coins.

BTC ETH BNB SOL
CoinMarketCap Powered byCoinMarketCap
BNB Chain Built forBNB Chain
01 — The obvious ideas

We built the obvious strategies first. They failed.

With CoinMarketCap data, the obvious ideas are: predict the price, follow momentum, trade the Fear & Greed mood. We built all 30, in 7 groups — then tested each on new data it had never seen. Risk-adjusted score (Sharpe) by group:

Trend
2.21
Momentum
0.44
Volatility
0.43
Passive
0.18
Contrarian
0.01
Mean-rev
−0.38

Almost all of them broke on new data — Fear & Greed fell from 2.09 to 0.02, mean-reversion lost money. Only one idea kept working on data it had never seen: follow the trend. And running it on all four majors (BTC, ETH, BNB, SOL) beat any single coin — score up to 2.53. That's the strategy.

02 — The rule

Each major above its trend: hold it. Below: cash.

The whole rule is simple. Each coin has one line — its moving average. Price above the line? Hold the coin. Below? That part goes to stablecoins. Hold every coin that's trending, in equal parts. That's it.

A coin above its average
Hold it
A coin below its average
That slice → cash
Result, 2023–26 (100-day)
+1945% vs +254% from just holding the four — with far smaller drops
03 — The proof

Same four coins. The timing changes everything.

Same $1, 2023 to 2026. The strategy vs just holding the same four coins. Pick the window:

Moving avg
Backtest chart loads here.

$1 over time (log scale). Green = the strategy; grey = the same four coins, just held. Note: 2023–2026 was a bull market, so the returns look big — what matters is the smaller drops and the score on new data, not the headline number.

+1945%
Total return · 3.4 yrs
141.0%
Per year
−19.0%
Worst drop
2.66
Score · risk-adjusted
SettingReturn · 3.4yPer yearWorst dropScore · new data
Trend majors · 50-day+4101%198%−13%3.23
Trend majors · 100-day+1945%141%−19%2.53
Trend majors · 200-day+785%89%−20%1.64
Hold the 4 coins (no timing)+254%45%−61%0.09
04 — See it think

Live: which majors are trending?

Ask it now, with live CoinMarketCap data:

Right now all four are below their lines, in Extreme Fear. So: 100% stablecoins. It waits.

05 — Make it yours

Install in any Claude-skill host.

Copy the skill folder into your skills folder:

cp -r skills/trend-regime /path/to/your/skills/directory/

Then connect CoinMarketCap (free key at pro.coinmarketcap.com):

{
  "mcpServers": {
    "cmc-mcp": {
      "url": "https://mcp.coinmarketcap.com/mcp",
      "headers": { "X-CMC-MCP-API-KEY": "your-api-key" }
    }
  }
}

Then just ask: Which majors are trending right now?  or  /trend-regime

06 — It runs itself

Give it a wallet. It trades for you.

Not just an alert — an agent with its own wallet that makes the trades itself, no human needed. How to build it on BNB Chain:

01

Give it a wallet. Make a new key and add your money plus a little BNB for gas. Use only what you can risk. The private key stays in the agent's secret settings.

02

Run it once a day. Daily is enough — the rule uses a daily average, so checking more often changes nothing. Each run reads the four prices and their averages from CoinMarketCap, then decides the target mix in code.

03

Check what it holds. With viem it reads the wallet's balances — so it knows what it has versus what the rule wants.

04

It trades. For each coin that changed, it signs and sends a PancakeSwap trade with its own key. No alert, no human.

05

It's cheap. It only trades when a coin crosses its line — a few times a year. So gas is rare, and the daily check is basically free.

// daily cron — the agent's OWN key signs every swap, no human in the loop
const account = privateKeyToAccount(process.env.AGENT_PRIVATE_KEY);
const target  = decide(pricesAndMAs);               // the rule, in code
const held    = await readBalances(account);        // current on-chain holdings
for (const coin of ["BTC", "ETH", "BNB", "SOL"])
  if (target[coin] !== held[coin])                  // only on a flip
    await pancakeSwap(account, coin, target[coin]); // signs + sends the tx

Built on Vercel Cron + Functions, the CoinMarketCap MCP, and viem. A key holding real money is a real risk — test it without funds first, use a small separate wallet, set slippage limits, and a kill switch.

07 — Who built it

Built end-to-end with Claude Opus 4.8.

The 30-strategy test, the new-data check, the skill, this site, and the agent — all built with Claude Opus 4.8. Why it's the right model for this:

01

It codes and uses tools. It ran the backtests itself and connected CoinMarketCap — working with real numbers, not guesses.

02

It thinks long. It kept the whole research in mind — 30 strategies, old data vs new data — across a long build, without getting lost.

03

Honest, not hype. It insisted on testing with new data, warned about overfitting, and refused to use numbers it couldn't check. (It hides failures only ~3.7% of the time, per Anthropic.)

04

From idea to rule. It turned a vague "follow the trend" into a clear, exact, testable rule.

Claude does the research and the building. The strategy stays a simple rule in code. More on Claude Opus 4.8 →

Not financial advice — you bear your own risk

This is a research project built for a hackathon. It is not financial or trading advice, and not a recommendation to buy or sell anything. You alone are responsible for your decisions, your money, and your risk.

Trend-following is not risk-free. In choppy markets it gets whipsawed — it sells low and buys back high, losing a bit each time. It always misses the exact top and bottom. The backtest uses daily Binance data with costs; real slippage, gas, and timing will differ. And 2023–2026 was mostly a bull market, which makes any trend strategy look good — those returns will not repeat.

Testing on new data lowers the risk of overfitting, but doesn't remove it: we tried 30 strategies, and the more you try, the easier a lucky one slips through. We guard against this by requiring a whole group to work on new data — but no backtest can promise the future. Past results don't predict future results.

Do your own research. Only use money you can afford to lose.