เข้าสู่ระบบสมัครสมาชิก
หน้าแรกHome / บทความฟรีFree articles / การบริหารเงิน (Money Management)Money management
การบริหารเงิน (Money Management)Money managementขั้นสูงAdvancedอ่าน 5 นาที5 min read7 / 15 ในหมวดนี้7 of 15 in this section

สูตรเคลลี่ (Kelly Criterion)Kelly Criterion

สูตรทางคณิตศาสตร์ที่บอกสัดส่วนเงินเดิมพันที่ทำให้พอร์ตโตเร็วที่สุดในทางทฤษฎี และเหตุผลที่เทรดเดอร์ส่วนใหญ่ใช้แค่เศษเสี้ยวของมันThe formula for the bet fraction that grows an account fastest in theory, and why most traders use only a fraction of it.

กราฟ XAUUSD ประกอบหมวด การบริหารเงิน (Money Management) / Money management
ในบทความนี้ · 7
  1. สูตร
  2. ทำไม Kelly ถึงให้การเติบโตสูงสุด
  3. ความแกว่งของเต็ม Kelly
  4. ปัญหาใหญ่: เราไม่รู้ W และ R จริง
  5. ใช้ Kelly อย่างระวัง
  6. จุดอ่อน / ข้อผิดพลาดที่พบบ่อย
  7. สรุป
In this article · 7
  1. The formula
  2. Why Kelly maximizes growth
  3. How violent full Kelly is
  4. The big problem: you do not know W and R
  5. Using Kelly carefully
  6. Weaknesses and common mistakes
  7. Summary

สูตรเคลลี่ (Kelly Criterion) เป็นสูตรจากทฤษฎีสารสนเทศที่ตอบคำถามว่า "ถ้ารู้ความได้เปรียบของตัวเองแน่นอน ควรเสี่ยงกี่ % ของพอร์ตต่อครั้ง เพื่อให้พอร์ตโตเร็วที่สุดในระยะยาว" ฟังดูน่าใช้ แต่ในการเทรดจริง เราไม่เคยรู้ความได้เปรียบแน่นอน และตัวเลขที่สูตรให้มักสูงจนพอร์ตแกว่งหนักเกินรับไหว บทความนี้อธิบายสูตร วิธีคิด และเหตุผลที่ควรใช้อย่างระมัดระวังมาก

สูตร

สำหรับระบบที่ไม้ชนะได้ R เท่าของไม้แพ้ (ไม้แพ้เสีย 1 หน่วย)

f* = W − (1 − W) ÷ R

  • f* = สัดส่วนของพอร์ตที่เสี่ยงต่อไม้ (เงินที่จะเสียถ้าโดน SL)
  • W = อัตราชนะ (ทศนิยม)
  • R = กำไรเฉลี่ยต่อไม้ชนะ ÷ ขาดทุนเฉลี่ยต่อไม้แพ้

ถ้า f* ออกมาเป็น 0 หรือติดลบ แปลว่าระบบไม่มีความได้เปรียบ สูตรบอกว่า "ไม่ควรเทรด"

อัตราชนะ (สมมติ)RสูตรKelly
50%2.00.50 − 0.50 ÷ 225%
40%2.00.40 − 0.60 ÷ 210%
55%1.00.55 − 0.45 ÷ 110%
40%1.50.40 − 0.60 ÷ 1.50%
35%1.50.35 − 0.65 ÷ 1.5-8.3%
Kelly ของแต่ละระบบ (สมมติ)Kelly for each system (hypothetical)
ชนะ 50% R 2.050% wins, R 2.025%ชนะ 40% R 2.040% wins, R 2.010%ชนะ 55% R 1.055% wins, R 1.010%ชนะ 40% R 1.540% wins, R 1.50%ชนะ 35% R 1.535% wins, R 1.5−8.3%
Kelly 0 หรือติดลบ = ระบบไม่มีความได้เปรียบZero or negative Kelly = no edge

สังเกตแถว 40% กับ R 1.5 ได้ 0% พอดี ซึ่งตรงกับค่าคาดหวัง 0.40 × 1.5 − 0.60 × 1 = 0 (ดู ค่าคาดหวัง)

ทำไม Kelly ถึงให้การเติบโตสูงสุด

สูตรมาจากการหาค่า f ที่ทำให้อัตราการเติบโตเฉลี่ยต่อไม้ (แบบลอการิทึม) สูงที่สุด

การเติบโตต่อไม้ = W × ln(1 + f × R) + (1 − W) × ln(1 − f)

🧮 ระบบสมมติ: ชนะ 50% R = 2 (Kelly = 25%)

เสี่ยง 25% (เต็ม Kelly): 0.5 × ln(1.5) + 0.5 × ln(0.75) = 0.2027 − 0.1438 ≈ 0.0589 ต่อไม้ เสี่ยง 12.5% (ครึ่ง Kelly): 0.5 × ln(1.25) + 0.5 × ln(0.875) = 0.1116 − 0.0668 ≈ 0.0448 ต่อไม้ เสี่ยง 50% (สองเท่า Kelly): 0.5 × ln(2) + 0.5 × ln(0.5) = 0.3466 − 0.3466 = 0 ไม่โตเลย ครึ่ง Kelly ได้การเติบโตประมาณ 0.0448 ÷ 0.0589 ≈ 76% ของเต็ม Kelly แต่เสี่ยงต่อไม้แค่ครึ่งเดียว ส่วนการเสี่ยงเกิน Kelly ไปสองเท่า ทำให้การเติบโตระยะยาวเป็นศูนย์ ถ้ามากกว่านั้นพอร์ตจะหดลงในระยะยาว ทั้งที่ระบบมีความได้เปรียบ

การเติบโตต่อไม้ เมื่อเสี่ยง 0–50% (ชนะ 50% R = 2)Growth per trade at 0–50% risk (50% wins, R = 2)
0%2%4%6%ไม่โตเลยNo growthเติบโตต่อไม้ (log×100)Growth/trade (log×100)เสี่ยงต่อไม้ 0% → 50%Risk/trade 0% → 50%
ยอดอยู่ที่ 25% (เต็ม Kelly) ที่ 50% กลับเป็นศูนย์Peak at 25% (full Kelly), back to zero at 50%
เติบโตต่อไม้ที่ 3 ระดับความเสี่ยงGrowth per trade at three risk levels
ครึ่ง Kelly 12.5%Half Kelly 12.5%0.0448 (≈ 76%)เต็ม Kelly 25%Full Kelly 25%0.0589สองเท่า Kelly 50%Double Kelly 50%0
เสี่ยงครึ่งเดียว ได้การเติบโตราว 76%Half the risk keeps about 76% of the growth

นี่คือบทเรียนที่สำคัญที่สุดของ Kelly: เสี่ยงน้อยกว่า Kelly เสียการเติบโตไปนิดเดียว แต่เสี่ยงมากกว่า Kelly ทำลายการเติบโตอย่างรวดเร็ว ความผิดพลาดสองทางไม่สมมาตรกัน

ความแกว่งของเต็ม Kelly

แม้เต็ม Kelly จะโตเร็วที่สุดในทางทฤษฎี แต่พอร์ตแกว่งรุนแรงมาก

🧮 แพ้ติดกัน 4 ไม้ที่ 25%

0.75^4 ≈ 0.316 พอร์ตเหลือประมาณ 31.6% หรือ ลดลง 68.4% ที่ครึ่ง Kelly (12.5%): 0.875^4 ≈ 0.586 ลดลงประมาณ 41.4% ที่ 1% ต่อไม้: 0.99^4 ≈ 0.961 ลดลงประมาณ 3.9% สำหรับระบบที่ชนะ 50% การแพ้ 4 ไม้ติดกันไม่ใช่เรื่องหายาก

แพ้ติดกัน 4 ไม้ (พอร์ตเริ่ม 100%)Four straight losses (account starts at 100%)
40%60%80%100%เต็ม Kelly 25%Full Kelly 25%ครึ่ง Kelly 12.5%Half Kelly 12.5%1% ต่อไม้1% per tradeไม้ที่แพ้ 0 → 4Losses 0 → 4
ลดลงเท่าไรหลังแพ้ 4 ไม้Drawdown after 4 losses
เต็ม Kelly 25%Full Kelly 25%−68.4%ครึ่ง Kelly 12.5%Half Kelly 12.5%−41.4%1% ต่อไม้1% per trade−3.9%
ทฤษฎีโตเร็วสุด แต่แกว่งจนรับไม่ไหวFastest in theory, brutal in practice

ปัญหาใหญ่: เราไม่รู้ W และ R จริง

สูตรต้องการอัตราชนะและ R ที่ "จริง" ของอนาคต แต่เรามีแค่ค่าประมาณจากอดีต ซึ่งมักดีเกินจริงจากโชคหรือการปรับระบบให้พอดีกับข้อมูล (ดู Overfitting)

🧮 ประเมินอัตราชนะผิดไป 5%

คิดว่าชนะ 50% R = 2 → Kelly 25% ถ้าอัตราชนะจริงเป็น 45% → Kelly จริง = 0.45 − 0.55 ÷ 2 = 0.175 = 17.5% การเสี่ยง 25% จึงเท่ากับประมาณ 1.43 เท่าของ Kelly จริง ซึ่งอยู่ในโซนที่เสียการเติบโตและแกว่งหนักขึ้นมาก

ประเมินอัตราชนะสูงไป 5%Win rate overestimated by 5 points
คิดว่าชนะ 50% → KellyAssumed 50% → Kelly25%จริงชนะ 45% → KellyReal 45% → Kelly17.5%
เสี่ยง 25% จริง ๆ คือ ≈ 1.43 เท่าของ KellyBetting 25% is really ≈ 1.43× Kelly

นี่คือเหตุผลที่ผู้ใช้ Kelly ส่วนใหญ่ใช้ เศษส่วนของ Kelly เช่น ครึ่ง หรือหนึ่งในสี่ เพื่อเผื่อความผิดพลาดของการประเมิน

ใช้ Kelly อย่างระวัง

  1. คำนวณ W และ R จากข้อมูลจริงจำนวนมาก (หลายร้อยไม้) หลังหักต้นทุน
  2. ใช้ค่าที่ระมัดระวัง เช่น ลดอัตราชนะลงเล็กน้อยก่อนใส่สูตร
  3. ใช้แค่ 1/4 ถึง 1/2 ของผลลัพธ์ และตั้งเพดานความเสี่ยงต่อไม้ที่ยอมรับได้ เช่น ไม่เกิน 1–2%
  4. ใช้ Kelly เป็น "เพดานบนทางทฤษฎี" มากกว่าตัวเลขที่ใช้จริง ถ้าความเสี่ยงที่ใช้อยู่สูงกว่า Kelly แปลว่าเสี่ยงเกินที่สมเหตุสมผลแน่นอน
  5. ถ้า Kelly ออกมาใกล้ 0 หรือติดลบ อย่าเพิ่มล็อต ให้กลับไปดูระบบ
ใช้ Kelly อย่างระวังUsing Kelly carefully
1หา W และ R จากหลายร้อยไม้ หลังหักต้นทุนGet W and R from hundreds of trades,after costs2ลดอัตราชนะลงเล็กน้อยก่อนใส่สูตรShade the win rate down before using it3ใช้แค่ 1/4–1/2 ของผลลัพธ์Use only 1/4–1/2 of the result4มีเพดาน เช่น ไม่เกิน 1–2% ต่อไม้Cap it, e.g. no more than 1–2% per trade5Kelly ใกล้ 0 หรือติดลบ = กลับไปดูระบบKelly near 0 or negative = review thesystem

จุดอ่อน / ข้อผิดพลาดที่พบบ่อย

  • ใช้เต็ม Kelly กับข้อมูลน้อย ตัวเลขจาก 30 ไม้อาจทำให้ Kelly สูงเกินจริงมาก
  • ลืมว่าไม้ไม่ได้อิสระ การแพ้มักมาเป็นกลุ่ม ความแกว่งจริงจึงมากกว่าที่คำนวณ
  • เปิดหลายไม้พร้อมกัน Kelly ในรูปแบบนี้คิดแบบทีละไม้ ถ้าเปิดหลายไม้ที่สัมพันธ์กัน ความเสี่ยงรวมเกินที่สูตรคิดไว้ (ดู ความสัมพันธ์และความเสี่ยงซ้อน)
  • ไม่นับข้อจำกัดภายนอก เช่น เพดานขาดทุนรายวันของบัญชีสอบกองทุน ซึ่งมักบังคับให้เสี่ยงต่ำกว่า Kelly มาก
  • ราคากระโดดข้าม SL ทำให้ไม้แพ้จริงใหญ่กว่า 1 หน่วย ทำให้ Kelly จริงต่ำกว่าที่คำนวณ

สรุป

  • f* = W − (1 − W) ÷ R บอกสัดส่วนเสี่ยงที่โตเร็วที่สุดในทางทฤษฎี
  • เสี่ยงต่ำกว่า Kelly เสียการเติบโตนิดเดียว เสี่ยงเกิน Kelly ทำลายการเติบโตเร็วมาก
  • เต็ม Kelly แกว่งรุนแรง แพ้ 4 ไม้ที่ 25% = -68.4%
  • เราไม่รู้ W และ R จริง จึงใช้แค่ 1/4–1/2 Kelly และมีเพดานความเสี่ยงต่อไม้
  • Kelly ติดลบ = ระบบไม่มีความได้เปรียบ

The Kelly criterion is a formula from information theory that answers: "If I knew my edge exactly, what percentage of my account should I risk per bet to grow it fastest over the long run?" It sounds attractive, but in real trading you never know your edge exactly, and the number the formula gives is usually so large that the account swings harder than most people can bear. This article covers the formula, the reasoning behind it, and why to use it with great care.

The formula

For a system whose winners make R times what a loser loses (a loser loses 1 unit):

f* = W − (1 − W) ÷ R

  • f* = fraction of the account to risk per trade (what you lose at the stop).
  • W = win rate, as a decimal.
  • R = average win ÷ average loss.

If f* is zero or negative, the system has no edge and the formula says "do not trade".

Win rate (hypothetical)RFormulaKelly
50%2.00.50 − 0.50 ÷ 225%
40%2.00.40 − 0.60 ÷ 210%
55%1.00.55 − 0.45 ÷ 110%
40%1.50.40 − 0.60 ÷ 1.50%
35%1.50.35 − 0.65 ÷ 1.5-8.3%
Kelly ของแต่ละระบบ (สมมติ)Kelly for each system (hypothetical)
ชนะ 50% R 2.050% wins, R 2.025%ชนะ 40% R 2.040% wins, R 2.010%ชนะ 55% R 1.055% wins, R 1.010%ชนะ 40% R 1.540% wins, R 1.50%ชนะ 35% R 1.535% wins, R 1.5−8.3%
Kelly 0 หรือติดลบ = ระบบไม่มีความได้เปรียบZero or negative Kelly = no edge

The 40% / 1.5 row gives exactly 0%, matching its expectancy 0.40 × 1.5 − 0.60 × 1 = 0 (see Expectancy).

Why Kelly maximizes growth

The formula is the f that maximizes the average (logarithmic) growth per trade:

Growth per trade = W × ln(1 + f × R) + (1 − W) × ln(1 − f)

🧮 Hypothetical system: 50% winners, R = 2 (Kelly = 25%)

Risk 25% (full Kelly): 0.5 × ln(1.5) + 0.5 × ln(0.75) = 0.2027 − 0.1438 ≈ 0.0589 per trade. Risk 12.5% (half Kelly): 0.5 × ln(1.25) + 0.5 × ln(0.875) = 0.1116 − 0.0668 ≈ 0.0448 per trade. Risk 50% (double Kelly): 0.5 × ln(2) + 0.5 × ln(0.5) = 0.3466 − 0.3466 = 0. No growth at all. Half Kelly keeps about 0.0448 ÷ 0.0589 ≈ 76% of full Kelly's growth while risking half as much per trade. Double Kelly gives zero long-run growth, and beyond that the account shrinks over time even though the system has an edge.

การเติบโตต่อไม้ เมื่อเสี่ยง 0–50% (ชนะ 50% R = 2)Growth per trade at 0–50% risk (50% wins, R = 2)
0%2%4%6%ไม่โตเลยNo growthเติบโตต่อไม้ (log×100)Growth/trade (log×100)เสี่ยงต่อไม้ 0% → 50%Risk/trade 0% → 50%
ยอดอยู่ที่ 25% (เต็ม Kelly) ที่ 50% กลับเป็นศูนย์Peak at 25% (full Kelly), back to zero at 50%
เติบโตต่อไม้ที่ 3 ระดับความเสี่ยงGrowth per trade at three risk levels
ครึ่ง Kelly 12.5%Half Kelly 12.5%0.0448 (≈ 76%)เต็ม Kelly 25%Full Kelly 25%0.0589สองเท่า Kelly 50%Double Kelly 50%0
เสี่ยงครึ่งเดียว ได้การเติบโตราว 76%Half the risk keeps about 76% of the growth

This is Kelly's most important lesson: betting less than Kelly costs a little growth; betting more than Kelly destroys growth quickly. The two errors are not symmetric.

How violent full Kelly is

Full Kelly may grow fastest in theory, but the swings are brutal.

🧮 Four losses in a row at 25%

0.75^4 ≈ 0.316: about 31.6% of the account is left, a 68.4% drop. At half Kelly (12.5%): 0.875^4 ≈ 0.586, down about 41.4%. At 1% per trade: 0.99^4 ≈ 0.961, down about 3.9%. For a system that wins 50%, four losses in a row is not rare.

แพ้ติดกัน 4 ไม้ (พอร์ตเริ่ม 100%)Four straight losses (account starts at 100%)
40%60%80%100%เต็ม Kelly 25%Full Kelly 25%ครึ่ง Kelly 12.5%Half Kelly 12.5%1% ต่อไม้1% per tradeไม้ที่แพ้ 0 → 4Losses 0 → 4
ลดลงเท่าไรหลังแพ้ 4 ไม้Drawdown after 4 losses
เต็ม Kelly 25%Full Kelly 25%−68.4%ครึ่ง Kelly 12.5%Half Kelly 12.5%−41.4%1% ต่อไม้1% per trade−3.9%
ทฤษฎีโตเร็วสุด แต่แกว่งจนรับไม่ไหวFastest in theory, brutal in practice

The big problem: you do not know W and R

The formula needs the true future win rate and R. You only have estimates from the past, which are often too good because of luck or a system tuned to its data (see Overfitting).

🧮 Win rate overestimated by 5 points

You believe 50% at R = 2 → Kelly 25%. If the true win rate is 45%, true Kelly = 0.45 − 0.55 ÷ 2 = 0.175 = 17.5%. Risking 25% is then about 1.43 times true Kelly, in the zone where growth falls and swings get much worse.

ประเมินอัตราชนะสูงไป 5%Win rate overestimated by 5 points
คิดว่าชนะ 50% → KellyAssumed 50% → Kelly25%จริงชนะ 45% → KellyReal 45% → Kelly17.5%
เสี่ยง 25% จริง ๆ คือ ≈ 1.43 เท่าของ KellyBetting 25% is really ≈ 1.43× Kelly

That is why most people who use Kelly bet only a fraction of Kelly, such as a half or a quarter, to allow for estimation error.

Using Kelly carefully

  1. Compute W and R from a large sample of real trades (hundreds), after costs.
  2. Be conservative: shade the win rate down a little before using the formula.
  3. Use only 1/4 to 1/2 of the result, with a hard cap on risk per trade you can accept, such as 1–2%.
  4. Treat Kelly as a theoretical ceiling, not the number you trade. If your current risk is above Kelly, you are certainly risking too much.
  5. If Kelly comes out near zero or negative, do not add size. Go back to the system.
ใช้ Kelly อย่างระวังUsing Kelly carefully
1หา W และ R จากหลายร้อยไม้ หลังหักต้นทุนGet W and R from hundreds of trades,after costs2ลดอัตราชนะลงเล็กน้อยก่อนใส่สูตรShade the win rate down before using it3ใช้แค่ 1/4–1/2 ของผลลัพธ์Use only 1/4–1/2 of the result4มีเพดาน เช่น ไม่เกิน 1–2% ต่อไม้Cap it, e.g. no more than 1–2% per trade5Kelly ใกล้ 0 หรือติดลบ = กลับไปดูระบบKelly near 0 or negative = review thesystem

Weaknesses and common mistakes

  • Full Kelly on little data. Numbers from 30 trades can inflate Kelly badly.
  • Assuming independent trades. Losses cluster, so real swings are bigger than calculated.
  • Several trades at once. This form of Kelly is per trade. Several correlated positions together exceed what the formula intended (see Correlation and Exposure).
  • Ignoring outside limits, such as a prop account's daily loss limit, which usually forces risk far below Kelly.
  • Gaps through stops make real losers bigger than 1 unit, so true Kelly is lower than calculated.

Summary

  • f* = W − (1 − W) ÷ R gives the theoretically fastest-growing risk fraction.
  • Under-betting Kelly costs a little; over-betting destroys growth fast.
  • Full Kelly swings violently: four losses at 25% = -68.4%.
  • You never know W and R exactly, so use 1/4–1/2 Kelly with a hard cap per trade.
  • Negative Kelly means the system has no edge.

อ่านต่อRead next

กราฟ XAUUSD ประกอบหมวด การบริหารเงิน (Money Management) / Money management
การบริหารเงิน (Money Management)Money managementกลางIntermediate4 นาที4 min

ค่าคาดหวังของระบบ (Expectancy)Expectancy

สูตรเดียวที่รวมอัตราชนะ กำไรเฉลี่ย และขาดทุนเฉลี่ย ให้รู้ว่าระบบได้หรือเสียเฉลี่ยต่อไม้เท่าไรในระยะยาวThe one formula that combines win rate, average win and average loss into what a system makes or loses per trade on average.

กราฟ XAUUSD ประกอบหมวด การบริหารเงิน (Money Management) / Money management
การบริหารเงิน (Money Management)Money managementกลางIntermediate4 นาที4 min

ความเสี่ยงที่พอร์ตจะพัง (Risk of Ruin)Risk of Ruin

ทำความเข้าใจโอกาสที่พอร์ตจะลดลงถึงจุดที่เทรดต่อไม่ได้ ผ่านการคิดเลขแพ้ติดกันและสูตรพื้นฐาน เพื่อเลือกความเสี่ยงต่อไม้อย่างมีเหตุผลBuild an intuition for the chance of losing so much you cannot keep trading, using losing-streak arithmetic and a basic formula, so you can pick risk per trade sensibly.

กราฟ XAUUSD ประกอบหมวด การบริหารเงิน (Money Management) / Money management
การบริหารเงิน (Money Management)Money managementเริ่มต้นBeginner5 นาที5 min

ความเสี่ยงต่อไม้ (Risk per Trade)Risk per Trade

เข้าใจว่าทำไมควรกำหนดเงินที่ยอมเสียต่อไม้เป็นเปอร์เซ็นต์ของพอร์ต และตัวเลขเล็ก ๆ อย่าง 1% ช่วยให้รอดจากช่วงแพ้ติดกันได้อย่างไรWhy you should fix the amount you are willing to lose per trade as a percentage of your account, and how a small number like 1% keeps you alive through losing streaks.

กราฟ XAUUSD ประกอบหมวด การบริหารเงิน (Money Management) / Money management
การบริหารเงิน (Money Management)Money managementเริ่มต้นBeginner4 นาที4 min

ดอกเบี้ยทบต้นในการเทรด (Compounding)Compounding

เข้าใจการทบต้นแบบตรงไปตรงมา ทั้งด้านที่ช่วยให้พอร์ตโตและด้านที่ทำให้ขาดทุนทบต้นเช่นกัน พร้อมตัวเลขที่ตรวจได้An honest look at compounding, both how it grows an account and how losses compound too, with numbers you can check.

กราฟ XAUUSD ประกอบหมวด ทดสอบระบบและเทรดแบบมืออาชีพ / Testing & trading like a pro
ทดสอบระบบและเทรดแบบมืออาชีพTesting & trading like a proขั้นสูงAdvanced4 นาที4 min

การจำลอง Monte Carlo สำหรับระบบเทรดMonte Carlo Simulation for Trading Systems

สลับลำดับไม้และสุ่มผลซ้ำหลายพันรอบ เพื่อดูว่า drawdown และการแพ้ติดกันที่ "ปกติ" ของระบบอาจหนักกว่าที่เห็นใน backtest แค่ไหนReshuffle and resample your trades thousands of times to see how much worse normal drawdowns and losing streaks could be than the single backtest shows.