🍀 Spring Date with Fortune, Prizes with Raffle! Growth Value Phase 1️⃣ 7️⃣ Spring Raffle Carnival Begins!
Seize Spring's Good Luck! 👉 https://www.gate.com/activities/pointprize?now_period=17
🌟 How to Participate?
1️⃣ Enter [Square] personal homepage, click the points icon next to your avatar to enter [Community Center]
2️⃣ Complete Square or Hot Chat tasks such as posting, commenting, liking, speaking to earn growth value
🎁 Every 300 points can raffle once, 10g gold bars, Gate Red Bull gift box, VIP experience card and more prizes waiting for you to win!
Details 👉 https://www.gate.com/ann
我的 Polymarket 交易策略有個熔斷器,同一個 bug 修了 5 次。
今天第 6 次出問題,終於意識到:不是程式碼有 bug,是我在用直覺定閾值。
勝率低於 75% 就暫停交易——聽起來合理吧?讓 Claude 拉了 1179 筆歷史交易跑統計檢驗,發現:
這個策略真實勝率 78.7%,正常波動就有 25% 的時間低於 75%。等於每 4 天自己把自己停一次。
更離譜的是 50 筆樣本裡 74% 和 75% 的差異,p 值 0.43——統計學告訴你這兩個數一模一樣,但我的程式碼把它當成了"策略失效"的鐵證。
然後熔斷器暫停交易,等恢復時又檢測到勝率還是 74%(廢話,沒交易怎麼變),再暫停,死循環。策略白白停了 5 個多小時。
修了 5 次修的都是恢復邏輯,今天才發現根本不該暫停。
用數據重新定了閾值:樣本量從 50 提到 100,閾值從 75% 降到 68%(正常波動中從未觸及)。一次搞定。
教訓:寫量化策略最容易犯的錯,不是演算法不行,是參數全靠拍腦袋。