Trading Strategy Backtest Excel Model

Capital Markets Financial Model (Excel Download)

Replay a trading rule on past prices with real costs and cash limits. The model tracks every trade, then reports return, drawdown, turnover and results against a benchmark.

Loading...

Used by professionals from

About this model

A model that backtests a long-only moving average crossover strategy. The starting case is a fictional systematic equity strategy with $250,000 of starting cash and 180 daily bars of adjusted open, close and benchmark prices. You set the entry allocation, fast and slow averages, commission, slippage and a fixed fee per order.

Signals use only prior closes and trade at the next open, so there is no look-ahead. Entries buy whole shares after costs and exits sell the full position. A ledger tracks shares, cash, equity, cost basis and realized profit, and blocks any trade that cash cannot fund. Other sheets show daily performance, a filled-order log, a drawdown review and results for three historical windows.

In the case the strategy returns -0.53% against 6.72% for the benchmark, with maximum drawdown of -4.63%, ten filled orders and gross turnover of about 9.5 times. Fees and slippage cost $1,454. A checks sheet tests cash and share rollforwards, the equity to profit bridge, negative cash and duplicate dates.

What every model includes

Live formulas, no hardcoded values

Outputs are driven by live formulas, so the workbook updates from its assumptions instead of relying on hardcoded results.

All assumptions in one tab

Inputs are clearly marked in the Assumptions tab and separated from calculations, making it clear what to change and what to leave intact.

Statements always balancing

For integrated-statement models, the balance sheet, cash flow, and supporting schedules tie through properly.

Distinct schedules for clarity

Debt, working capital, taxes, and cash flow can get messy quickly. We group calculations in clear schedules, not across disconnected tabs.

No hidden macros or external links

There are no unexplained external workbook links or macros to undermine auditability or portability.

Changes flow through the model

Update a key driver and see the impact carry through the forecast, financing, and return outputs. We never use hardcoded numbers in formulas.

What's inside the Trading Strategy Backtest Excel Model

  • Daily price table with adjusted open, close and benchmark close
  • Fast and slow moving average signals built from prior closes only
  • Whole-share position sizing with an entry allocation
  • Commission, adverse slippage and fixed fee per order
  • Trade ledger with cash, shares, equity, cost basis and realized profit
  • Cash check that blocks trades that cannot be funded
  • Total and annualized return, volatility, drawdown and turnover
  • Excess return against a benchmark index
income_statement.xlsx
Income statement, brown brand palette
income_statement.xlsx
Income statement, green brand palette
income_statement.xlsx
Income statement, red brand palette

Formatted to IB standards

Named theme colors repaint the whole workbook in one click, on top of an investment-banking structure with clear input, output, and cross-sheet reference styling - brand-ready, institutional-grade, and fully auditable.

Alex Tapio, ex-Deloitte financial modelling expert

Created by ex-finance professionals

Hey, I’m Alex and I created Finamodel.

Over my years in the finance industry I kept building the same models over and over again. Same structure, same assumptions, different logo. So I started building frameworks to turn them into clean, reusable templates.

Every model here is one I’d actually use for a client, and I personally vet each one before it goes up.

I’m not an expert in every industry, but I’ve built enough models to know what belongs in one. And when something is completely foreign to me, I reach out to my network for experts to work on our models with us.

Having a template library on hand cuts a first build from hours to minutes.

Frequently asked

What is a trading strategy backtest?+

A backtest applies a trading rule to past prices to see how it would have performed. It records each trade, cost and position. The results show return, risk and how the rule compares with simply holding a benchmark.

How does the model avoid look-ahead bias?+

The moving averages use only closes before the current day. A new signal trades at the current day's open. No future price is used to decide a trade.

What happens if cash is too low for a trade?+

The model checks cash before each trade. If the trade cannot be funded, it is rejected with no fee and the prior position and cash stay in place. The blocked count is shown on Assumptions.

What is not included?+

The model is long-only with no leverage, short sales, taxes, borrow costs or interest on cash. Prices are fictional, and past results do not predict future performance.

Can I test other settings?+

Yes. Change the averages, allocation and costs on Assumptions, or paste your own prices on the Prices sheet. If you add more bars, extend the formula ranges.

Have more financial modelling questions? Contact us

Go further

Build the financial model you need with Fina AI

Browse templates, examples, and downloadable Excel models for the analysis you are trying to build. If you can't find your model, ask Fina to build a model for your specific needs.

Excel financial model spreadsheet preview showing Customer Rollforward
Fina interactive chat interface preview
Career Principles

Learn Financial Modelling Skills with industry-leading Career Principles

Breaking into the finance industry? Explore courses in Excel, financial modeling, valuation, data analytics, and AI for business and finance.

Career Principles lesson on preparing a cash flow statement in Excel
Career Principles Financial Analyst Program
Career Principles Python for Data Analysis
Career Principles AI for Business and Finance course