Lewati ke konten
pipdojo.com

Meja belajar

Progres Anda

Sabuk putih · Sabuk saat ini

Pelajaran
0/25
Hari beruntun
0
XP
0
Pelajaran berikutnyaApa itu pip?

Rentetan hari dan XP, hanya tersimpan di perangkat ini

Bahasa belajar

Halaman beralih ke bahasa ini; progres Anda tetap tersimpan di perangkat ini.

Pelajaran 2 dari 4Sabuk cokelat#19 dari 25 di sekolah

Backtest dengan jujur

Data historis akan mengonfirmasi apa pun yang Anda inginkan jika Anda membiarkannya. Begini cara mencegahnya.

8 menit baca·Strategi & Jurnal·2 pertanyaan kuis di akhir

Backtesting means applying your written rules to historical data to see what would have happened. Done carefully it tells you whether an idea has ever worked and what its bad periods look like. Done carelessly it manufactures confidence in nonsense, which is considerably worse than having no test at all.

The first and largest sin is hindsight bias. Scrolling a chart with the future visible on the right-hand side, you will unconsciously take the trades that worked and skip the ones that did not. The fix is mechanical: hide the future. Replay bar by bar, record the decision before advancing, and accept the result you actually recorded.

The second sin is curve fitting. If you keep adjusting parameters until the equity curve looks beautiful — a 37-period average, but only on Tuesdays, and only above 1.0850 — you have not found an edge, you have described this particular history in unnecessary detail. Fewer parameters, tested on data you did not use for tuning, is the antidote. Reserve a period of history you never look at until the rules are final.

History will confirm anything you want if you let it see the answer first. Hide the right-hand side of the chart.

Third, model costs. A strategy that clears the spread in a backtest with zero costs can be comfortably negative in reality. Subtract a realistic spread and commission from every trade, and add slippage on stops. Many short-term strategies fail this test alone, which is exactly the information you wanted.

Finally, judge sample size and distribution, not the headline. Thirty trades tell you almost nothing. Look at at least a hundred, spread across trending and ranging regimes, and read the worst losing run and the deepest drawdown before you read the profit. If the bad stretch is one you could not sit through, the profit at the end is theoretical.

Poin penting

Replay bar by bar so the future is hidden, keep parameters few, subtract realistic costs, and judge the worst losing run over 100+ trades before judging the profit.

Akhir pelajaran

Uji diri Anda

0/2 Terjawab

Beberapa pertanyaan tentang apa yang baru saja Anda baca. Jawab sebelum melanjutkan — mengingat kembali itulah yang membuat pelajaran melekat.

Pertanyaan 1What is curve fitting?
Pilih jawaban, lalu periksa.
Pertanyaan 2Which number should you read before the total profit of a backtest?
Pilih jawaban, lalu periksa.
Ikuti seluruh sabuk cokelat kuis →