# Backtest check: method and source code

The backtest check reads the CSV of a backtest you already ran and computes Sharpe, PSR, DSR, minimum track record length, skewness, kurtosis and maximum drawdown. These are conditional statistical readings. The strategy verdict stays NOT CONCLUSIVE because a CSV cannot verify the app's out-of-sample, cost, benchmark and selection prerequisites. To check a file, drop it on the [app window of the home page](https://stochastly.com/#check): the figures are computed on our server, without the desktop app.

Three formats are read: returns per period, an equity curve, or trades with a date and a profit or loss. A fourth, a matrix with one column of returns per configuration tried, adds the probability of backtest overfitting. The sections below give the formula of each figure, and the code that computes them is public.
[Stochastly / stochastly-calculatorsPublicThe code of this check and of the free calculators, one folder per calculation, each with its test. The backtest check is in its backtest-check folder.TypeScriptMIT licenceView the source on GitHub](https://github.com/Stochastly/stochastly-calculators)

To run a full backtest from Claude, Cursor or VS Code, the MCP launcher connects them to the engine of the desktop app: [Stochastly/stochastly-mcp](https://github.com/Stochastly/stochastly-mcp), MIT.

## Public results

The public counter shows desktop-app GO / NO-GO verdicts separately from statistical CSV reports published from the check; it is read from the database each time the page is served: https://stochastly.com/check.

---
Source: https://stochastly.com/check
