Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

FB-005: per-day context fields are actually per period [trap]

オープン
#24 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
55/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
活発
技術スタック
python
領域
backend

調査の方向性

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.

索引モデルが issue の本文から書いたものです。

説明

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.

主要言語
Python
スター
28
フォーク
17
平均マージ
5時間 7分
マージ済み PR(30日)
1

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

uberdeveloper/fastbt のほかの issue

uberdeveloper/fastbt の issue をすべて見る

似ている issue

Python の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。