Last lesson asked how often random entries would match your result. This lesson shows you how to find out by hand: making random trades with a spreadsheet and bar replay, logging them next to your own, and seeing where your result ranks. Then we'll look at what changes when software repeats it thousands of times.
1 of 8
What you'll learn
- Change only the entry. Keep your exact stop and target and make the entry random.
- Draw entries in a spreadsheet. Use RANDBETWEEN, then paste as values so they stay fixed.
- Replay each random trade. Enter at the drawn candle's close and log the result in R.
- Line up the totals. Count how many random logs match or beat yours.
- Run it thousands of times. Software can do the runs. More runs give a steadier answer.
Exercise
- Pick 10 sessions from your own test.
- Use RANDBETWEEN to draw a random entry time and direction for each, paste them as values, and replay them with your strategy's exact stop and target.
- Compare the random log's total with your own over the same 10 sessions.
Quick check
1. Why paste the random numbers as values before replaying?
2. Your result is matched by 2 of 10 random logs. What do more random logs mainly give you?
3. In a random-entry comparison, what stays the same as your strategy?
0 of 3 answered.
Finished this lesson?
Tick it off and keep your place
Read the full notes
You can compare your results with random trades that use the same exits, by hand with a spreadsheet and bar replay, or thousands of times with software, to see whether yours stand out.
- A A check that takes trades at random times, with the same stop and target rules as a strategy, to see how often random entries do as well as the strategy did.More in the glossary keeps your exact An order that closes a trade if price reaches a level you set against it. It aims to limit the loss, but in a fast market it can fill at a worse price.More in the glossary and An exit order that closes a trade when price reaches a level you choose in your favour.More in the glossary rules and makes only the entry random, so it tests the entry and nothing else.
- In a spreadsheet: =RANDBETWEEN(0,17) picks a five-minute candle from 9:30 (candle 0) to 10:55 (candle 17); =IF(RANDBETWEEN(0,1)=1,"Long","Short") picks a direction. Use the hours your own rules trade in. Then copy and paste them back as values only (Google Sheets: Edit, Paste special; Excel: Home, Paste, Values), so the numbers can't change or be redrawn.
- On TradingView A chart feature that hides the candles after a point you choose, then shows them again one at a time, so you can practise on past prices without seeing ahead.More in the glossary (or any platform with replay), go to each session, enter at the close of the drawn candle, mark your usual stop and target, and log the result in A result measured in units of the amount at risk. If a trade risks 4 points, 1R is 4 points and a 6-point gain is +1.5R.More in the glossary, as in Test it yourself: opening range breakout.
- Line up the random logs' totals with yours. In the made-up example, 2 of 10 random logs matched +6R: about 2 in 10.
- Software can repeat this thousands of times. More random logs make the answer steadier, not different: about 190 in 1,000 here. Repeating random runs is called a Rebuilding a list of trade results many times, in a random order or by drawing trades at random, to see how different the path could have looked.More in the glossary; the same name covers shuffling your own trades.
- Standing out isn't proof, especially after trying several versions.
Worked example
Made-up numbersTen random logs by hand
Made-up numbers: ten random logs of 20 trades with the same 1R stop and 2R target as the course log (+6R).
- Random totals: −5, −2, −8, +1, +7, −2, +4, −5, +10, +1 (R)
- Sorted with the course log: −8, −5, −5, −2, −2, +1, +1, +4, +6 (course log), +7, +10
- Two random logs, +7R and +10R, did as well or better
- With 1,000 random logs from the same model: about 190 did as well or better
Random entries matched the course log about 1 time in 5.
Trading is risky, and you can lose money. Past results, real or made-up, don't tell you what comes next. This lesson explains how to read numbers. It isn't advice.