B28 Trading Lab

Backtest strategy code in your browser. No install, no MT4 needed.
Free for B28 Signals members.

Join B28 Signals on Telegram

Instant access for now — automatic membership verification is coming.
Members’ perk #1 — more coming.

πŸ§ͺ B28 Trading Lab
Members’ perk #1

One-button profitability check

Write strategy code, pick a symbol and dates, hit run. This is the web-based strategy lab — it backtests simple rule-based ideas on daily bars. It is not MT4 and it doesn’t do everything MT4 does.

The champion won our 2026-09-22 bake-off: 27 strategies tested on 5 years of daily XAUUSD/EURUSD/GBPUSD. 10-day breakout, 2×ATR stop, 6×ATR target. Profitable on all three symbols; beat the grid-martingale archetype on every one. Past data is not a promise.

Engine assumptions (read before trusting any number):
  • Daily bars only. Your onBar runs once per bar, after the close.
  • One position at a time. buy/sell while a position is open are ignored.
  • Fixed 0.01 lot, $1,000 starting balance, no compounding.
  • Orders fill at the bar’s close. Stops/targets are checked from the next bar; if a bar hits both stop and target, the stop is assumed hit first (conservative).
  • Spread cost per round trip: XAUUSD 35 points, EURUSD 20 points, GBPUSD 25 points. Uploaded symbols: 20 points.
  • No slippage modeling. Past performance says nothing about the future.
Lab API:
  • onBar(bar, i, ctx) — bar = {date, open, high, low, close}, i = bar index.
  • ctx.buy(price, sl, tp) / ctx.sell(price, sl, tp) — price optional (defaults to close).
  • ctx.closeAll() — exits at this bar’s close. ctx.position — null or {type, entry, sl, tp}.
  • Indicators (offset 0 = this bar, 1 = last bar): ctx.ema(p, off), ctx.sma(p, off), ctx.rsi(p, off), ctx.atr(p, off), ctx.macd(f, s, sig, off) β†’ {macd, signal, hist}, ctx.stoch(k, d, off) β†’ {k, d}, ctx.highestHigh(p, off), ctx.lowestLow(p, off).

Make the code better with AI

Paste EA or strategy code (MQL4 or JavaScript). The AI will fix bugs, add risk management, and guard against overfitting.

Strategy ideas

Stuck? Generate a strategy concept, then load a matching starter template straight into the backtester.

Automation queue

More lab tools are being built. Members get them first, free.

In the lab queue

πŸ“ Risk calculator

Position size from your stop distance and risk % — before you enter, not after.

In the lab queue

πŸ“€ Signal-to-EA exporter

Turn a B28 signal into starter EA code you can paste into MetaTrader.

In the lab queue

πŸ—Ί Session volatility map

See when your symbol actually moves — London, New York, Asia.

Go Pro

⚑ B28.Signals Pro — $28/mo

Live signals with entry, take-profit and stop-loss, the second they fire.

Go Pro β†’