Skip to main content

Strategy Finder — Backtest at Scale

TL;DR

Strategy Finder is a Chrome extension that drives TradingView's built-in Strategy Tester automatically. You point it at the inputs you want to optimize, define ranges, choose a search mode (exhaustive Sequential or heuristic Smart), and it iterates through combinations and ranks them by net profit, win rate, or profit factor — with a drawdown filter so you don't end up backtest-overfit. Available with any TVH subscription, or lifetime free by linking a fresh Bybit account.

Strategy Finder — full walkthrough

What it does

The extension automates the parameter-sweep workflow that TradingView users normally do by hand: changing one input, clicking Generate Report, writing down the numbers, changing the next input, and so on. Strategy Finder runs that loop for you, at scale, and records every result.

  1. You attach a Pine strategy to a chart.
  2. You tell Strategy Finder which inputs to vary and over what ranges.
  3. It iterates through combinations through TradingView's Strategy Tester.
  4. It logs the key metrics for every combination into a sortable table.
  5. You sort by the metric that matters to you, optionally filter by drawdown, and one-click load the best settings back into the strategy.

Metrics tracked per run

MetricWhat it isWhy it matters
Net profitTotal currency P&L across the test windowHeadline number — but trivially gameable by long-only on a bull market
Percent profitableWin rateWatch for win rates so high they imply lookahead bias
Profit factorGross profits / gross lossesRatio above 1.5 is generally good; below 1.0 is a losing system
Max drawdownLargest peak-to-trough equity dropThe single most important risk metric — filter on this first
Total tradesNumber of trades closedSample size; below 30-50 trades the results are statistically noisy

Features at a glance

FeatureDescription
Search criterionOptimize for net profit, win rate, or profit factor
Drawdown filterExclude combinations whose max drawdown exceeds your threshold
Wait functionConfigurable delay between backtests to stay friendly to TradingView's UI
Sequential ModeExhaustive grid — tests every combination
Smart ModeHeuristic sweep — finds good combinations quickly on large grids
CSV exportDump every result row for spreadsheet analysis
Save / Load configsReuse a search setup across symbols and timeframes
One-click jumpClick any row to apply its parameters back to the strategy

Installation

  1. Open Chrome (or any Chromium browser).
  2. Visit the Chrome Web Store listing.
  3. Click Add to Chrome and confirm permissions.
  4. Pin the extension to the toolbar.

Activation

PathWhat you needCost
Paid TVH subscriptionAny active TVH planBundled
Bybit Free TierFresh Bybit account via TVH referral, KYC, deposit, link API keyFree for life

The Free Tier flow is documented in detail on the Free Tier page.

How to use it the first time

  1. Open a TradingView chart.
  2. Apply the Pine strategy you want to optimize (it must be a strategy() script, not a study() / indicator()).
  3. Make sure the Strategy Tester pane is visible at the bottom.
  4. Click the Strategy Finder extension icon — its side panel opens.
  5. The panel reads the strategy's inputs and lets you choose which ones to vary, with min / max / step for each.
  6. Pick your search criterion (e.g. net profit) and drawdown filter (e.g. ≤ 20%).
  7. Click Start — the extension iterates through combinations, logging each run.

Results stream into a sortable table inside the panel. You can sort by any metric column, filter rows, and click a row to push those settings back into the Pine strategy.

Choosing between Sequential and Smart

ModeHow it worksUse when
SequentialTests every combination in the parameter gridSmall grid (under a few thousand combinations), or you need a guaranteed global optimum
SmartIteratively optimizes one input at a time, keeping the best value, then moves on; repeats for N roundsLarge grid (10k+ combinations), or you want a fast first pass

A worked example and the exact algorithm of Smart Mode are on the Search Modes page.

Reading the results

The result table lists one row per combination. You can:

  • Sort by any column — net profit, drawdown, profit factor, win rate, trade count.
  • Filter by drawdown threshold (also enforced during the run if you set the drawdown filter upfront).
  • One-click apply any row's parameters back to the strategy on the chart.
  • CSV export — download every row for analysis in Excel, Google Sheets, or pandas.

Combining with TVH automation

Strategy Finder doesn't trade. It surfaces the best parameters; live execution still goes through TVH's webhook pipeline.

The end-to-end workflow:

  1. Use Strategy Finder to discover good parameters for a Pine strategy.
  2. Hard-code those values into your Pine inputs (or keep them as defaults).
  3. Add a strategy.order alert that emits JSON via the {{strategy.order.alert_message}} placeholder.
  4. Build the JSON payload in the Trade Command Builder and paste it into the Pine alert_message argument.
  5. Create the TradingView alert and point it at your TVH webhook URL.
  6. Track live performance in the TVH dashboard.

See Strategy Alerts for the Pine-side wiring.