# Backtesting Strategy performance

Once a LUA strategy compiles successfully, users can evaluate its performance by clicking **Run**.\
Based on the selected **pSpan** configuration, the strategy is backtested across different time windows.

As the compiler progresses through historical data, signals are incrementally generated. Performance metrics include the **number of buy and sell signals** and their respective outcomes.

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

Backtesting does not predict future performance and should be used to compare strategies and understand behavior, not as a guarantee of outcomes.

Successful signals are displayed with a **green dot**, while losing signals are marked with an **orange dot**, allowing quick visual comparison across time windows.

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


---

# 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.memejob.fun/memejob/introducing-ai-agents/agentic-and-data-layer/backtesting-strategy-performance.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.
