It judges your record, not your future.
A high number means your past results are hard to explain by luck. Markets change, and an edge that was real can stop working.
A winning streak can be luck, especially after trying a few setups. Load the trades of one strategy and see the chance its edge is real, once every setup you tried is counted.
Free, open source, and private: your trades are read in your browser and never uploaded.
The page opens on a made-up example. Drop your own export to replace it.
Keeps every entry from your trade file and replays it on your own price bars with each stop size. Trying many stops is itself a search, so each one is counted, and a stop that only looks better by luck is reported as luck.
Breakeven 0 means the stop never moves. Your bar file is read in your browser and never uploaded.
Load a trade file above and a bar file here to see how different stops would have done.
Assumes every stop and target fills at its exact price. When one bar reaches both, the stop counts. Real fills can be worse.
A high number means your past results are hard to explain by luck. Markets change, and an edge that was real can stop working.
Test five ideas and keep the best, and the best looks good even if none of them works. The check asks what the best of your setups would have shown with no edge at all, and holds your results to that bar.
Commissions turn a flat trade into a losing one. Breakevens are counted apart from wins and losses, with what they cost you, and fees are subtracted unless your P&L already includes them.
The method is the Probabilistic and Deflated Sharpe Ratio of Bailey and López de Prado (2012, 2014). It assumes the setups were independent and tested on a similar number of trades. Tested on simulated traders with no edge, it wrongly called an edge proven about 5% of the time for one setup, and about 1% or less for five or more.
Export the closed trades of one account, then pick one strategy in the check. Menus change between versions: if yours look different, look for Export on the trades or history view.
Open the Trades tab at the bottom of the platform (not Orders), choose the date range and click Export. If the file has separate fee columns, keep subtract fees on.
Open the Trades panel, choose Export data from its menu, tick all columns, pick comma-separated and export. Fills that share a position ID are combined into one trade, using the Net P/L column. For the stop lab, export bars from the History exporter.
Control Center, New → Trade Performance, choose the account, strategy and dates, click Generate, open the Trades view, then right-click and Export. Check whether your Profit column already includes commission, and set subtract fees to match.
Monitor → Account Statement, set the dates, then Export to File from the menu at the top right. Buys and sells in Account Trade History are paired into round trips, first in, first out. Commissions are not in that section, so results are before fees. The stop lab does not read thinkorswim files yet.
The Deflated Sharpe Ratio, the Probability of Backtest Overfitting and purged cross-validation for backtests. Every worked example in the source papers reproduces, and this page is tested against the library.
pip install git+https://github.com/TheMarketMakerHoldings/algobacktesting
Python 3.11 or later, NumPy and Git.