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-005: per-day context fields are actually per period [trap]

Đang mở
#24 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
55/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

Read context.py around lines 97 and 218, then trace how tick dates and period-level fields are built and exposed to strategies and trades. Check the existing context tests for day boundaries; done means per-day tick index and date are available on ctx, and the affected docstrings describe their actual scope.

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)

  • ctx.tick_index, total_ticks ("today's clock", context.py:218), is_last_tick and ticks_remaining span the whole period. A "first tick of the day" check (tick_index == 0) fires only on the period's first date.
  • ctx.trade_date, strategy.trade_date and every trade.trade_date are the period's first date.
  • DayStartContext.get_spot() ("first available tick of the day", context.py:97) returns the period's first bar.

Workaround: derive the date from the tick and keep your own per-day index.
Fix: add ctx.day_tick_index and ctx.date, and correct the docstrings.

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

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.