Is your trading edge real, or luck?
Import one strategy's trades from TradingView, TopstepX, Quantower, NinjaTrader or thinkorswim. The check holds your results to what the luckiest of the strategies you tried would have made with no edge at all, using the Deflated Sharpe Ratio (Bailey and López de Prado, 2014).
It runs in your browser. Your files are never uploaded, there is no sign-up, and there is nothing to buy.
One strategy, one honest answer
The page opens on a made-up example. Drop your own export to replace it.
Strategy check · algobacktesting.com
Statistics about past results. Not financial advice.
Your trades
Kept in this browser on this device, never uploaded. Compare saved strategies in the Compare section.
Verdict
Chart
Would this strategy pass an evaluation?
Replays the trades from the check above in random order, 5,000 times, under an evaluation's rules, and counts how often you pass or blow the account. Firms change their rules: check yours and type them in.
Load or paste trades in the check above to run the simulator.
When does your strategy actually work?
Splits the trades from the check above by hour of day or by weekday. Looking at many slices is itself a search, so each slice's chance of being real counts every slice you looked at.
Results by time
Import a trade file with trade times in the check above to see this.
Chance it's real: how sure you can be that the hour's result is a real pattern that would repeat, not a lucky or unlucky streak. For a winning hour it is about its profits; for a losing hour, about its losses. Only act on an hour at 95% or more. "Too few trades" means under 5, too few to judge.
Which setup is really better?
Pick two strategies you saved, or two groups from your trade file: long against short, or two contracts. See them side by side, and how likely it is that the better one is really better.
Side by side
Import a trade file in the check above to compare its strategies.
Each group needs at least 20 trades. Groups from the file follow the check's fee setting; a saved strategy keeps the fees and setups count it was saved with. Only compare trades that do not overlap: a strategy against part of itself is not a fair test. Comparing many pairs and keeping the most striking one is a search too: treat one surprising result with care.
Your saved strategies
None yet. Load a strategy's trades in the check above, type a name under Save these trades as, and press Save. Save a few, then compare any two here.
Saved strategies stay in this browser on this device. They are never uploaded, other visitors cannot see them, and clearing this site's data in your browser deletes them.
Would a different stop have done better?
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.
- Import your trades in the check above.
- Drop one-minute bars for the same contract and dates here.
- Read the answer on the right. The lab sets everything else from your trades.
Adjust the test (optional)
These start from your own trades: stops around the one you use now, and your usual profit as the target. Change them only to test something specific.
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.
Describe a strategy. Test it on your bars.
Write your rule the way you would say it. The page shows how it read your words, trades the rule on your own price bars in your browser, and counts every version you try, so tuning a rule until the past looks good cannot fool you.
Your strategy
No bars loadedOr start from an example: · · ·
Price bars: use the or (one-minute bars work best; the stop lab uses the same file).
Result
how the page read your strategy, and what it did on your barsEdit the details
of the first minutes after , measuring the move since of bars from until . Stop ticks, target ticks, stop to entry after ticks, out by , at most a day.
Versions you tested
on this visit, each judged against all of themEach version counts as a setup: testing many and keeping the best is held to a higher bar.
How it trades: a signal is a bar's close and the trade enters at the next bar's open; a set time enters at that bar's open. One contract per trade. When one bar reaches both the stop and the target, the stop counts. Times are on your bar file's clock. Anything you don't say is filled with a default and marked as assumed.
The method, worked on the example
Four steps, with the numbers the page gets for its made-up example file (its ORB strategy, – setups tried). They are worked out live by the same code that checks your trades.
-
Measure the edge per trade
The example's – trades average – after fees, and swing by – from trade to trade (one standard deviation). The edge per trade is the average over the swing: a Sharpe ratio of – per trade.
-
Ask what luck alone would show
Try – setups with no edge at all and keep the best, and the best still shows a Sharpe ratio of about – per trade, by luck (Bailey and López de Prado, 2014, equation 2). On these trades' swings that is – a trade.
-
Compare, allowing for uncertainty
The Deflated Sharpe Ratio is the chance the true edge beats that luck bar, given how many trades there are and how lopsided and fat-tailed the results are. For the example it is –.
-
Say how much more proof is needed
If future trades look like these, the chance would reach 95% at about – trades. Fees are always subtracted first, and breakevens count as the small losses they are after commission.
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.
Getting your trades out of your platform
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.
TradingView
In the Strategy Tester, open List of trades and use the export button to download a CSV. Each trade has an entry and an exit row; the page counts each trade once, using its Net P&L, which already includes the commission set in the strategy's properties.
TopstepX
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.
Quantower
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.
NinjaTrader 8
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.
thinkorswim (Schwab)
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 replays each round trip from the fill that opened it.
What the numbers mean
Short answers to what traders ask most about this page.
What does "chance the edge is real" mean?
How sure you can be that your strategy makes money for a real reason, not because of a lucky streak. It looks at how many trades you have, how much your results swing from trade to trade, and how many setups you tried. At 95% or more, luck is a poor explanation for your results. Below 50%, your results are no better than the luckiest of your setups would typically show with no edge at all. It describes the past; it does not promise the future.
What is a "setup", and why does the number matter?
A setup is any strategy, indicator or set of rules you tested. Try ten ideas and keep the best, and the best one usually looks good even if none of them works: that is luck you selected for. So the check asks what the best of your setups would have shown with no edge at all, and holds your result to that bar. Count every version you tried and dropped. If this is the only idea you ever tested, enter 1.
What is the dashed "luck alone" line?
What the luckiest of your setups would typically have made by now if none of them had any edge. With one setup it sits at $0, because a strategy with no edge averages nothing. Each extra setup you tried raises it. Finishing above it is a good sign; the chance at the top says whether you are far enough above.
Why are breakevens counted apart, and why do they cost money?
A trade that was flat before fees still paid commission, so after fees it is a small loss. The page counts these trades apart from real wins and losses, shows your win rate with and without them, and shows what they cost you in total.
Which time zone are the hours in?
Your file's, exactly as written in it; the page cannot know which zone that is. TradingView exports in the time zone set on your chart (the clock at its bottom right). Most other platforms use the time zone set in the platform or on your computer.
Why didn't my TradingView trades line up with my bars?
Usually the two files cover different dates: load bars for the same months as your trades. Continuous contracts such as NQ1! are also adjusted at each contract roll, so their prices sit a fixed number of points away from real prices, and trades may be stamped one chart bar early. The stop lab finds and corrects both, and tells you what it changed.
Is my data uploaded anywhere?
No. Your files are read in your browser, and the page is locked so it cannot send data to any other site. Saved strategies stay in your browser on that device, and a shared link holds only summary numbers, never your trades.
Is this financial advice?
No. It is statistics about past results. A real edge can stop working when the market changes, and fills in live trading can be worse than in a replay.
The same checks, as a Python library
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 algobacktesting
Python 3.11 or later; NumPy installs with it. On PyPI.