FB-004: max_cycles counts per period, docstring says per day [trap]
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 45/100
Hướng nghiên cứu
Start with the engine docstring at engine.py:85 and the daily reset in strategy.py:416 to confirm how cycle counts work across periods. Then trace where max_cycles is enforced and how strategies set it; the issue notes 76 hard-coded uses across 67 files. Done means the docs describe the per-period behavior and an optional per-day budget is added.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Severity: trap · Source: BUGS_FASTBT.md (2026-10-09)
The engine docstring (engine.py:85) says "per day". current_cycle is reset only in _reset_for_new_day (strategy.py:416), which runs once per period. So max_cycles=1 means one trade per week or month, and a max_cycles == 1 guard in a strategy means something different in each mode.
Note: this repo's strategies carry 76 hard-coded max_cycles=1 across 67 files, turning re-entry strategies into single-entry ones.
Workaround: set max_cycles per period explicitly and enforce any per-day budget in strategy code.
Fix: document it as per-period, and add an optional per-day cycle budget.
- Ngôn ngữ chính
- Python
- Star
- 28
- Fork
- 17
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Không có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của uberdeveloper/fastbt
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
uberdeveloper/fastbt#29 ·
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
uberdeveloper/fastbt#20 ·
-
bug
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 48/100
uberdeveloper/fastbt#31 ·
-
bug
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 52/100
uberdeveloper/fastbt#30 ·
-
bug
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 48/100
uberdeveloper/fastbt#28 ·
Tất cả issue của uberdeveloper/fastbt
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 62/100
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 70/100
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
topoteretes/cognee#5773 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
MiKTeX: a failed build reports no errors because texify --quiet switches the log to file:line: styleĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 74/100
SublimeText/LaTeXTools#1718 ·