Skip to content
Wildflower
Join free
Statistics for traders

Free Trading School · Level 4 · Course 4.0

Comparing against random trades

Lesson 13 of 17 in Statistics for tradersModule 3: Randomness and real patterns

Testing and making it your own · Statistics for traders

Comparing against random trades

Wildflower Trading School · Lesson 4.0.3.5

Wildflower

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

  1. Pick 10 sessions from your own test.
  2. 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.
  3. Compare the random log's total with your own over the same 10 sessions.

Quick check

  1. 1. Why paste the random numbers as values before replaying?

  2. 2. Your result is matched by 2 of 10 random logs. What do more random logs mainly give you?

  3. 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

Make a free account and we'll remember where you are, so “Correlation: things that move together” is waiting next time.

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 keeps your exact and 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 (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 , 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 ; the same name covers shuffling your own trades.
  • Standing out isn't proof, especially after trying several versions.

Worked example

Made-up numbers

Ten 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).

  1. Random totals: −5, −2, −8, +1, +7, −2, +4, −5, +10, +1 (R)
  2. Sorted with the course log: −8, −5, −5, −2, −2, +1, +1, +4, +6 (course log), +7, +10
  3. Two random logs, +7R and +10R, did as well or better
  4. 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.