FB-008: close_trade mixes price and tick; stale exits are silent (zero-P&L fallback) [silent-wrong]
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Idoneità per principianti
- 70/100
Direzione di ricerca
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.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
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.
- Lingua principale
- Python
- Stelle
- 28
- Fork
- 17
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Nessun modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di uberdeveloper/fastbt
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
uberdeveloper/fastbt#29 ·
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
uberdeveloper/fastbt#20 ·
-
bug
Difficoltà 4/5 3-5 giorni Idoneità per principianti 48/100
uberdeveloper/fastbt#31 ·
-
bug
Difficoltà 4/5 3-5 giorni Idoneità per principianti 52/100
uberdeveloper/fastbt#30 ·
-
bug
Difficoltà 4/5 3-5 giorni Idoneità per principianti 48/100
uberdeveloper/fastbt#28 ·
Tutte le issue di uberdeveloper/fastbt
Issue simili
-
bug
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 88/100
openwisp/openwisp-utils#777 ·
-
Boolean statistics (Covered, Confident, JaccardDistant) aggregate to 1.0 without float weightsAperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 63/100
google-research/weatherbenchX#310 ·
I maintainer di solito rispondono entro 3 giorni
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
huggingface/peft#3955 ·
I maintainer di solito rispondono entro 1 giorno
-
author-page correction
Difficoltà 2/5 1-3 ore Idoneità per principianti 60/100
acl-org/acl-anthology#10313 ·
I maintainer di solito rispondono entro 1 giorno
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
AOSSIE-Org/Gitcord-GithubDiscordBot#147 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno