Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

FB-004: max_cycles counts per period, docstring says per day [trap]

Đang mở
#23 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

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
Loại issue
Tính năng
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
python
Lĩnh vực
backend

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ả

bug

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

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. 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.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của uberdeveloper/fastbt

Tất cả issue của uberdeveloper/fastbt

Issue tương tự

Thêm issue về Python

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.