How This Works

A plain-English guide to testing your trading ideas — no coding, no jargon you can't look up in two minutes.

Launch Builder →

1 What Is This?

Say you have a trading idea — like "buy when the price crosses above its 20-day average." Instead of trading it live and hoping it works, you can test it on years of past data first, in seconds.

You tell the tool two things: when to buy a stock, and when to sell it. It then goes back through history, day by day, pretending to trade your rules on real stock prices — and shows you what would have happened.

No coding needed. You build rules by picking options from dropdowns and typing numbers — like assembling Lego blocks.

2 Set Up Your Test

Before building any rules, fill in a few basics on the left side of the builder — think of it as setting the stage for your test.

Dates & Market

Pick which stocks to test on (like NIFTY 50) and a date range. Try to include both a good year and a bad year for the market — a strategy that only works when everything's going up isn't proven yet.

Brokerage & Slippage

This is the small fee you'd actually pay a broker on every trade. Leave it at 0 and your results will look better than real life — always put a realistic number here (0.1% is a reasonable default).

3 Buy & Sell Rules

Every rule is just a sentence comparing two things. It always reads left to right: this value, then a comparison, then that value.

Closeis greater than >EMA (20)

In plain words: "Buy when today's closing price is higher than its 20-day moving average." That's the whole rule.

Looking at Past Days

Next to most values, there's a small number box — that's how many days back to look. Leave it at 0 for "today." Change it to check yesterday, or the day before.

  • Close, box = 0 → today's closing price.
  • High, box = 1 → yesterday's highest price.

4 Combining Rules

Sometimes one comparison isn't specific enough — you want to do a bit of math first. Click + Term to add another value, and connect them with +, -, ×, ÷.

Example: A Gap Up Morning

Today's Open > Yesterday's Close × 1.02

Buys when the stock opens at least 2% above where it closed yesterday — a classic "gap up."

Grouping Things Together

Need to do math on a group of values before comparing? Pick Bracket to group them, or Abs to always get a positive number (ignoring plus/minus).

Abs(Open − Close) <= Bracket(High − Low) × 0.1

This spots a "Doji" candle — a day where the price barely moved from open to close, relative to its full range. You don't need to memorize this one; it's here as an example of how grouping works.

5 Picking Winners

Some days, 15 different stocks might all match your buy rules at once. But you don't have unlimited money — so which ones do you actually buy?

That's what Tie Breaker is for. It ranks all the matching stocks by something you choose, and picks the top ones.

📊

A common choice: highest volume

Setting: Highest (MAX) of Volume — picks whichever matching stocks are being traded the most that day.

6 Reading Your Results

Equity Curve

This green line is simply "how much money you'd have" over time, if you'd actually traded this strategy. You want it to climb steadily. If it zig-zags wildly up and down, the strategy is a rougher, riskier ride than the end number alone would suggest.

Max Drawdown

This is your worst moment — the biggest drop from a high point to a low point. A -20% max drawdown means that at the strategy's worst point, you'd have been down 20% from your peak. As a rough guide, try to keep this above -25% — bigger drops are hard to stomach in real trading, even if the strategy recovers later.

7 Example Strategies

Four examples below, each showing a different trick you can use in the builder. The rows are shown exactly how they'll look on the Custom Backtest page.

🚀

Breakout

Using percent change, and requiring two things to both be true at once.

This looks for a stock that is moving fast and being traded a lot at the same time. If the price jumps but nobody is buying it, that could just be noise. But if the price jumps and a lot of people are trading it, that's a stronger sign something real is happening. There's no sell rule — you just get out using stop loss or target.

BUY% Change Close>5
AND(this row must also be true)
BUY% Change Volume>50

Exit: Stop Loss 5% · Take Profit 10%

🕯️

Doji Reversal

Using Abs to ignore whether a number is positive or negative.

Abs just means "turn the number positive." Here, it doesn't matter if the price ended slightly higher or slightly lower than it opened — we only care that it barely moved. That's a sign buyers and sellers were stuck in a standoff, which often happens right before the price flips direction.

BUYAbs(Open − Close)<=Bracket(High − Low)×0.1
SELLRSI(14)>70
📈

Trend Rider

Stacking two buy rules that must both pass.

Every buy row you add has to be true at the same time. Here, the price must be above the trend line, and the momentum must also be pointing up. Asking for both to be true at once means fewer bad trades than checking just one.

BUYClose>Supertrend
AND(this row must also be true)
BUYMACD Line>0
SELLClose<Supertrend
🔄

RSI Bounce

Stacking two sell rules — either one can trigger the exit.

Sell rows work differently — you get out as soon as any one of them comes true, not all of them. So here, you sell either when RSI shows the bounce is over, or earlier if the price drops back below its 20-day average — whichever happens first.

BUYRSI(14)<30
SELLRSI(14)>60
OR(or this row fires)
SELLClose<EMA(20)

Ready to try it yourself?

Go to the Builder