> For the complete documentation index, see [llms.txt](https://docs.memejob.fun/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.memejob.fun/memejob/introducing-ai-agents/agentic-and-data-layer/backtesting-strategy-performance.md).

# Backtesting Strategy performance

Backtesting allows you to evaluate how a strategy would have behaved on historical data before using it in live conditions. It helps assess signal quality, consistency, and basic risk characteristics.

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="https://897900350-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FKhUXaImWWcKZlCYaNw6T%2Fuploads%2FJuxavMBFUYhfylPgSxqb%2Fimage.png?alt=media&amp;token=b8a44952-ca2b-4ce7-b9dd-a56d3cbc0067" 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="https://897900350-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FKhUXaImWWcKZlCYaNw6T%2Fuploads%2FdBVIBubwYUTi6Lc8BNYo%2Fimage.png?alt=media&amp;token=c67e4a46-78cd-4744-9720-ae8d9cc6bc86" alt=""><figcaption></figcaption></figure>
