Rajandran R Creator of OpenAlgo - OpenSource Algo Trading framework for Indian Traders. Building GenAI Applications. Telecom Engineer turned Full-time Derivative Trader. Mostly Trading Nifty, Banknifty, High Liquid Stock Derivatives. Trading the Markets Since 2006 onwards. Using Market Profile and Orderflow for more than a decade. Designed and published 100+ open source trading systems on various trading tools. Strongly believe that market understanding and robust trading frameworks are the key to the trading success. Building Algo Platforms, Writing about Markets, Trading System Design, Market Sentiment, Trading Softwares & Trading Nuances since 2007 onwards. Author of Marketcalls.in

Understanding Amibroker Backtesting Metrics — A Simple Guide for Traders

7 min read

“Backtesting isn’t about finding the prettiest equity curve. It’s about finding a system that can survive real trading.”


When you “Backtest” your trading strategies in Amibroker, a detailed report appears—filled with numbers, percentages, and stats. For most traders, this screen is either exciting or overwhelming. But here’s the thing: learning how to read these metrics might be the difference between a strategy that works and one that breaks your capital.

This article simplifies those numbers so even part-time or self-taught traders can confidently read their results and avoid the most common backtesting traps.


Why Backtesting Metrics Matter?

Backtesting shows how your strategy might have worked in the past. But it can also be deceptive. Metrics help answer deeper questions:

  • Is your strategy stable or just lucky?
  • What’s the worst-case drawdown?
  • Can you handle those bad days emotionally and financially?
  • Is your system too good to be true (i.e., overfitted)?
  • Can it survive real-world market noise?

If you skip reading the report properly, you’re likely to put real money into an illusion.


The Core Metrics That Matter (Explained Simply)

Let’s break down Amibroker’s backtest metrics with real-world meaning:


1. Net Profit %

How much your system earned overall.
Nice to look at—but don’t stop here. This number hides the emotional cost of getting there.


2. Annual Return % (CAGR) — Is Your Strategy Better Than Just Holding NIFTYBEES?

Let’s be real: if your backtested strategy can’t beat buying and holding an index ETF like NIFTYBEES, then why bother?

NIFTYBEES (which tracks the NIFTY 50) has delivered 10% to 12% CAGR over the long term. And it requires zero effort—just one click and chill.

So here’s the benchmark:

StrategyApprox. Annual Return (CAGR)
NIFTYBEES (Buy & Hold)10-12%
Warren Buffett (since 1965)~20.1%
Renaissance Medallion Fund~66% (before fees)

If your strategy earns 8% a year with 25% drawdown, you’re doing a lot of work to underperform BUY and HOLD Investors

Ask yourself:
Is this system doing better than a passive index fund?
Does it justify the extra risk, time, and stress?

If the answer is no, you may be better off sticking to long-term investing with NIFTYBEES and revisiting your strategy.


3. Max System Drawdown % — The Pain You Can’t Ignore

Most traders get excited about profits. But smart traders focus on losses—specifically, how deep and how long those losses last.
That’s exactly what Max System Drawdown tells you:

The worst dip from your portfolio’s peak to its lowest point during the backtest.

If your backtest shows a 35% drawdown, it means that at some point, your ₹10 lakh capital became ₹6.5 lakh.
Would you have stuck around?

Here’s why this matters:

  • It’s not just about how much you lose. It’s how long you stay in the red.
    A -20% drawdown that recovers in 10 days feels very different from one that takes 6 months to bounce back.
  • Length of drawdown = psychological pressure
    Even a “good” strategy becomes unbearable when your equity curve is underwater for months. Traders start second-guessing, skipping trades, or switching systems.
  • Your Emotional Quotient (EQ) is tested more than your IQ.
    The markets will test your patience before they reward your logic.

“Most people don’t blow up their accounts because their strategy was bad—they blow up because they couldn’t sit through the tough phases.”

Real Talk: Drawdowns Are Personal

Some traders are okay with 30% dips. Others can’t sleep if they lose 5%.
Your system’s drawdown should match your emotional capacity, not just theoretical risk.


4. Exposure %

Tells you how often your strategy is active in the market.
🚦 If you’re only exposed 30% of the time but earning solid returns, that’s a sign of efficiency.


5. RAR/MDD – Are You Being Rewarded for the Risk You Take?

Let’s say two strategies both make 20% annual returns.

  • Strategy A runs 24/7, always in the market, exposed to every possible swing.
  • Strategy B only takes trades 30% of the time—and earns the same 20%.

Which one’s smarter?

The answer: Strategy B.
Because it earned the same return while taking far less risk. That’s exactly what Risk-Adjusted Return shows you.

This shows if your system is making good use of risk.
👍 If this value is over 2, the strategy is both smart and safe.
🔻 Below 1? Risk might outweigh reward.


6. Profit Factor — The Classic Test of Whether Your System Actually Works

Profit Factor = Total Profits from Winning Trades ÷ Total Losses from Losing Trades

This is one of the simplest but most powerful metrics in your backtest report.

It answers a basic question:
“For every ₹1 I lose, how much do I make?”


💡 Example:

  • If your profit factor is 1.5, you’re earning ₹1.50 for every ₹1 lost.
  • If it’s 0.9, you’re losing more than you make — even if your strategy feels profitable.

What to Aim For

Profit FactorWhat It Means
> 2.0Very strong — high edge
1.3 to 2.0Solid, dependable system
1.0 to 1.3Needs work — may be sensitive to slippage/costs
< 1.0Losing strategy — even if it’s winning often, it’s bleeding money overall

Real-World Insight

Some strategies have high win rates but terrible profit factors.

For example:
Winning 90% of trades but earning ₹10 and losing ₹100 when you’re wrong = 💣 disaster.

That’s why profit factor is so valuable — it ignores win rate hype and zooms in on net impact.


7. Expectancy (Average Profit Per Trade)

Expectancy — How Much Do You Really Make Per Trade?

This is the heart of any backtest. Expectancy tells you, in plain language:

“On average, how much do I win (or lose) each time I take a trade?”

It combines win rate, average win, loss rate, and average loss into one powerful number.


📊 Formula:

Expectancy = (Win Rate × Avg Win) − (Loss Rate × Avg Loss)

You can also look at it in percent terms or absolute ₹ value (Amibroker shows both).


💡 Example:

  • Win rate = 40%
  • Avg win = ₹500
  • Loss rate = 60%
  • Avg loss = ₹200

Expectancy = (0.4 × 500) − (0.6 × 200) = ₹200 − ₹120 = ₹80 per trade

That means if you take 100 trades, your strategy is expected to make ₹8,000 — even with just a 40% win rate!


🎯 Why It’s So Useful

  • Cuts through noise. Doesn’t care how “beautiful” the equity curve looks.
  • Shows whether your edge is real.
  • Tells you if scaling up makes sense.

Even with low accuracy, a positive expectancy can be profitable.
Expectancy × Number of Trades = Long-term edge.


What’s a “Good” Expectancy?

  • Positive and rising = your system is reliable
  • Flat or negative = system needs improvement
  • Combine this with Profit Factor and Payoff Ratio to get a clear view of trade quality

Trading Psychology Angle

A system with high expectancy but low win rate will test your discipline.
You’ll lose more often than you win—but when you win, you win big.

“Expectancy helps you focus on process over outcome. It reminds you: a single trade doesn’t matter—your edge plays out over time.”


8. Recovery Factor — How Fast Can Your Strategy Bounce Back?

Let’s say your trading system went through a rough patch and lost ₹1,00,000.
Now imagine it took ₹3,00,000 in profit just to climb back from that hole.

That’s what Recovery Factor is about.

Recovery Factor = Total Net Profit ÷ Maximum Drawdown

It shows how well your system recovers from its worst moment.
And in live trading, recovery speed matters just as much as profitability.

Why It’s Crucial

Every strategy will fall at some point. The real question is: how fast does it get back up?

  • If a system takes a ₹1 lakh loss and makes only ₹1.5 lakh overall — that’s weak recovery.
  • If it makes ₹5 lakh after a ₹1 lakh drawdown — that’s solid.

What’s a “Good” Recovery Factor?

Recovery FactorMeaning
> 2.0Strong system — recovers well from drawdowns
1.0 to 2.0Average — not bad, but recovery might be slow
< 1.0Caution — you may spend more time digging out than building wealth

Emotional Angle

Ever held a position during a drawdown and waited… and waited… and waited for it to come back?

That emotional fatigue is real.

  • A low Recovery Factor means longer wait times, more self-doubt, and higher chances of you abandoning the system right before it turns profitable again.
  • A high Recovery Factor means your system is resilient. It doesn’t just survive pain—it comes back swinging.

“In the markets, resilience isn’t just about avoiding losses—it’s about how fast you recover from them.”


9. Payoff Ratio

How big your wins are compared to your losses.
Even a 30% win rate can work if your average win is 3x your average loss.


10. Sharpe Ratio — Are Your Returns Worth the Rollercoaster?

The Sharpe Ratio isn’t just another fancy number—it tells you something deeply important:

“Is this strategy giving me smooth, consistent returns, or is it making me rich one day and miserable the next?”

It measures how stable your returns are in relation to the amount of risk you’re taking.
The higher the Sharpe Ratio, the more peaceful your trading life will be.

Let’s simplify this:
It shows whether your strategy’s returns are steady or all over the place.

  • Above 1 = Good
  • Above 2 = Very reliable
  • Below 1 = Could be too bumpy to handle in live trading

11. CAR / Max Drawdown — The Ultimate Risk-to-Reward Test

If you had to pick just one number to judge a trading strategy, this might be it.

CAR/MDD = Compounded Annual Return ÷ Maximum Drawdown

It tells you how much return you’re getting for every unit of pain the strategy puts you through.


💡 Think of it Like This:

You’re comparing two systems:

  • System A returns 18% per year with a max drawdown of 9%
  • System B returns 25% per year but with a drawdown of 30%

Let’s do the math:

  • System A: CAR/MDD = 2.0
  • System B: CAR/MDD = 0.83

Even though B looks more profitable on paper, A is the better long-term bet—it gives more return per unit of risk.

What’s a Good CAR/MDD?

CAR/MDD ValueInterpretation
> 2.0Excellent – returns far outweigh the pain
1.0 to 2.0Acceptable – balanced risk and reward
< 1.0Caution – you’re taking on more pain than it’s worth

Why Traders Love It

  • Combines return and drawdown into a single, powerful ratio
  • Easy to compare across strategies and timeframes
  • Forces you to think like a fund manager: “Is the juice worth the squeeze?”

“High profits are great. But if you had to sit through months of losses to get there, would you still do it?”

A high CAR/MDD answers “yes” more confidently than any other metric.

12. Ulcer Index — The Anxiety Score of Your Strategy

“How much time does your equity curve spend making you nervous?”

The Ulcer Index doesn’t just look at losses—it looks at the depth and duration of every drawdown.
In short: it measures the pain of holding on.

Where max drawdown shows the worst dip, the ulcer index tells you how often and how long you were underwater.


💡 Think of it like a stress meter:

  • Did your strategy fall and bounce back fast? 👍 Low ulcer index.
  • Did it dip, drag for weeks, and only slowly crawl back up? 😬 High ulcer index.

Why This Matters

Two systems can have the same max drawdown—but totally different experiences.

System ADrawdown: -20%, Recovery in 3 days
System BDrawdown: -20%, Recovery in 4 months

Both show -20% drawdown. But System B causes more ulcers.

“The longer you’re underwater, the harder it is to follow the system.”


Common Mistakes to Avoid

1. Overfitting

If your strategy looks perfect on past data, it’s probably too customized—and might fail going forward.
🛑 Solution: Use simple rules and fewer parameters.


2. Using Future Data by Mistake

If you use today’s close price to make a decision today, you’re cheating.
✔️ Always use the next bar for actions like entry or exit.


3. Ignoring Trading Costs and Slippage

What looks profitable on paper may fail once you add brokerage fees and missed fills.
💸 Always include realistic costs—especially if you’re an intraday trader.


4. Forgetting Statistical Confidence

Even if your results look good, ask: Was it just luck?
🧪 Tools like Monte Carlo simulations and bootstrapping can help test if your strategy is truly reliable.


5. Skipping Market Regime Analysis

Your strategy may shine in bull markets and collapse in sideways ones.
🧭 Always test performance across different market conditions—bull, bear, sideways.


How to Read Amibroker’s Color Codes

Amibroker gives you a visual nudge:

  • 🟢 Green = Strong performance
  • 🔵 Blue = Neutral
  • 🔴 Red = Caution

But don’t just follow the colors blindly. A 25% drawdown in red might be fine for your risk appetite—if recovery is strong.


Final Take: Don’t Just Chase Profits—Read the Story

Think of backtest reports like a health check. Net profit is your weight.
But drawdowns? That’s your blood pressure.
Profit factor? That’s your stamina.
Sharpe ratio? Your stress level.

The better you understand these, the more confidently you can trade live—without sleepless nights.


TL;DR for Busy Traders

  • ✅ Focus on drawdown, risk-adjusted return, expectancy, and payoff ratio.
  • ⚠️ Avoid overfitting and ignoring slippage.
  • 🧠 Backtesting isn’t about perfect past results—it’s about building trust in your system.
  • 🧪 Test across market conditions. Use walk-forward tests.
  • 📉 If you can’t survive a 30% drawdown on paper, don’t expect to survive it live.

Would you like a printable backtesting checklist? Or maybe a walkthrough on using Amibroker’s Report Explorer for side-by-side strategy comparisons?

Drop a comment or reach out—I’ll be happy to write that next.

Rajandran R Creator of OpenAlgo - OpenSource Algo Trading framework for Indian Traders. Building GenAI Applications. Telecom Engineer turned Full-time Derivative Trader. Mostly Trading Nifty, Banknifty, High Liquid Stock Derivatives. Trading the Markets Since 2006 onwards. Using Market Profile and Orderflow for more than a decade. Designed and published 100+ open source trading systems on various trading tools. Strongly believe that market understanding and robust trading frameworks are the key to the trading success. Building Algo Platforms, Writing about Markets, Trading System Design, Market Sentiment, Trading Softwares & Trading Nuances since 2007 onwards. Author of Marketcalls.in

One Reply to “Understanding Amibroker Backtesting Metrics — A Simple Guide for…”

Leave a Reply

Get Notifications, Alerts on Market Updates, Trading Tools, Automation & More