FB-008: close_trade mixes price and tick; stale exits are silent (zero-P&L fallback) [silent-wrong]
まだ誰も着手していません。
評価
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 初心者へのやさしさ
- 70/100
調査の方向性
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 の本文から書いたものです。
説明
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 thetickargument (strategy.py:245). A caller passing a different tick records a price from one time against another. - The lag returned by
get_priceis 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
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
uberdeveloper/fastbt のほかの issue
-
bug
難易度 4/5 3〜5日 初心者へのやさしさ 48/100
uberdeveloper/fastbt#31 ·
-
bug
難易度 4/5 3〜5日 初心者へのやさしさ 52/100
uberdeveloper/fastbt#30 ·
-
bug
難易度 4/5 3〜5日 初心者へのやさしさ 48/100
uberdeveloper/fastbt#28 ·
-
bug
難易度 3/5 1〜2日 初心者へのやさしさ 55/100
uberdeveloper/fastbt#26 ·
-
bug
難易度 3/5 1〜2日 初心者へのやさしさ 56/100
uberdeveloper/fastbt#25 ·
uberdeveloper/fastbt の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
PolicyEngine/policyengine-us#10262 ·
メンテナーはふだん 2 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
kellyjonbrazil/jc#788 ·
メンテナーはふだん 2 日以内に返信
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
メンテナーはふだん 1 日以内に返信
-
`/search.json` ignores the documented `editions.sort` parameter対応中かも @PranavD2905 が今日担当しました。 オープンAffects: Server Good First Issue Module: Solr Needs: Triage Theme: Public APIs Theme: Search
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
internetarchive/openlibrary#13989 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
bug P2: misleading query
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
jeffknupp/association#478 ·