Bỏ qua nội dung
pipdojo.com

Bàn học

Tiến độ của bạn

Đai trắng · Đai hiện tại

Bài học
0/25
Chuỗi ngày
0
XP
0
Bài tiếp theoPip là gì?

Chuỗi ngày và XP, chỉ lưu trữ trên thiết bị này

Ngôn ngữ học

Trang sẽ chuyển sang ngôn ngữ này; tiến độ học vẫn được lưu trên thiết bị này.

Bài học 2 của 4Đai nâu#19 của 25 trong trường học

Backtest trung thực

Dữ liệu lịch sử sẽ xác nhận bất cứ điều gì bạn muốn nếu bạn để nó làm vậy. Đây là cách ngăn điều đó.

8 phút đọc·Chiến lược & Nhật ký·2 câu hỏi bài kiểm tra ở cuối

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.

Điểm chính

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.

Kết thúc bài học

Tự kiểm tra

0/2 đã trả lời

Vài câu hỏi về nội dung bạn vừa đọc. Hãy trả lời trước khi đi tiếp — chính việc nhớ lại mới giúp bài học đọng lại.

Câu hỏi 1What is curve fitting?
Chọn một đáp án, rồi kiểm tra.
Câu hỏi 2Which number should you read before the total profit of a backtest?
Chọn một đáp án, rồi kiểm tra.
Tham gia đầy đủ đai nâu bài kiểm tra →