# Trade Simulation

### Overview

Trade Simulation allows you to replay historical entries, take-profits, and stop-losses on your charts, showing how AstraAlgo signals would have performed in the past.

{% hint style="danger" %}
For certain instruments, such as US futures, set the trading amount to a specific number of contracts, as partial contracts are not supported.
{% endhint %}

***

### Functionality

By visualizing past trades, you can evaluate the effectiveness of different signal modes, stop-loss lookback periods, and risk/reward settings.&#x20;

<figure><img src="https://3113917155-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FxV91cNNQkONgozNmjlhi%2Fuploads%2Fjyg2bJgGsdlrdifpL9X8%2F33.PNG?alt=media&#x26;token=f0ebf33d-42ab-4044-9d82-be85f973e03c" alt=""><figcaption></figcaption></figure>

Custom TP and SL percentages can also be tested to see how adjustments would have impacted historical outcomes.

<figure><img src="https://3113917155-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FxV91cNNQkONgozNmjlhi%2Fuploads%2FKapPrVJPB0PwsSxnrale%2F34.PNG?alt=media&#x26;token=4973f6b7-f7de-4471-a10d-6944db757949" alt=""><figcaption></figcaption></figure>

***

{% hint style="info" %}

#### Usage Tips

Use Trade Simulation to identify patterns, assess strategy performance, and refine your approach before applying signals in live trading.
{% endhint %}

***


---

# 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.astraalgo.com/toolkits/backtester/trade-simulation.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.
