NiveshBuddy Learn
Examples & Case StudiesBeginner

From Idea to Simulation: An End-to-End Journey

One fictional investor takes a broad idea all the way to a running simulation: turning it into rules, reading the backtest, starting a simulation, handling its first scheduled trades, recording a real fill, and then deciding for themselves what to do with real money.

8 min readUpdated

What You’ll Learn

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

  • How a broad investing idea becomes a set of rules you can test
  • What to read in a backtest before moving on
  • What happens in a simulation's first weeks, and the one decision its trades ask of you
  • How to keep a simulation matching what you actually did
  • Why the last step, acting with real money, stays your own decision

An illustrative journey

Asha and their strategy are fictional, and so is every figure in this story: they are round numbers chosen to show the method, not results anyone achieved. The screens are real NiveshBuddy screens, captured from demo data. Nothing here is a recommendation to buy, sell or hold anything.

Objective

Asha has an idea most investors would recognise: I'd like to own large, established companies, but lean towards the ones that have been doing well lately, and not hold on to the ones that stop. They don't want to pick stocks one by one, and they don't want to act on a hunch.

Their objective is narrower than "find a winning strategy". They want to turn the idea into rules, see how those rules behaved in the past, watch them work in the present without risking money, and only then decide, on their own, what to do.

Approach

Asha's journey

  1. An ideaLarge companies, leaning to recent strength
  2. RulesBuilt as a Quick strategy
  3. BacktestRead the risk before the return
  4. SimulationThe same rules, forward, with virtual money
  5. Scheduled tradesFriday's signal, Monday's close
  6. One rejectionWith a reason they write down
  7. Record a real fillEdit Position, after their broker trade
  8. Their decisionWhat to do with real money is theirs
Eight steps, each one a decision, not a result.

Strategy design

Asha starts with the Quick Strategy builder, because their idea is a style rather than a set of specific indicators. Three choices carry it:

  • Risk Level: Balanced. Not the most defensive option, because they do want growth, but not the most aggressive either.
  • Strategy Speed: Moderate. Their idea is about lasting strength, not week-to-week swings.
  • Rebalance Frequency: Weekly. They want the strategy to drop a fading stock reasonably soon. A weekly Quick strategy rebalances on Monday.

The builder turns those three choices into a full rule set: a universe, filters, ranking and exit rules. Before running the backtest, Asha reads the review dialog to check that the rules say what Asha meant.

Review of outcome

The backtest

Their backtest runs over the history their plan allows. Suppose, for the story, that it grew at about 13% a year, with a worst fall of about 25% along the way and a Score in the high 60s.

What Asha reads first is not the 13%. It is the 25%: could I have sat through a quarter of my money disappearing, on paper, for months? Then they read the Key takeaway and its caveats, and check how the strategy did in the weak stretches, not only overall. They decide they could live with it, and that the backtest has told them as much as a backtest can.

Starting the simulation

From the strategy's results page, they press Start Simulation, name it, keep the default ₹10,00,000 of virtual Starting Capital, and accept the earliest start date offered.

The Start New Simulation dialog for Balanced Moderate Weekly, reading Track Balanced Moderate Weekly as a live paper portfolio, with Simulation Name Balanced Moderate Weekly Simulation, Starting Capital ₹1000000 and Simulation Start Date 05 Nov 2026, the note It runs every trading day with virtual money. Judge it over months, not by its first few days, Cancel and Start Simulation buttons, and a disclaimer
The real dialog, shown here for a demo strategy

Nothing is entered at that moment. The simulation's first batch of trades enters every holding the strategy targets, at the start date's close.

The Scheduled Trades section of the new simulation the evening before its start: Scheduled Trades (15) with 15 Entries and 0 Exits, the notice Fills at the 5 Nov close unless rejected. Simulated trades generated by your strategy. No real orders are placed., Signalled 4 Nov 2026, and entry rows for LAURUSLABS, DIVISLAB, NYKAA, BOSCHLTD, ZYDUSLIFE and INDHOTEL, ranked 1 to 6 of 44, each Selected with a Reject button
The first batch: one entry for every holding, none of them filled yet

The first scheduled trades

From then on, every Monday is a rebalance. On a Friday evening, after the day's market data is in, the strategy re-ranks its universe. If anything has changed, the simulation lists the trades it wants to make as Scheduled Trades, each with a reason: an entry because a stock now ranks highly, an exit because a holding has slipped past its exit rank or no longer passes the strategy's filters.

The Scheduled Trades section of the simulation on a Friday evening: Scheduled Trades (2) with 1 Entry and 1 Exit and a Reject all… button, the notice Fills at the 16 Nov close unless rejected. Simulated trades generated by your strategy. No real orders are placed., Signalled 13 Nov 2026, and two rows, each with a Reject button: Entry PAYTM, 34 at ₹1,939.90, ₹65,957, Rank 3 of 70 — Selected; and Exit ADANIPORTS, 35 at ₹1,903.30, ₹66,616, Rank 28 of 70 — Not selected
A quiet week: one stock in, one out

The simulation records these trades itself at Monday's close, with virtual money; NiveshBuddy places no orders. Asha doesn't have to approve them, and in most weeks simply lets them run.

Rejecting one

One week, the batch includes an entry Asha has a reason of their own to skip, something the rules can't know about. (In the screenshot, the demo's PAYTM entry stands in for it.) They press Reject, and write themselves a note: the date, the stock, and why.

The Rejected card: Rejected (1), Won't run. Reset one to let it run after all., and one row, Entry PAYTM, 34 at ₹1,939.90, ₹65,957, Rank 3 of 70 — Selected, marked Rejected with a Reset button
Rejected, with Reset available until the trade would have run

If they change their mind before Monday's close, Reset puts the trade back in the batch, and it fills as scheduled.

They know what that costs. From now on, the simulation shows their rules plus one judgment of theirs, so it is no longer a pure test of the rules. Asha keeps rejections rare for exactly that reason.

Recording a different real fill

Asha decides to follow part of the strategy with real money, at their own broker. When the first weekly rebalance enters AUROPHARMA at the 9 Nov close of ₹1,855.30, their broker fills the same 55 shares a little higher, at ₹1,858.10.

So they open the holding on Active Portfolio and use Edit Position to record their real average price, with the contract note as the reason. The simulation now matches what they actually own, and its cash moves by the difference.

The Edit Position dialog for AUROPHARMA, CMP ₹1,855.30, with Quantity 55 and Avg Price 1858.10, the note Broker contract note says 1858.10 for 55 shares, a summary reading Quantity 55 → 55 and Avg Price ₹1,855.30 → ₹1,858.10, Cash effect −₹154 and Cash balance after ₹652.15, the notice This reconciles your actual broker execution. It does not change the strategy, and Cancel and Save Changes buttons
A ₹2.80 difference per share, recorded against the contract note

The correction is logged with the note, so it stays visible later:

The Recent Activity card with the entry Trade Price Corrected, AUROPHARMA: entry price ₹1,855.30 → ₹1,858.10. Remark: Broker contract note says 1858.10 for 55 shares, dated 11 Nov 2026, above a Daily Update Completed entry for 9 Nov 2026
The record of the change, with its reason

Monitoring over several rebalances

For the first month, the simulation's Key takeaway tells them what they need to hear:

A Key takeaway card reading Too early to judge, with the note 22 days of history so far; the takeaway appears after 30 days, and the advice to judge it over months, the way its backtest was judged, not by its first few days
Early results are noise, and the screen says so

So they watch the behaviour instead of the number. Over several Mondays they check how often it trades, whether its exits happen for the reasons they expected, and whether its swings are in the range the backtest showed. Where something surprises them, they open Logs to see why.

Trade-offs

Rejecting vs following the rules

Each rejection uses something the rules can't see, and makes the record a little less a test of the rules. Rare and written down is the balance Asha chose.

A faithful record vs a clean one

Recording real fills makes the simulation match Asha's portfolio, at the cost of it no longer being the strategy alone. Which matters more depends on what they use it for.

Patience vs early judgment

A few weeks of results say almost nothing. Waiting several rebalances before judging is slow, and it is the only way the simulation can tell Asha more than the backtest did.

Lessons learned

  • Start from an idea you can state in a sentence, and choose rules that say the same thing.
  • Read a backtest's risk before its return, and decide whether you could have lived through its worst stretch.
  • A simulation is the same rules, forward, with virtual money; its first batch is all entries, and later batches only what changed.
  • The simulation records scheduled trades itself at the close, with virtual money; rejecting is the one decision, and worth keeping rare and noted.
  • If you act at a broker, record your real fills so the simulation keeps matching what you own.
  • Judge a simulation over several rebalances, not its first weeks, and remember that how you implement anything with real money is your decision alone.