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-003: on_day_start / on_day_end fire once per PERIOD, not per day [trap]

Đang mở
#22 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
38/100
Loại issue
Tính năng
Độ rõ ràng
Khá 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 by reading engine.py around lines 209 and 229, the on_day_start and on_day_end docstrings in strategy.py, and the “Proposed enhancements” section of BUGS_FASTBT.md. Trace how the hooks are called for each period and how ctx.is_new_date signals date changes during ticks. Done means the hooks run for every date in a period and returning False from on_day_start skips only that date.

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)

engine.py:209 and engine.py:229 call them once per period, but their docstrings (strategy.py:431, :495) say "once per day". There is no per-date hook; the only per-date signal is polling ctx.is_new_date inside ticks. on_day_start returning False skips the whole period.

Impact: daily signal state (opening range, traded-today, daily counters) is built only on the period's first date.

Workaround: detect ctx.is_new_date in the tick hooks.
Fix: hook ladder — on_run_start → on_period_start → on_day_start/on_day_end (every date) → on_period_end → on_run_end (see BUGS_FASTBT.md "Proposed enhancements").

Ngôn ngữ chính
Python
Star
28
Fork
17
Merge trung bình
5 giờ 7 phút
Pull request đã merge (30 ngày)
1

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.