Tickers
Strategies

Backtesting

A backtest applies your strategy's conditions to past prices to show how many trades it would have opened and how much it would have made or lost. In this lesson you learn how to run one and how to read its result.

Open the Backtest window

  1. Open My Space → My Strategies, then press the strategy's name to open the Edit Strategy page.
  2. At the bottom of the page, next to Save, press Backtest.
The bottom of the Edit Strategy page with the Save and Backtest buttons
The Backtest button at the bottom of the strategy page.
Tip: the backtest uses the conditions on the page right now, even if you have not saved them yet. Try, adjust, then press Save when you are happy with the result.

Set up the test

  • Watchlist: the stocks to test on, from your own lists.
  • Price to use: Average Price or Close Price to work out the entry and exit prices.
  • Starting Amount: the virtual capital at the start of the test.
  • Shared between all Symbols: when on, one amount is shared by all the stocks instead of a separate amount for each stock.

Then press Run and wait a moment for the result.

The Backtest window with the watchlist, price and amount settings and the Run button
The backtest settings.

Read the result summary

The result starts with a short summary:

  • Transactions: the number of buys and sells.
  • Profit/Loss: the profit or loss as an amount and as a percentage.
  • End Amount: what the amount became at the end of the test.

Then a symbol rating table: for each stock, its successful trades out of all its trades, its win rate, and 1 to 5 stars.

The transactions table

At the bottom is a table of every transaction: Date, Symbol, Operation, Price, Quantity, Profit/Loss and P/L %.

  • S/L next to a sell: the sell happened because the price reached the stop loss.
  • If before a sell: the trade is still open, and its result is worked out as if it were sold at the current price.
Note: past results do not guarantee future results. The backtest is a tool to learn and improve your strategy, not investment advice.

What next?