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