NiveshBuddy Learn
Using NiveshBuddyIntermediate

Exploring Strategy Variations with Experiments

An Experiment backtests many variations of one strategy in a single run and ranks them. Used well, it tells you whether a result survives a nudge. Used badly, it hands you the configuration that best fitted the past and calls it first.

9 min readUpdated

What You’ll Learn

By the end of this article, you’ll understand:

  • What an Experiment does, and which plans include it
  • How the settings you tick turn into configurations
  • How to read a ranked result
  • Why the first-ranked configuration is a lead to test, not an answer

What an Experiment does

A backtest answers one question: how did this set of rules behave? An Experiment asks a wider one: how would nearby sets of rules have behaved? It takes one of your strategies — the starting strategy — varies the settings you choose, backtests every resulting combination in a single run, and ranks them — by highest CAGR at first, and by any of five measures you switch to. Each tested combination is a configuration.

Experiments depend on your plan; the Pricing page shows which plans include them. If yours does not, the Experiments page says so and offers See plans.

The Experiments page with a lock icon, the message Experiments aren't available on your plan, and a See plans button
What the page shows if your plan doesn't include Experiments

When it's worth running

An Experiment is most useful after you have a strategy you understand — one you have backtested, read, and could explain in a sentence. Its job then is to answer a specific doubt: would this result survive a small change? If six-month momentum worked, do three- and twelve-month windows point the same way? If fifteen holdings worked, what happens at ten?

It is least useful as a search for something better: ranking many configurations on one history always produces a first place, whether or not anything durable sits behind it.

Setting one up

From a starting strategy to a lead worth testing

  1. Pick a starting strategyExplore Variations on a strategy, or New Experiment
  2. Choose what to varyTick the options to try; anything left unticked keeps the strategy's own value
  3. Check the estimateHow many configurations, and roughly how long
  4. Run itEvery configuration is backtested
  5. Read the rankingLook for agreement, not a winner

Start from the strategy. Press Explore Variations on a strategy's results page or its card on the Strategies page, or New Experiment on the Experiments page and pick one. By default the experiment uses the starting strategy's own test period; you can set different dates. The universe and its filters apply to every configuration.

Then choose what to vary. Each setting lists the values you can try, and says how your ticks combine:

SettingHow ticked options combine
Rate of Change (ROC) Filters · Moving averagesEvery combination of the ticked options is tried
Ranking method · Super Trend Filter · No. of Stocks · Maximum Rank · Investment Mode · near 52-week highEach ticked option is tried on its own
Position stop-loss · Trailing stop-lossEach ticked option on its own, up to four per setting

The two rules multiply. Ticking three ROC windows gives seven combinations — each window alone, each pair, and all three. Ticking two holding counts on top doubles that: 14 configurations.

The settings to vary, each saying how its options combine: ROC Filters 3M, 6M and 12M and No. of Stocks 10 and 15 ticked, Investment Mode's four options unticked, and the estimate 14 configurations · takes under a minute
Two settings varied — fourteen configurations

There is no ranking to choose here: a new experiment ranks by highest CAGR, and you can re-rank the results freely once they are in. Check the estimate before you start: how many configurations your ticks produce and roughly how long they will take. An experiment needs at least two configurations, and only one can be queued or running at a time.

Each configuration that completes spends one Experiment credit, so the estimate is also the cost: "Uses up to 14 Experiment credits: one for each configuration that completes." Your balance shows as "Experiment credits: …"; without enough, starting is refused with "Not enough Experiment credits" and an Upgrade link.

While it runs

StatusWhat it means
QueuedWaiting its turn; experiments run behind the nightly data update
RunningShows how many configurations have been tested so far
CompletedEvery configuration has a result
CancelledYou stopped it; configurations that had already finished are kept
FailedIt could not finish, with the reason shown

You can delete an experiment from its ⋮ menu in any of these states.

Reading the result

The example is the hypothetical Midcap Climbers strategy — the top fifteen of the Mid Cap 150, ranked on 6- and 12-month momentum — with its ROC windows and holding count varied over 3 November 2021 to 3 November 2026. It shows how to read the page, not a strategy to follow.

The completed Midcap Climbers experiment: Ranked by Highest CAGR, 3 Nov 2021 to 3 Nov 2026, all 14 configurations tested; a Key takeaway that Configuration #7 is first, CAGR 23.55%; then How the settings did, with its overall line, the starting strategy's CAGR of 15.70% and a Which settings mattered dot chart
What was tested, what came first, and which settings mattered

The top restates the ranking measure, dates and universe; a Key takeaway names the configuration that came first and what it changed. (While the experiment runs, a What was varied card lists the settings you ticked instead.) Then come How the settings did — its How to read this experiment link opens a reading order — and Ranked configurations: every result, Export CSV, and an equity and drawdown chart with a Benchmark dropdown (Top 50, Top 200 or Top 500).

Rank by re-sorts without re-running: Highest CAGR, Highest Sharpe, Lowest drawdown, Score, and, once the experiment has ended, Steadiest (Weekly rating). A line under it says what the order rewards — for Highest CAGR, "Highest yearly growth, however deep the falls."

How the settings did

This summary appears a few minutes after the experiment ends, and it is the best place to start. Its overall line gives how many configurations completed and cleared the minimum bar, their median CAGR with its middle half, and their median Sharpe; the starting strategy's figures follow. Here all 14 cleared the bar, with a median CAGR of 17.22% (middle half 15.61% to 19.03%) — above the starting strategy's 15.70%.

Which settings mattered then gives each setting a row and each option a dot at the median of the configurations that used it — widest spread first, the starting strategy's choices ringed, the overall median dashed. It switches between Median CAGR, Median Sharpe and Weekly rating; Show the figures opens a table.

SettingMedian CAGR by option
ROC Filters12M 18.6% · 3M 16.6% · 6M 16.3%
No. of Stocks10 17.5% · 15 15.7%

That answers a better question than first place: not which configuration won, but which choices did well wherever they were used. Here the ROC window spread widest. The starting strategy's 12-month window leads, while its 6-month window and its 15 stocks both sit below the median.

The first three ranked configurations under the note that scores are coarse. Configuration #7: CAGR 23.55%, Sharpe 1.10, Score 80, Weekly rating 53 / 100, 10 stocks, 12M ROC, a losing 2022 shaded in its Year by year strip. #8: 20.53%, 15 stocks, 12M. #11: 19.55%, 10 stocks, 6M and 12M
The top of the list — every one includes the 12-month window

Each card shows CAGR, maximum drawdown, Sharpe, Score, closed trades and holding count; tags values that differ from the starting strategy as Changed; and says whether it meets the minimum bar — at least ten closed trades and a return ahead of the benchmark. Three lines look inside the five years:

LineWhat it shows
Weekly rating (0–100)Each week, every configuration's return is ranked against the rest; this is its average, with the share of weeks it spent in the top and bottom quarter of the field
Beat the Top 50 in X of Y full years · positive in ZHow often it led the benchmark, counting full calendar years only
Year by yearEach year's return beside the Top 50's — a losing year shaded, a part year starred; tap a year for its worst fall

Now read it. Configuration #12 has no Changed tags: it is the starting strategy, at the same 15.70% as its own backtest, and it ranks tenth of fourteen.

First place against the starting strategy

Starting strategy (#12)

  • 6M + 12M ROC
  • 15 stocks
  • Worst fall −29.04%
  • Beat the Top 50 in 2 of 4 full years

15.70%

CAGR · ranked 10th

Configuration #7

  • 12M ROC only
  • 10 stocks
  • Worst fall −27.70%
  • Beat the Top 50 in 2 of 4 full years

23.55%

CAGR · ranked 1st

Hypothetical demo data, one five-year window. The gap is 7.85 percentage points a year.

The tempting reading is that #7 is the better strategy. The useful one is the pattern: all of the top four include the 12-month window, three of them with ten stocks, while 3-month momentum alone came last at both holding counts. The momentum window moved the result more than the holding count — something worth testing.

Then look at how first place was won. #7 lost 4.7% in 2022 and took much of its lead from one year: +69.2% in 2024. #9 (3M + 12M, ten stocks), fourth at 19.38%, beat the Top 50 in all four full years, and its Score (84) and Weekly rating (54) are the highest on the list. Weekly ratings span only 45 to 54, which is the page's own note in figures: "Scores are coarse — the top few are effectively a group, and the middle of the list is not meaningfully ordered."

First place is a lead to test, not an answer

The ranking chose it for fitting this window

Fourteen configurations ranked on one stretch of history will always produce a first place. Some of its lead is real; some is simply the configuration that happened to suit that stretch best — and the ranking cannot tell you which part is which. The more you rank, the more of that luck first place carries; on an experiment of 20 or more configurations, the Key takeaway itself warns that the best of that many tries flatters its winner.

So treat first place as a hypothesis. The honest next step is to test it somewhere it was not ranked: run it over a different period, and see whether its edge over its neighbours survives.

Use This Strategy on a card creates the configuration as a new strategy and runs its backtest — a Custom backtest, so it spends one Strategy credit. From there it is an ordinary strategy: Customize its Backtest Period, compare it with the original, or simulate it.

Using it well

Vary one or two settings at a time; a small grid you can read beats a large one that produces a confident first place and nothing else. Write down what you expect before you run, so the experiment tests a belief rather than generating one.

Look for agreement among neighbours rather than a single winner. A result that holds across nearby settings tells you about the idea; one that stands alone at the top is more likely telling you about the data. None of this predicts future returns, and which strategy you run remains your decision.

Common questions

Which plans include Experiments?

It depends on the plan — the Pricing page lists which ones include Experiments. Without access, the Experiments page tells you so and offers See plans.

What does an Experiment cost?

One Experiment credit for each configuration that completes. The page shows the most it can use before you press Start Experiment. Turning a result into a strategy with Use This Strategy spends a Strategy credit.

Why can only one experiment run at a time?

Experiments are queued and run behind the nightly data update, one per account at a time. Once yours completes, is cancelled or fails, you can start another.

What does "Meets the minimum bar" mean?

That the configuration made at least ten closed trades and returned more than the benchmark over the test period. It is a floor for taking a result seriously, not a recommendation.

Is the first configuration the best strategy?

No. It came first on one measure over one period. Treat it as a lead to test on a period it was not ranked on, and look at whether the configurations near it agree.

Key takeaways

  • An Experiment backtests many variations of one starting strategy in a single run, ranks them by highest CAGR; Rank by re-sorts without re-running.
  • Unticked settings keep the starting strategy's value; ticked ones combine — ROC and moving averages in every combination, the rest one option at a time — and the counts multiply.
  • Check the estimate before running: how many configurations, and roughly how long. Larger experiments take longer. Only one experiment runs at a time.
  • Each configuration that completes spends one Experiment credit, so the estimate is also the most it can cost.
  • Start reading with How the settings did: which choices did well across many configurations, not just which one came first.
  • Read the pattern across the top of the list, not just first place — here, every one of the top four included the 12-month window, and the starting strategy ranked tenth of fourteen.
  • The page's own note applies: scores are coarse, the top few are effectively a group.
  • First place is a lead chosen for fitting one window; test it on a period it was not ranked on.
  • Use This Strategy creates the configuration as a new strategy and runs its backtest, spending one Strategy credit.