# Backtest logic and execution

Well done! If you're reading this article then that means you've backtested at least one of your strategies. If you haven't then we'd highly recommend you test it at least once and then come back to this article for context.

## The Logic <a href="#h_090eda9d23" id="h_090eda9d23"></a>

We've divided the backtest into two categories depending on what your risk appetite is :\
1\. Risk Tolerant\
2\. Risk Averse

By default - The backtest runs on a simultaneous execution mechanism.

### Risk Averse <a href="#h_102547d180" id="h_102547d180"></a>

If you are more risk averse or you do not want to take risk then we recommend you to run backtest on a sequential execution basis.\
​\
​Sequential execution basis\
​

Sequential execution means that a new order only opens if the existing order in the queue has been closed.\
This will result in less number of trades being generated in the report, however, you will get better clarity on key metrics like holding period, and drawdown. Additionally, we categorise this into Risk Averse category since the exposure at a time is limited to the Stoploss calculated by the strategy.

### Risk Tolerant <a href="#h_029e2433bc" id="h_029e2433bc"></a>

Simultaneous execution means that a new order opens whenever a signal is generated. Doesn't matter what the status of the previous order(s) is.

\
This will result in high number of trades being generated in the report, however, you will get less clarity on key metrics like holding period, and drawdown. Additionally, we categorise this into Risk Tolerant category since the exposure at a time can be maximum (100% capital allocated to the strategy/open orders).


---

# 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://trylevel2.gitbook.io/getting-started/technical/backtest-logic-and-execution.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.
