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, how the Ranking Method decides what "best" means, and what a backtest from the builder costs.

10 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 Transaction Cost and the Backtest Period deserve a second look
  • How Customize and Save As differ, and which one spends a credit

When this is the right tool

You arrive here with an idea the Quick Strategy cannot express — a slice of the market, or a view about what makes a stock worth holding — or, more commonly, by pressing Customize on a quick strategy, with every setting filled in and editable. It is not the serious version of the builder, just the one that asks more of you: five steps, in the order the strategy uses 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 Mid Cap 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.

ControlWhat it doesNotes
UniverseThe pool of stocks the strategy draws fromEight options; five by size, three 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 position cannot be exited the same day it is entered

Universe

Five options widen by size: Top 50, Top 100, Top 200, Top 500 and All stocks (every company on the NSE main board; SME listings excluded). Three target a segment: Mid Cap 150, Small Cap 250 and Mid & Small Cap 400.

A segment universe is not a broader version of a size universe. Small Cap 250 is a different part of the market from Top 100, with the larger companies removed rather than added; our running idea takes Mid Cap 150. What you give up: a bigger size universe adds smaller companies and bigger swings; a narrow one gives the ranking fewer stocks. Start from a pool you would be comfortable owning.

Market Cap

Raising it keeps larger, usually steadier companies that are easier to trade in size. What you give up: smaller companies, which move more in both directions.

Liquidity

Liquidity is 20-day average volume × price, a rolling average daily traded value in rupees. The averaging is the point: one busy day does not make a thinly traded stock eligible, and a stock whose volume has dried up stops qualifying.

Raising it leaves fewer stocks, but ones easier to trade near the quoted price, so real trading drifts less from the backtest. What you give up: a wider pool; a lower floor admits stocks whose real-world fills may be worse than the backtest assumes.

52 Week High Filter

Tightening it (say within 10%) keeps stocks closer to their highs. What you give up: candidates — a tight limit can leave too few to fill the portfolio.

Penny and T2T Stocks

Include Penny Stocks (shares under ₹10) and Include T2T Stocks (the exchange's Trade-to-Trade segment, where every trade settles by delivery) are inclusions that start unticked, so the default is exclusion and you widen by opting in.

Including them adds volatile, often thinly traded names (stocks are often moved to Trade-to-Trade after unusual price moves); leaving them out loses some genuine candidates. If you include them, check the trade log for whether they drive the result.

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

One setting is required; the rest are optional

You must tick at least one ROC window, because that is how the strategy ranks stocks. With none ticked, the step says "Select at least one ROC filter to continue." Everything else is optional.

ControlOptionsNotes
Moving Averages50-day, 100-day, 200-day SMAMultiple allowed; simple moving averages only
Rate of Change (ROC) Filters1-, 3-, 6-, 9-, 12-MonthAt least one required; multiple allowed, and 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

A new Custom strategy starts with the 50- and 200-day SMA and the 6-Month ROC ticked. What each indicator measures has its own article.

Moving Averages

A ticked average keeps only stocks trading above it. Changing it: a longer average reacts more slowly, letting a stock back in later after a fall and dropping it later too. What you give up: each average narrows the pool, and stacking several can leave too few candidates.

Rate of Change (ROC) Filters

Despite the name, these rank rather than filter: the universe is ranked once per ticked window, then each stock's ranks are averaged. Changing it: short windows favour recent movers, long windows steadier trends, and more windows a ranking that changes more slowly. What you give up: responsiveness against stability. A stock missing a value for any ticked window isn't ranked: it can't be entered, so very long windows can exclude recently listed stocks, and a stock you already hold in that state is kept rather than exited.

Ranking Method

Ranking Method decides what best means. Absolute Returns: the stock that rose most. Volatility Adjusted Returns: the one that rose most for the amount it moved around getting there. The same eligible set gives two different portfolios — the second tends to prefer steadier climbers, the first the sharpest movers. Our running idea says steadily, so it takes Volatility Adjusted Returns. What you give up: with Absolute Returns, smoothness; with Volatility Adjusted, some of the sharpest movers. Compare both on the worst fall as well as CAGR.

Super Trend Filter

It keeps stocks whose trend reads "up", checked at each rebalance. Fast (More Reactive) gives more signals and earlier exits; Slow (Stronger Confirmation) needs a stronger trend change, so it trades less and exits later. What you give up: speed against noise — a faster setting reacts to real turns sooner, and to short wobbles too.

Step 3 — Portfolio Settings

This step decides how far down the ranking to go, how often to look again, and what makes a holding leave.

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 (no capping) · Reinvest (capped at 1.5×) · Reinvest (capped at 2×) · FixedHow much cash goes into each new position
Stop Loss SettingsTwo independent checkboxesBoth off unless you turn them on

Exit Rank is normally set wider than the Number of Stocks, and the gap is how much ranking drift the strategy tolerates; our running idea holds 15 with an Exit Rank of 25. Exit Delay counts rebalance periods, not days. Each setting is covered in Portfolio Settings and Exits in the Custom Builder.

What makes a strategy exit a stock

Universe, Market Cap, Liquidity, Penny and T2T only decide entries; Moving Averages, the 52 Week High and Super Trend filters, Exit Rank and stop losses can also exit a holding. When each acts is in Portfolio Settings and Exits in the Custom Builder.

Step 4 — Backtest Settings

The Backtest Settings step with Investment Amount 500000, Transaction Cost (each entry & exit) at 0.1% with the helper text Between 0 and 1%, Backtest Period set to Custom with a Backtest Start Date of 03 Nov 2021 and a Backtest End Date of 03 Nov 2026, and a Backtest Period Information panel noting that the selected period spans 5 years. Previous and Next buttons sit below, with Step 4 of 5 · Backtest Settings
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.

Transaction Cost (each entry & exit) is a percentage between 0 and 1%, defaulting to 0. It is charged on every entry and every exit, and it is your assumption about your own costs — not a NiveshBuddy fee, and not a figure the platform recommends. Left at zero, the result 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:

The selected period spans 5 years. Longer periods give more reliable results.

A longer window is more evidence, but also a mix of conditions the strategy may have handled very differently; one containing only a rising market says little about a falling one.

Step 5 — Review

This is the only place the whole specification appears at once, so a contradiction between steps is easiest 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 Mid Cap 150 · Monthly on 1st · 200 SMA · 6M/12M ROC · Vol. Adj. Returns · TSL 20%, then Universe & Filters (Mid Cap 150, 1,000 Crores+, 1 Crore+, penny and T2T stocks excluded, Monthly · 1st), Technical Rules (within 25%, 200 SMA, 6M and 12M ROC, Volatility Adjusted Returns, Super Trend Balanced), Portfolio Settings (15 stocks, Exit Rank 25, Exit Delay None, Investment Mode Reinvest (no capping), Trailing Stop Loss 20%) and Backtest Settings (₹5,00,000, 0.1%, 3 Nov 2021 to 3 Nov 2026, 5 years) — above Previous, Step 5 of 5 · Review and a Run Backtest button, and a one-line disclaimer
Step 5 — the whole specification, in one place

Left empty, the Description is written for you — a one-line summary of the rules, like the one above, used as the subtitle on the results page. The ROC row says how several windows are used: "Ranked on the average of these windows."

Run Backtest creates the strategy and runs its backtest in one action. Every backtest from this builder spends one Strategy credit as soon as you press it, with no confirmation step; on plans with a monthly limit, the Review step shows how many you have left this month.

Coming back to it: Customize and Save As

You change a strategy from its results page or its card on the Strategies page.

Customize reopens it here, titled Customize Your Strategy, with every setting as you left it, no Quick and Custom tabs, and a fixed name. Update & Run Backtest spends one Strategy credit. If your plan's data window is shorter than the period tested, an amber Shorter test period banner says so first. The new run becomes the current result; the earlier one stays in Backtest History, where the two can be compared side by side.

Save As copies the strategy under a new name at no cost, keeping two versions as separate strategies. Change one thing at a time, so the comparison can show 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 universe is not a broader one — Small Cap 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.
  • In the Technical Rules step, at least one ROC window is required, because it ranks the stocks; every other setting is optional.
  • Ranking Method decides what "best" means: the same eligible set ranked two ways produces two different portfolios.
  • Transaction Cost is your assumption about your own costs, charged on each entry and each exit — not a platform fee — and the default of zero assumes trading is free.
  • Run Backtest and Update & Run Backtest each spend one Strategy credit; Save As copies a strategy at no cost.