# Backtesting

### Backtest 0DTE and next-day options strategies

Run a backtest using multiple entry and exit criteria, position settings, and technical indicators to analyze detailed performance history for all your ideas.

### Compare and combine multiple backtests

Quickly add multiple variations to stress-test different variations and variables to improve performance. Then, combine the results of multiple strategies into one portfolio curve.

### Detailed logs of every trade for full transparency

Extensive logging gives you confidence in the backtest your running before going live with a strategy. Every backtest includes detailed trade logs in case you want to dive into historical data.

### Create a bot to automatically trade your new strategy

Once you've found a backtest you love, instantly turn that backtest into an automated bot that trades the exact same strategy you backtested. Then, let your new bot find and manage trades for you.


---

# 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.optionalpha.com/tools/backtesting.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.
