Sonar is the AI layer of StochLab. It writes, validates and backtests indicators and strategies from plain English — for TradingView and MetaTrader 4/5 — and it never hands you code it can't prove compiles.
// Sonar Architect · validator passed · ready to deploy indicator("Session Momentum Shift", overlay=true) len = input.int(14, "Momentum length") ldn = not na(time(timeframe.period, "0800-1630", "Europe/London")) k = ta.stoch(close, high, low, len) drift = ta.ema(k, 5) - ta.ema(k, 21) shift = ta.crossover(drift, 0) and volume > ta.sma(volume, 20) and ldn barcolor(shift ? color.aqua : na)
Prompt in an idea; Architect returns a deployable indicator rendered live on-chart. Every build runs a full validation loop before you ever see it — Sonar never ships code it can't prove compiles.
Architect drafts the logic, suggests filters you didn't ask for, and pressure-tests the concept before a single line is written.
"Widen the stop." "Only trade the London session." Every revision re-runs the full compile-and-validate loop automatically.
Export the finished build to TradingView or MetaTrader 4/5 with inputs, styling and alert conditions already configured. It runs the moment it lands.
Same 100 prompts, same grader. General-purpose chat models hand back code that looks right; the validator loop is why Architect's builds actually run.
| Strategy | Win % | PF | Max DD | Fit |
|---|---|---|---|---|
| Liquidity Sweep Fade | 61.4 | 1.94 | -9.3% | 0.96 |
| Keltner Squeeze Break | 63.8 | 2.12 | -8.4% | 0.93 |
| Session Open Reversal | 58.1 | 1.87 | -11.2% | 0.91 |
| MTF Divergence Rider | 55.9 | 2.31 | -13.6% | 0.88 |
| Volume Shelf Retest | 64.2 | 1.72 | -7.8% | 0.85 |
Describe the kind of edge you want. Backtest's agent searches a pool of 12M+ backtested strategies and returns the ones that actually fit — ranked by concept match and risk-adjusted return, not popularity.
A browser extension that lives inside TradingView. It reads the symbol, timeframe and indicators on your screen and layers real-time market intelligence directly onto the chart.
Every Sonar export lands in a native TradingView backtester, auto-configured and ready to run. Results are computed out-of-sample on non-repainting logic — the number you see is the number you'd have traded. Need a second opinion? Every run exports to MT5 Strategy Tester.
Runs signal-and-overlay logic — entries, take-profits, trailing stops — through full-history simulation. Every trade is priced at the bar the signal fired, never after.
Tests price-action concepts — order-block reactions, sweep reversals, structure-shift entries — with out-of-sample splits enforced by default.
Quantifies oscillator confluence: divergence entries, exhaustion fades and momentum-wave exits, scored regime by regime.
No exports, no spreadsheets. P&L, win rate, drawdown and profit factor render directly on the chart, and the deep optimization engine keeps the settings honest as markets change.
Credits are Sonar's usage currency, shared across Architect and Backtest. Every build, revision and ranked search draws from the same monthly pool — and the pool resets on the 1st of every month.
A typical Architect build costs a handful of credits; a ranked Backtest search costs a few more. Sonar Live panels never consume credits.
Every plan includes Sonar credits, and every account starts with 25 free ones each month. Describe the edge — Sonar handles the rest.
30-day money-back guarantee · Cancel anytime · Credits reset on the 1st