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

FB-008: close_trade mixes price and tick; stale exits are silent (zero-P&L fallback) [silent-wrong]

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

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

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
70/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
python
領域
backend, data

調査の方向性

Start in strategy.py at the cited lines 231 and 245, then trace get_price and the trade fields used by close_trade. Check existing tests for stale prices, fill-forward behavior, and no-price exits. Done means one tick source is used, the exit lag is recorded, and an optional maximum lag is enforced with tests covering the stated cases.

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

説明

bug

Severity: silent-wrong · Source: BUGS_FASTBT.md (2026-10-09; seen in skill trial 11)

  • The price is read at ctx.tick (strategy.py:231), but the trade is stamped with the tick argument (strategy.py:245). A caller passing a different tick records a price from one time against another.
  • The lag returned by get_price is discarded, so a fill-forward exit of any age is accepted: from yesterday's close, or from a contract with no bars left.
  • With no price at all, the exit price falls back to the entry price (zero P&L) with only a logger.warning.

Observed: on the stale 2025-11-27 monthly gap, the fill-forward and live-only variants exit differently.

Workaround: check the lag before closing; pin the ffill-vs-live exit policy.
Fix: use one tick source; store exit_lag on the trade; add an optional max_exit_lag.

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

環境構築

はじめの一歩

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

uberdeveloper/fastbt のほかの issue

uberdeveloper/fastbt の issue をすべて見る

似ている issue

Python の issue をもっと見る

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

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