# Strategy management (Backtest box)

This box allows you to manage the general settings of your strategy and ask for a backtest.

<figure><img src="https://793384675-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsQezxfp9oB9jrccv5OA4%2Fuploads%2FFQAhAuAbp1LkWp4dYqNq%2Fimage.png?alt=media&#x26;token=fa1cdfc9-e036-4731-8a62-bd9e38dd4b06" alt=""><figcaption><p>Runbot Backtesting Configuration Box</p></figcaption></figure>

***

### Request a backtest

To run a backtest with the parameters of your strategy, click <img src="https://793384675-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsQezxfp9oB9jrccv5OA4%2Fuploads%2FT8duLYCYadvXhtPQTxBV%2Fimage.png?alt=media&#x26;token=862dbc9a-35e8-4571-b579-bdb7822a0067" alt="" data-size="line"> . Results will be displayed on the Backtests Infos Boxes.&#x20;

With the full Runbot version, you can run backtest up to 3 years of history. However, you need to select an exchange to backtest your strategy. It will use this specific exchange datas to calculate your results.

&#x20;Results can be different between DYDX and Binance for exemple, because of multiple reasons: \
\- DYDX is a more recent exchange and only has 2 years of data, but Binance has 3+ years.\
\- Prices can be different on both exchanges, there is always a slight difference. \
\- Liquidity can be very different between both exchanges. Binance tends to have more liquidity than DYDX, so slippage effect might be less important.\
\- Bitget does not support yet 3 years of datas because of the specificity of the exchange/API

***

### Delete a strategy

To delete your strategy by clicking here ![](https://793384675-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsQezxfp9oB9jrccv5OA4%2Fuploads%2F874Sx9iAGM8KQ6gz8X4X%2Fimage.png?alt=media\&token=813bb78c-c918-45eb-97df-10abf3b34300). If you didn't export your strategy before, you won't be able to recover it.

***

### Dupplicate a strategy

To dupplicate a strategy, click ![](https://793384675-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsQezxfp9oB9jrccv5OA4%2Fuploads%2FTVMX0V11Ca9QmC29BtDk%2Fimage.png?alt=media\&token=c0139f0f-daa3-4192-ac2d-a3551803933e). The strategy will be dupplicated directly on your [Strategy List Box](https://docs.runbot.io/strategy-boxes/strategy-list).

***

### Export a strategy

To export your strategy, click ![](https://793384675-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsQezxfp9oB9jrccv5OA4%2Fuploads%2FN4Kx2mzVsGLwtsiv8vfD%2Fimage.png?alt=media\&token=7fc53ea6-067d-4033-9c26-6b0234b34c9f).

***

### Initial capital

To run a backtest and simulate your capital, enter your amount: ![](https://793384675-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsQezxfp9oB9jrccv5OA4%2Fuploads%2Fy1MAeqAL1Ui4O7HhtgpA%2Fimage.png?alt=media\&token=39d49b77-5497-4493-91d8-7baaf14f9b0c)\
Initial capital will be used to calculate the leverage applied to your trades after you specified a size order in the [Position Size Rules Box](https://docs.runbot.io/risk-management-boxes/position-size).

***

### Select a range period for your backtest

To select a range period for your backtest, click ![](https://793384675-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsQezxfp9oB9jrccv5OA4%2Fuploads%2F7E2AbJyQGpQUgNoWQqhV%2Fimage.png?alt=media\&token=dc1b8593-9641-4fb2-a174-f0e8b72fbec7)

***

### Taker fees

You can enter your exchange Taker fees (looking at your exchange, but also your potential fee reductions) <img src="https://793384675-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsQezxfp9oB9jrccv5OA4%2Fuploads%2F2mUyxbhAAG25dCFgRfCp%2Fimage.png?alt=media&#x26;token=e510184e-99cb-4cf2-934f-552fabf394be" alt="" data-size="line">

There is no maker fees, as Runbot is using Webhooks and only Taker (Market) orders can be executed that way.

***

### Backtest History

&#x20;<img src="https://793384675-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsQezxfp9oB9jrccv5OA4%2Fuploads%2FijMRRZpAkixPAHkhSXKG%2Fimage.png?alt=media&#x26;token=629a3672-d261-4bbd-a929-b8368a6c0e09" alt="" data-size="original"> The backtest history will help you to compare the backtests results of your new parameters of your strategy from the old ones. The Base, is the current strategy and the only one you can modify. \
\
Each time you run a backtest after you changed a specific parameter, the old version of your strategy will be saved in the backtest history. This feature allows you to compare the new backtest with the new parameters versus the older configuration. \
\
You can save up to 9 backtests history, after that the older backtests will be deleted.

***

### Signals

By default, you have 4 signals, long, shorts, cancel, and stop. To learn more about signals, go to the [Signal list](https://docs.runbot.io/how-it-works/signal-list).\
If you need more signals, you can create your own custom signals by clicking ![](https://793384675-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsQezxfp9oB9jrccv5OA4%2Fuploads%2FPyHFNe6sqBAjGghFRDRU%2Fimage.png?alt=media\&token=031005e4-8780-45b4-b81a-82f4bc254d4f). Choose a name and use your own signal in other boxes!&#x20;

***

### Notes

You can write any notes you need for your strategy in here![](https://793384675-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsQezxfp9oB9jrccv5OA4%2Fuploads%2FWyvUxVAj8amo14rbr9Jh%2Fimage.png?alt=media\&token=bd827287-4c79-45db-8611-85c7044fd8cb).

***


---

# 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.runbot.io/strategy-boxes/strategy-management-backtest-box.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.
