# Backtest Results

Congratulations– you’ve made it to the backtest results screen.

Unless you’ve triggered this screen (below), you should have a bunch of data.[ If you've triggered the screen below, here's a list of common reasons why that may have happened](https://docs.optionomega.com/backtesting/backtesting-faq#my-trade-didnt-work...why-not-another-version-is-this-my-test-worked-but-it-doesnt-have-a-trade-i-th).&#x20;

<figure><img src="/files/mt1T24LE7SD4O1FXvxUv" alt=""><figcaption></figcaption></figure>

### Displayed Metrics

<figure><img src="/files/iJZfKqJKl9pESGxWutWJ" alt="An example backtest results screen for an SPX trade, showing key metrics. "><figcaption><p>Example backtest results screen</p></figcaption></figure>

The Backtest Name (if saved) is displayed at the top, along with sharing link (if enabled), tags, and backtest description. Below, you will see key metrics from the backtest:

* **Strategy Setup**
  * **Underlying**: This displays the tickers for the options being backtested.
  * **Dates:** The range the test ran.&#x20;
  * **Legs:** Shows the leg(s) of the test.&#x20;
  * **Entry Conditions:** Details the entry conditions selected.
  * **Exit Conditions:** Details the exit conditions selected.
  * **Misc:** Details any Misc conditions.&#x20;
* **Backtest Results**
  * **P/L:** Shows the overall realized profit or loss of the strategy during the time range. Unrealized P/L from open trades will not be included. To include open trades in the trade log and in realized P/L use: ‘Close Open Trades on Test Completion’&#x20;
  * **CAGR:** The compound annual growth rate of the strategy during the test. CAGR is based upon net liquidity which uses EOD values including any open trades. See: [CAGR](https://www.investopedia.com/terms/c/cagr.asp). To include any open trades in the trade log use: ‘Close Open Trades on Test Completion”
  * **Max Drawdown:** The max drawdown at EOD. If a trade is open, then the EOD value is used for MDD calculations. If the trade closes, then the loss is used for MDD calculations. (Please note: This is different from the max loss column on the trade log, which  is intraday).
  * **MAR Ratio:** CAGR / MDD. See: [MAR Ratio](https://www.investopedia.com/terms/m/mar-ratio.asp).
  * **Sharpe:** The calculated Sharpe Ratio, or realized returns in excess of the risk-free rate, per unit of total volatility. The Sharpe Ratio only shows if excess returns are positive. See: [Sharpe Ratio](https://www.investopedia.com/terms/s/sharperatio.asp).&#x20;
  * **Sortino:** The calculated Sortino Ratio, or realized returns in excess of the risk-free rate, per unit of downside volatility. The Sortino Ratio only shows if excess returns are positive. See: [Sortino Ratio](https://www.investopedia.com/terms/s/sortinoratio.asp).&#x20;
  * **Win Percentage:** % of trades that are profitable
  * **Total Premium**: The total amount of credit or debit.&#x20;
  * **Capture rate:** The % of the trade value that was realized. The capture rate only shows if net premium is positive.&#x20;
  * **Starting capital:** The amount of $ at the beginning of the backtest.
  * **Ending capital:**  Starting capital +/- profit loss from closed backtests.
  * **Average per trade:** The average amount of $ either profited or lost during the backtest period.
  * **Average winner per lot:** Average amount collected during a winning trade per lot.
  * **Average loser per lot:** Average amount lost during a losing trade per lot.
  * **Max winner:** Highest amount profited during any closed trade (or an ongoing trade if one is open at test completion).
  * **Max loser:** Highest amount lost during any closed trade (or an ongoing trade if one is open at test completion).
  * **Average days in trade:** The average amount of time spent with an open trade.
  * **Trades:** Total number of trades, including an ongoing trade if one is open at test completion.
  * **Open Trades:** This indicates the presence of open trades in the backtest.  Open trades will not appear in trade log but their EOD values are used for NLV based metrics including CAGR, MDD, MAR.  Use ‘Close Open Trades on Test Completion’ to report these trades in the trade log and to include their final values in the total realized P/L.
  * **Winners:** Total number of winning trades, including an ongoing trade if one is open at test completion.
  * **Net Liquidity (Net Liq)**: The sum of the portfolio’s cash, added to the mid-value of any open options position

### Summary Screen

At the bottom of the backtest results screen is the summary screen. It has two main tabs, the Summary and the Trade Log. The summary section has two parts:

<figure><img src="/files/7FKi8BksSeRaQsskgNfT" alt=""><figcaption></figcaption></figure>

The first part is a graph visually representing the trading funds by date in the backtest. For a backtest, the graph will only update when trades close.  Tip: In order to see intra-trade drawdowns of a multi-day trade, you can put the backtest into a portfolio.

Annual metrics bar chart. This is the return of the backtest as well as its maximum drawdown. If the test is multi year, the metric will display the yearly return and the maximum cumulative drawdown in that year (e.g. if the test ends the year 2023 with a 10% MDD, and the drawdown continues an additional 5% in 2024 before recovering, then the MDD shown in the annual metrics bar for 2024 would be 15%). Said another way, the MDD in the annual metrics bar will match the highest MDD reported in the daily log for that year.

The other tab at the bottom of the backtests results screen is the Trade Log.

<figure><img src="/files/L4X7C5Lw2wpfGZBvYQWc" alt=""><figcaption></figcaption></figure>

At the top right of the screen there are several options for customizing the trade log.

<figure><img src="/files/CaqSRrGnGIhLFfisTyCp" alt=""><figcaption></figcaption></figure>

Sort:

Tests can be sorted by opened, closed and P/L.

The next box can sort ascending and descending.

Filter:

The log can be filtered to view only winners or only losers.&#x20;

### Trade Replay

<figure><img src="/files/gnhZjGZ9YnscPF8Ct1RZ" alt=""><figcaption></figcaption></figure>

If you click the three vertical lines on the left, you will be able to see the Trade Replay– how the trade behaved over time. The graph also shows VIX and the underlying.

<figure><img src="/files/48fpeGRrvaTYWlQMYYY7" alt=""><figcaption></figcaption></figure>

A few notes about the Trade Replay chart:<br>

1. The trade replay is based on 1 minute data, so if you’re using IMSL, that will not be reflected.
2. You can click on the Trade, Underlying, and VIX blocks on the upper legend to show or hide each of these plots.
3. You can also mouseover nodes on the line chart to see the exact trade value, underlying price, or VIX level at each point: <br>

   <figure><img src="/files/sMW45qEmw24R9DRvuUaz" alt="" width="563"><figcaption></figcaption></figure>
4. For longer duration trades, the chart defaults to an Overview of the entire trade, scaled appropriately based on the duration. You can switch a Weekly View using the selector on the bottom left to zoom in for a minute-by-minute analysis:<br>

   <figure><img src="/files/dO7pNwrvXfc4VxCeN5mg" alt="" width="328"><figcaption></figcaption></figure>

### Export to CSV

This will export the trade log to a .csv file, so it can be opened and used in Microsoft Excel, Google Sheets, IOS, etc. etc.&#x20;

When a backtest is exported to CSV, the context that is given in the visual trade log on the backtest results screen is lost. Specifically, if you’re wondering about a certain value (e.g. why is my max profit that number), it is helpful to refer to the trade log to see which values are precents vs. raw numbers, etc.

### Trade Log Settings

The gear icon will open up a screen with additional customization choices.

<figure><img src="/files/lGS5i35EpUaMYQGxYVYg" alt=""><figcaption></figcaption></figure>

Clicking on the red/green eye option on the right side of the screen will allow the selection to be turned on or off in the trade log.  The selections are described below:

* **Opened On:** The day, dates and time the trade opened.
* **Opening Price:** Price of the underlying at the time the trade opened.&#x20;
* **P/L:** The amount the trade profited or lost (measured in $)
* **Max Loss:** The maximum loss the trade was “down” (measured in %)
* **Max Profit:** The maximum gain the trade was “up”  (measured in %)
* **Legs:** The quantity, date, strike and type (put/call) of the leg.
* **Premium:** The amount of debit or credit at the time of trade open (impacted by slippage if used).
* **Closing Price:** Price of the underlying at the time the trade closed.
* **Closing Cost:** The amount of debit or credit at the time of trade close (impacted by slippage if used).
* **Reason for close:** The trigger that exited the trade.&#x20;
* **Margin Req’d:** While we have made every effort to have accurate and realistic margin modeling, margin requirements DO vary between brokerages.
* **Funds at close:** Current funds after the trade closed.&#x20;
* **Opening S/L ratio**: Total short premium divided by total long premium.&#x20;
* **Opening S/L ratio**: Total short premium divided by total long premium.&#x20;
* **Opening VIX:** VIX at time of trade open (will not display unless VIX is an entry condition).&#x20;
* **Closing VIX:** VIX at time of trade closed (will not display unless VIX is an exit condition).&#x20;
* **Gap:** Underlying price gap from close of previous day to opening of current day
* **Movement:** Underlying price movement from open of day to opening the trade

### Sorting the trade log

It is possible to sort the trade log using several filters, including Max Profit/Loss, P/L, and Opening /Closing.

You can also sort ascending or descending, and filter winners or losers.

<figure><img src="/files/Ct2xNf0YYNlY8ERhiSed" alt=""><figcaption></figcaption></figure>

### Save, Tag & Share a backtest

If you have a backtest that you want to save, click the down arrow at the backtest results screen.

<figure><img src="/files/sPStlrGomnntHDLUhDSi" alt=""><figcaption></figcaption></figure>

This will bring up the Save Backtest screen, which let’s you either save a new backtest, or save over (replace) an existing backtest.

<figure><img src="/files/ZgdkmiH9jfayFlBIcY1W" alt=""><figcaption></figcaption></figure>

If you select the “Create New Backtest” button, you can now name the backtest, along with a description, and tagging, and sharing.

<figure><img src="/files/eicNGLc7mXMxONaT3STt" alt=""><figcaption></figcaption></figure>

### Adding Tags

Tags are an easy way of organizing your backtests. You can add a new tag by typing and then hitting the plus button

<figure><img src="/files/z28wA0QskhKXxk77MDuG" alt=""><figcaption></figcaption></figure>

The tag will then show up in your backtest name (we have two tags here “Add new tags here!” and “CL” in this example).

[Here’s a video on tagging.](https://youtu.be/KU7wDKYtrV4?si=MFEX7-ekMA3rkwN6)

<figure><img src="/files/hka16hfIDExUea0tBGBM" alt=""><figcaption></figcaption></figure>

### Sharing a test

To share a test, select share test with others when you’re saving the backtest

<figure><img src="/files/XR6KQ12DU0vPkSBl8aLi" alt=""><figcaption></figcaption></figure>

To get the link to the test, just click the chain link button near the test name

<figure><img src="/files/gdydPTiKBacjWPwtzDRx" alt=""><figcaption></figcaption></figure>

[Here’s a video on saving & sharing a backtest ](https://youtu.be/hEQskRrPGZw)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.optionomega.com/backtesting/backtest-results.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
