ข้ามไปยังเนื้อหา
pipdojo.com

โต๊ะเรียน

ความคืบหน้าของคุณ

เข็มขัดขาว · สายปัจจุบัน

บทเรียน
0/25
เรียนต่อเนื่อง (วัน)
0
XP
0
บทเรียนถัดไปPip คืออะไร?

สตรีครายวันและ XP, จัดเก็บในอุปกรณ์นี้เท่านั้น

ภาษาที่ใช้เรียน

หน้าเว็บจะเปลี่ยนเป็นภาษานี้ ส่วนความคืบหน้ายังคงบันทึกอยู่บนอุปกรณ์นี้

บทเรียน 2 ของ 4เข็มขัดน้ำตาล#19 ของ 25 ในโรงเรียน

การทำ Backtest อย่างซื่อตรง

ข้อมูลในอดีตจะยืนยันทุกสิ่งที่คุณอยากได้ ถ้าคุณปล่อยให้มันทำ นี่คือวิธีหยุดมัน

8 นาทีในการอ่าน·กลยุทธ์และบันทึกการเทรด·2 คำถามแบบทดสอบท้ายบท

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.

ประเด็นสำคัญ

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.

จบบทเรียน

ทดสอบตัวเอง

0/2 ตอบแล้ว

คำถามสั้น ๆ สองสามข้อเกี่ยวกับสิ่งที่คุณเพิ่งอ่าน ตอบให้ได้ก่อนเรียนต่อ — การนึกทบทวนคือสิ่งที่ทำให้บทเรียนติดอยู่ในหัว

คำถาม 1What is curve fitting?
เลือกคำตอบ แล้วกดตรวจ
คำถาม 2Which number should you read before the total profit of a backtest?
เลือกคำตอบ แล้วกดตรวจ
เรียนรู้ฉบับเต็ม เข็มขัดน้ำตาล แบบทดสอบ →