Amibroker Tutorial Video - Adding A Random Trade Selection Switch In Amibroker AFL

18 Nov 2021 · 10 min
9:45

Adrian Reid shows how to randomly exclude trades during backtesting to fight curve fitting. He pairs a trailing-stop optimization (20, 40, 60) with a dummy variable (1-5) so each parameter set runs multiple times on different trade subsets, then averages the results in Excel for more reliable optimization.

Questions this video answers

November 18, 2021

Random number < 0.7 (i.e., 70% chance to allow a trade)

20, 40, 60 (optimized from 20 to 60 in steps of 20)

Integer values 1 to 5 (demo); recommends running ~100 in practice

Aggregate results (average, maximum, minimum, standard deviation) across runs; e.g., average compound annual return or CAR/MDD

Chapters

More from Adrian

9:25
youtube.com

Discretionary vs Systematic Trading: Which Actually Works?

1d ago
15:08
youtube.com

The Hidden Link Between 10‑Year Treasury and Gold – Proof Inside

2w ago
1:26
youtube.com

In-sample vs out-of-sample (which one matters?)

1mo ago
0:52
youtube.com

Trade List vs Reality

1mo ago
1:12
youtube.com

How AI Saves Traders Hours Every Week

2mo ago
0:50
youtube.com

How AI Models Evolved in 2 Years

2mo ago
0:56
youtube.com

The Memory Trap in ChatGPT

2mo ago
0:54
youtube.com

You've Been Using AI Wrong This Whole Time

2mo ago
1:07
youtube.com

The One Mistake Traders Make with AI

2mo ago
1:05
youtube.com

Your trading gaps revealed by AI

2mo ago
1:20
youtube.com

Claude runs my backtests while I sleep

2mo ago
See all content