Kelly Formula Crypto
/install kelly-formula-crypto
Kelly Formula ไปไฝ็ฎก็ๅจ
ๅฎไปท: 0.01 USDC (x402ๆฏไป) ๆ ็ญพ: crypto, trading, kelly-formula, position-sizing, risk-management ไฝ่ : Rich (@samhuang2025)
็ฎไป
ๅบไบๅฏๅฉๅ ฌๅผ็ๅ ๅฏ่ดงๅธไปไฝ่ฎก็ฎๅทฅๅ ท๏ผๅธฎๅฉไบคๆ่ ็จๆฐๅญฆ็บชๅพๆฟไปฃๆ ็ปชๅๅณ็ญใ
ๆ ธๅฟๅ่ฝ๏ผ
- โ ๅฏๅฉๅ ฌๅผไปไฝ่ฎก็ฎ
- โ ๅๆฐๅฏๅฉๅปบ่ฎฎ๏ผยฝ / ยผ๏ผ
- โ ๅค็ญ็ฅไปไฝๅ้
- โ ๆ ๆๅฎๅ จ่พน้ ่ฎก็ฎ
x402 ๆฏไป
ๆฌskillๆฏๆx402ๅพฎๆฏไปๅ่ฎฎใ่ฐ็จๆถ่ชๅจๅ่ตท0.01 USDCๆฏไป่ฏทๆฑใ
# x402ๆฏไป็คบไพ
curl -X POST https://api.x402.dev/pay \
-H "Content-Type: application/json" \
-d '{
"to": "0x24b288c98421d7b447c2d6a6442538d01c5fce22",
"amount": "0.01",
"currency": "USDC",
"memo": "kelly-formula-skill"
}'
ๆ ธๅฟๅ ฌๅผ
ๅฎๆด็
f* = (bp - q) / b
- p = ่็
- b = ็ไบๆฏ
- q = 1 - p
็ฎๅ็๏ผๅฏน็งฐ็ไบ๏ผ
f* โ 2p - 1
่ฎฐๅฟๆณ๏ผ่็้ซๅบ50%็้จๅร2 = ๅปบ่ฎฎไปไฝ
ไฝฟ็จๆนๆณ
1. ๅบๆฌไปไฝ่ฎก็ฎ
่พๅ ฅ๏ผ
- ่็ p (0-1)
- ็ไบๆฏ b (ๅฆ 2.0 ่กจ็คบ่ต2ๅไบ1ๅ)
่พๅบ๏ผ
- ๅ จๅฏๅฉไปไฝ
- ยฝๅฏๅฉไปไฝ๏ผๆจ่๏ผ
- ยผๅฏๅฉไปไฝ๏ผไฟๅฎ/ๆ ๆ๏ผ
def kelly_position(p, b, fraction=0.5):
if p \x3C= 0.5:
return 0 # ๆ ไผๅฟ๏ผไธๅ
f_star = (p * b - (1 - p)) / b
if f_star \x3C 0:
return 0
return f_star * fraction
2. ๅฏน็งฐ้ๆฅ่กจ
| ่็ | ๅ จๅฏๅฉ | ยฝๅฏๅฉ | ยผๅฏๅฉ |
|---|---|---|---|
| 52% | 4% | 2% | 1% |
| 55% | 10% | 5% | 2.5% |
| 60% | 20% | 10% | 5% |
| 65% | 30% | 15% | 7.5% |
| 70% | 40% | 20% | 10% |
| 75% | 50% | 25% | 12.5% |
3. ๅค็ญ็ฅไปไฝๅ้
ๅๅ๏ผ็ธๅ ณๆง>0.7ๆถ๏ผๅๅนถไปไฝๆ7ๆ
def adjusted_position(positions, correlation, discount=0.7):
total = sum(positions)
if correlation > 0.7:
return total * discount
return total
4. ๆ ๆๅฎๅ จ่พน้
def leverage_safety(liquidation_distance, stop_loss):
safety_factor = liquidation_distance / stop_loss
if safety_factor \x3C 2:
return "ไธๅฎๅ
จ๏ผๅปบ่ฎฎ้ๆ ๆ"
return "ๅฎๅ
จ"
ๅฎๆๆกไพ
ๆกไพ1๏ผBTC็ญ็บฟ่ถๅฟ
- ่็ 55%๏ผ็ไบๆฏ 5%/3%
- ๅไผๅฟ = 0.55ร5 - 0.45ร3 = 1.4%
- ๅปบ่ฎฎไปไฝ = 1.4 รท 5 = 28%
- ๆง่กยฝ = 14%
ๆกไพ2๏ผETH่ต้่ดนๅฅๅฉ
- ่็ 70%๏ผ็ไบๆฏ 2%/1%
- ๅไผๅฟ = 1.4 - 0.3 = 1.1%
- ๅปบ่ฎฎไปไฝ = 55%
- ๆง่กยผ-ยฝ = 14-27%
ๆกไพ3๏ผMeme็ญ็น
- ่กจ้ข๏ผ่็58%๏ผ็ไบๆฏ7%/5%
- ไฝ1/6ไบๆๆฏ-25%ๆ้
- ็ๅฎไบๆ = 5/6ร5% + 1/6ร25% = 8.3%
- ๆฐๅไผๅฟ = 4.06 - 3.49 = 0.57%
- ๅปบ่ฎฎไปไฝ โ 8% โ ๆง่ก2-4%
8ๆก้ๅพ
- ้ป่ฎคๅๆฐๅฏๅฉ๏ผๅ ็จยฝ๏ผๅธฆๆ ๆ/ไธ็จณ็จยผ
- ๆฉๆฆๅ จ่ฟ่ดฆ๏ผ่ดน็ใๆป็นใ่ต้่ดนใGasๅ จ้จ่ฎกๅ ฅ
- ๆปๅจไผฐๅ๏ผๆ/ๅญฃๆดๆฐ๏ผ้ๅคงไบไปถไธดๆถ้ๆกฃ
- ไธ้้ธ้จ๏ผๅ็ฌใๅๆฅใๅ็ญ็ฅๅๆค็กฌ้ๅผ
- ๅๆๅฃไธ้๏ผ็ธๅ ณๆง้ซๆถ้กถๅฑๆปไป่ฆๆ็กฌๅธฝ
- ๆ็ซฏๆฅๆต็จ๏ผๆทฑๅบฆ้ชค้/็ปดๆค โ ๅ้ฒๅฎๆจกๆฟ
- ๅฐๆ ทๆฌๆ ้๏ผ\x3C200็ฌๅไฟๅฎๆถ็ผฉ
- ๅ ๆชๅฐพๅๆพๅคง๏ผๅ ่ฏๆ่ฝๆงๅถๆๅคงไบๆ๏ผๅ่่ๆพๅคง
้ฃ้ฉๆ็คบ
- ๅฏๅฉๅ ฌๅผๅ่ฎพไฝ ่ฝๅ็กฎไผฐ่ฎก่็ๅ็ไบๆฏ
- ็ฐๅฎไธญๆ"่ฅๅฐพ"๏ผๅๅฒๆฐๆฎไธไปฃ่กจๆชๆฅ
- ๅๆฐๅฏๅฉๆฏๅ จๅฏๅฉๆดๅฎๅ จ
- ๆ ๆไบคๆๆๅผบๅนณ้ฃ้ฉ๏ผๅฟ ้กปๅ ็ฎๅฎๅ จ่พน้
็ธๅ ณ่ตๆบ
- ๅๅงๆ็ซ ๏ผhttps://x.com/KKaWSB/status/1968453490084299020
- ่ฎบๆ๏ผKelly, J.L. (1956) "A New Interpretation of Information Rate"
- ไนฆ๏ผEdward Thorp "Beat the Dealer", "Advances in Large Scale Actors"
ๆดๆฐๆฅๅฟ
- 2026-03-20: ๅๅง็ๆฌ๏ผๅ ๅซๆ ธๅฟๅ ฌๅผใๆกไพๅ้ๅพ
- Make sure OpenClaw is installed (local or Docker)
- Run the install command in chat:
/install kelly-formula-crypto - After installation, invoke the skill by name or use
/kelly-formula-crypto - Provide required inputs per the skill's parameter spec and get structured output
What is Kelly Formula Crypto?
๐ฏ Kelly Formula ไปไฝ็ฎก็ๅจ - ๅฏๅฉๅ ฌๅผๅ ๅฏ่ดงๅธไปไฝ่ฎก็ฎๅทฅๅ ท. It is an AI Agent Skill for Claude Code / OpenClaw, with 211 downloads so far.
How do I install Kelly Formula Crypto?
Run "/install kelly-formula-crypto" in the OpenClaw or Claude Code chat to install it in one step โ no extra setup required.
Is Kelly Formula Crypto free?
Yes, Kelly Formula Crypto is completely free, licensed under MIT-0. You can download, install and use it at no cost.
Which platforms does Kelly Formula Crypto support?
Kelly Formula Crypto is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).
Who created Kelly Formula Crypto?
It is built and maintained by jinboh68-prog (@jinboh68-prog); the current version is v1.0.0.