Included with TickSurfers Pro

Strategy optimization that ranks runs the way you define

Test ranges of inputs, symbols, and timeframes in one run. Rank results by net profit, profit factor, drawdown, and more, or by your own JavaScript scoring rule, then apply the winner to the chart in one click.

A free account opens the chart and runs backtests. Optimization and walk-forward analysis require Pro.

Thousands of runs, one best result

2,400 runs tested
Best: +$4,820
Hundreds of optimization runs scattered by result Each dot is one backtest with different settings. Higher dots earned more. As runs accumulate, the best result so far is highlighted, and the final best is marked. Settings tried → Net profit ↑ Best settings

Illustrative animation with synthetic numbers. Each dot is one backtest with different settings. Real runs are ranked by the score you pick, and the best can be applied to the chart in one click.

How an optimization run works

Pick a strategy

Start from a built-in strategy or your own JavaScript strategy.

Choose what to vary

Set ranges for its inputs. Add symbols and timeframes to see whether settings generalize.

Choose how to rank

Rank runs by a built-in measure, or write your own scoring rule in JavaScript.

Run, sort, and apply

Sort the results table, then apply the best row to the chart in one click.

What you get

Grid search

Every combination of the ranges you set, in one run.

Symbols and timeframes

Vary them alongside inputs to see whether settings hold up elsewhere.

Built-in scoring

Net profit, profit factor, win rate, average win/loss ratio, lowest max drawdown, or total trades.

Your own scoring rule

A short JavaScript function that reads the run’s results and every trade.

Auto-optimization

Self-optimization per chart and per watchlist row, with the best settings stored per symbol.

Apply in one click

A sortable results table, with the best settings applied to the chart in one click.

Write your own scoring rule

Built-in scoring covers the common cases. If you care about something else, such as only trusting runs with enough trades, you can score each run yourself. Return a number, or null to throw a run out.

{
    label: 'Net profit, at least 30 trades',
    order: 'highest',
    compute: (strategy) => {
        if ((strategy.totalTrades ?? 0) < 30) {
            return null;
        }
        return strategy.totalPnl ?? 0;
    },
}

The core of a scoring rule: ignore runs with fewer than 30 trades, and rank the rest by net profit. Illustrative.

What the results table looks like

When the runs finish, they land in a table sorted by the score you picked. The top row is the one you can apply to the chart.

Optimization results (illustrative, synthetic numbers)

Optimization results (illustrative, synthetic numbers)
RSI entrySMA lengthNet profitMax drawdownProfit factor
10 200 +$4,820 −6.1% 1.9
15 200 +$4,310 −5.4% 1.8
10 150 +$3,975 −7.8% 1.6
20 100 +$2,140 −9.9% 1.3
30 50 −$860 −14.2% 0.9

Sorted by net profit. The best row can be applied to the chart in one click.

The top row is a candidate, not a conclusion

Trying many settings makes it easy to find ones that fit past noise. Check your best candidates on bars they have never seen.

Walk-forward analysis →

Frequently asked questions

Is optimization included in the free plan?

No. Optimization and auto-optimization are part of TickSurfers Pro ($30/month or $300/year). All Pro research tools are in one plan.

Can I rank runs by my own rule?

Yes. Write a short JavaScript scoring rule that reads every trade in the run, for example to favor runs with enough trades.

Can I optimize across symbols and timeframes?

Yes. You can include symbols and timeframes in the run alongside the strategy’s inputs.

Does optimization mean the best settings will keep working?

No. Optimized settings can be fit to past noise. Use walk-forward analysis, and remember that historical simulations do not predict future results.

Historical simulations do not predict future results. Educational use only; not financial advice.

Find settings worth testing

Optimization is included with TickSurfers Pro, alongside walk-forward analysis. Backtesting is free.

Related