NiveshBuddy Learn
Using NiveshBuddyIntermediate

Mastering the Custom Strategy Builder

Five steps, and the decision each one is really asking. What a segment index changes, what Liquidity actually measures, why Exit Rank is set wider than your holdings, and why Exit Delay is counted in periods rather than days.

11 min readUpdated

What You’ll Learn

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

  • When the Custom Strategy Builder earns its extra complexity
  • Why a segment index is not simply a broader universe
  • What Liquidity measures, and why the 20-day window matters
  • How the Ranking Method decides what "best" means
  • Why Exit Rank is normally set wider than the number of holdings
  • Why Exit Delay is counted in periods rather than days
  • How Customize and Save As differ, and which one spends a credit

When this is the right tool

Two ways to end up here. You have an idea the presets cannot express — a particular slice of the market, or a specific view about what makes a stock worth holding. Or you started with a quick strategy, pressed Customize, and landed here with every preset filled in and editable. The second route is easier and more common: reacting to a working configuration beats specifying one from scratch.

This is not the serious version of the builder. It is the version that asks more of you — five steps, each asking one kind of question, arriving in the order the strategy will actually use them.

One idea runs through all five: mid-sized companies rising steadily, held about fifteen at a time, tolerant of a bit of drift.

Step 1 — Universe & Filters

The Create Strategy page on the Custom Strategy tab, headed Custom Strategy Builder, with a five-step progress bar reading Universe & Filters, Technical Rules, Portfolio Settings, Backtest Settings and Review. Step one shows a Strategy Name field, an optional Description, and a Stock Selection Criteria group with Universe set to Nifty Midcap 150, Market Cap 1,000 Crores+, Liquidity 1 Crore+ and 52 Week High Filter within 25%, above unticked checkboxes for including penny stocks and T2T stocks
Step 1 — what the strategy is allowed to consider

This step decides what the strategy may ever hold. Nothing later can rescue a stock excluded here.

Universe is the first and biggest choice — nine options, and they are not all the same kind of choice. Five widen by size rank: Nifty 50, Nifty 100, Nifty 200, Nifty 500, Nifty All. Four target a segment directly: Nifty Midcap 150, Nifty Smallcap 250, Nifty MidSmallcap 400, Nifty Total Market 750.

That distinction matters more than it looks. A segment index is not a broader version of a rank index. Nifty Smallcap 250 is not "more market" than Nifty 100 — it is a different part of it, with the larger companies removed rather than added. Our running idea wants mid-caps specifically, so it takes Nifty Midcap 150 rather than reaching for a bigger number.

Liquidity is worth understanding properly, because the label undersells it. It is 20-day average volume × price — an average daily traded value in rupees, over a rolling twenty-trading-day window. The averaging is the point: one unusually busy day does not make a thinly traded stock eligible, and a stock whose volume has quietly dried up stops qualifying without a separate rule.

ControlWhat it doesNotes
UniverseThe index or list the strategy draws fromNine options; five by size rank, four by segment
Market CapA minimum company-size thresholdNo Minimum · 500 · 1,000 · 5,000 · 10,000 Crores+
LiquidityMinimum average daily traded value20-day average volume × price: None · 50 Lakhs+ · 1 Crore+ · 1.5 Crores+ · 2 Crores+
52 Week High FilterHow far below its yearly peak a stock may bewithin 5% to within 50% in 5% steps, or None
Include Penny StocksAdmits shares under ₹10Unchecked by default, so these are excluded unless you opt in
Include T2T StocksAdmits Trade-to-Trade securitiesUnchecked by default; T2T must settle by delivery, so a buy cannot be sold the same day

Both checkboxes are phrased as inclusions and start unticked — so the default is exclusion, and you widen the universe by opting in rather than switching a filter on.

Step 2 — Technical Rules

The Technical Rules step with the 200-day SMA ticked under Moving Averages, 6-Month and 12-Month ticked among five Rate of Change (ROC) Filters from 1-Month to 12-Month, Ranking Method set to Volatility Adjusted Returns and Super Trend Filter set to Balanced
Step 2 — what the strategy treats as a good sign

Step 1 said what may be held. This step says what looks worth holding.

Every setting in this step is optional

A strategy can be built with none of them selected. That is worth knowing before you start ticking boxes, because it reframes the step: you are not filling in a form, you are choosing which conditions you actually want to impose.

Moving Averages offers 50-day, 100-day and 200-day SMA, and you may select more than one. These are simple moving averages — the builder offers no other type. Rate of Change (ROC) Filters offers 1-Month, 3-Month, 6-Month, 9-Month and 12-Month windows, and despite the name it ranks rather than filters: tick several and the universe is ranked once per window, then each stock's ranks are averaged. A new Custom strategy starts with the 50- and 200-day SMA and the 6-Month ROC ticked — defaults you are free to clear.

What each measures, and why combining too many causes trouble, is the subject of its own article. What matters here is that they are yours to choose.

Ranking Method deserves more attention than it gets. Two options, Absolute Returns and Volatility Adjusted Returns, answering a question no other control does: once you have a set of eligible stocks, what does best mean?

Absolute Returns means the one that rose most. Volatility Adjusted Returns means the one that rose most for the amount it moved around getting there. Run the same eligible set through both and you get two different portfolios from identical filters — the second will tend to prefer steadier climbers, the first the sharpest movers.

Our running idea says steadily, so it takes Volatility Adjusted Returns. That single dropdown does more to shape the resulting portfolio than most of the checkboxes above it.

ControlOptionsNotes
Moving Averages50-day, 100-day, 200-day SMAMultiple allowed; simple moving averages only
Rate of Change (ROC) Filters1-, 3-, 6-, 9-, 12-MonthMultiple allowed; ranks are averaged across ticked windows
Ranking MethodAbsolute Returns · Volatility Adjusted ReturnsDecides what "best" means when ordering
Super Trend FilterNone · Fast (More Reactive) · Balanced · Slow (Stronger Confirmation)The naming carries the trade-off

Step 3 — Portfolio Settings

The Portfolio Settings step with Number of Stocks at 15, Exit Rank at 25 with the helper text Must be between 15 and 200 — its lower bound follows the Number of Stocks, Rebalance Frequency Monthly with a Rebalance Date of 1st, Exit Delay None, Investment Mode Reinvest, and Stop Loss Settings with Trailing Stop Loss ticked at 20%
Step 3 — how much, how often, and when to let go

Ranking produces an order. This step decides how far down it to go, and what makes a holding leave.

Number of Stocks and Exit Rank work as a pair. Number of Stocks runs from 5 to 50; Exit Rank runs from your Number of Stocks up to 200, so it can never be tighter than the holdings count. The helper text under the field follows whatever you set: with 5 stocks it reads "Must be between 5 and 200", with 15 it reads "Must be between 15 and 200". It is normally set wider: a strategy holding the top 15 with an Exit Rank of 25 tolerates a stock slipping to 16th, and lets go only once it falls past 25th.

That gap is the design decision. Close together, the strategy sells on small ranking movements and trades more. Far apart, it holds positions well past the point they stopped being among its best ideas. Our running idea says tolerant of drift, so 15 and 25 fits.

Exit Delay is the setting most likely to be misread. Its options are None, Delay by 1 period, Delay by 2 period and Delay by 3 period — and a period is the strategy's own rebalance cycle, not a day. "Delay by 1 period" on a monthly strategy is a month; on a daily strategy it is a day. Same setting, wildly different behaviour, and nothing on the screen tells you which.

Rebalance Frequency comes with a second control that depends on it — a Rebalance Day (Monday to Friday) for Weekly and Fortnightly, a Rebalance Date (1st to 31st) for Monthly, and nothing for Daily. Two otherwise identical strategies rebalancing on different dates will produce different historical results, which is worth remembering before reading much into a small difference between two backtests.

ControlOptions or rangeNotes
Number of Stocks5–50The product's stated range
Exit RankNumber of Stocks to 200Normally set wider than Number of Stocks
Rebalance FrequencyDaily · Weekly · Fortnightly · MonthlyWeekly/Fortnightly add a Rebalance Day; Monthly a Rebalance Date
Exit DelayNone · 1, 2 or 3 periodsPeriods, not days
Investment ModeReinvest · FixedReinvest compounds proceeds into later positions
Stop Loss SettingsTwo independent checkboxesBoth off unless you turn them on

Stop losses are a subject in their own right — what each measures from, and why a NiveshBuddy stop is a rule checked on a close rather than an order resting in the market, is covered separately.

Step 4 — Backtest Settings

The Backtest Settings step with Investment Amount 500000, Transaction Cost (each buy & sell) at 0.1% with the helper text Between 0 and 1%, Backtest Period set to Last 5 years, and a Backtest Period Information panel reading 11 Oct 2021 – 09 Oct 2026 and noting that the selected period spans 5 years
Step 4 — what to test the rules against

Three settings: an Investment Amount (₹5,00,000 by default, at least ₹10,000), a Transaction Cost, and a Backtest Period. Two of them deserve a second look.

Transaction Cost (each buy & sell) is a percentage, between 0 and 1%, and defaults to 0. It is charged on every buy and every sell, so a round trip pays it twice. It is your assumption about your own costs — not a NiveshBuddy fee, and not a figure the platform charges or recommends. Leaving it at zero is a choice too, and it means the result you are about to read assumes trading is free.

The Backtest Period decides what "tested" means. It offers Last 1 year, Last 5 years and Custom (start and end dates appear only on Custom, and only trading days can be picked). How far back you can go depends on your plan, and NiveshBuddy's history begins in 2021. A Backtest Period Information panel comments on your choice as you make it:

The selected period spans 5 years. Longer periods provide more reliable results but may include different market regimes.

That second clause is the honest half. A longer window is not simply better — it is more evidence and a mixture of conditions the strategy may have handled very differently. A window containing only a rising market tells you little about a falling one, so our running idea accepts a span long enough to include a bad stretch.

Step 5 — Review

The last step reads the configuration back, and it is worth reading rather than clicking past. This is the only place the whole specification appears at once — steps 1 to 4 each show a slice, and a contradiction between slices is far easier to spot here. A tight universe with a high holdings count, say, or a fast Super Trend Filter on a monthly rebalance.

The Review step, titled Review Your Strategy, echoing every setting in cards — Strategy Info with an auto-generated description reading Top 15 from Nifty Midcap 150 · Monthly on 1st · 200 SMA · 6M/12M ROC · Vol. Adj. Returns · TSL 20%, then Universe & Filters, Technical Rules, Portfolio Settings and Backtest Settings — above a Run Backtest button and a one-line disclaimer
Step 5 — the whole specification, in one place

If you left the Description empty, the builder writes one for you — a one-line summary of the rules, like the one above, which becomes the strategy's subtitle on its results page. The ROC row also says how several windows are used: "Ranked on the average of these windows."

Its Run Backtest button creates the strategy and runs its backtest in one action. Every backtest from this builder spends one Strategy credit, so the app asks you to confirm first and shows how many you have left this month. What that backtest can and cannot tell you is a separate question, and the more important one.

Coming back to it: Customize and Save As

A strategy is rarely right the first time, and you change it from its results page or its card on My Strategies.

Customize reopens it in this builder, titled Customize Your Strategy, with every setting as you left it. Two things are different: there are no Quick and Custom tabs, and the name is fixed. The final button reads Update & Run Backtest, and because it is a Custom backtest it spends one Strategy credit, after the same confirmation. The new run becomes the strategy's current result; the earlier one is kept in its Backtest History, where the two can be compared side by side.

Save As is the other route: it copies the strategy under a new name, at no cost, and leaves the original untouched. Use it when you want to keep both versions as separate strategies rather than as two runs of one. Either way, change one thing at a time — it is the only way the comparison afterwards can tell you what the change did.

Two ways to get this wrong

Worth knowing before you build

There are no fundamental filters

Every control here is technical or price-based — index membership, size, tradability, moving averages, rate of change, trend. There is no P/E, ROE, ROCE, earnings, revenue or debt filter anywhere in the builder, and a strategy cannot be built on one.

More conditions is not more rigour

Every filter and indicator you add narrows the eligible set, and several stacked together can narrow it to almost nothing — or to a handful of stocks that happen to fit the past. A small number of rules you can explain is usually the better strategy.

Key takeaways

  • The Custom Strategy Builder is not the serious version — it is the one that asks more of you, and Customize is the most common way to arrive at it.
  • The five steps run in the order the strategy uses them: what may be held, what looks good, how much and how often, what to test against, then review.
  • A segment index is not a broader universe — Nifty Smallcap 250 is a different part of the market, not more of it.
  • Liquidity is 20-day average volume × price, and the averaging window is the point: one busy day does not qualify a thinly traded stock.
  • The penny-stock and T2T controls are inclusions that start unticked, so the default is exclusion and you opt in to widen.
  • Every setting in the Technical Rules step is optional — a strategy can be built with none of them.
  • Ranking Method decides what "best" means: the same eligible set ranked two ways produces two different portfolios.
  • Exit Rank is normally set wider than Number of Stocks, and the gap between them is how much ranking drift the strategy tolerates.
  • Exit Delay is counted in periods — the strategy's own rebalance cycle — not in days.
  • Transaction Cost is your assumption about your own costs, charged on each buy and each sell — not a platform fee — and the default of zero assumes trading is free.