FB-007: _handle_cycle_done silently drops still-open legs after on_exit [silent-wrong]
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 3/5
- Tiempo estimado
- 1-2 días
- Aptitud para principiantes
- 55/100
Línea de trabajo
Read strategy.py around _handle_cycle_done at line 401, then trace how on_exit closes legs and how closed_trades records P&L. Check existing tests for cycle completion and exit handling. Done means any legs still open after on_exit are handled with a CYCLE_DROP reason or an explicit error, with no lost P&L or unlogged positions.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Severity: silent-wrong · Source: BUGS_FASTBT.md (2026-10-09)
After on_exit, _handle_cycle_done runs self.positions.clear() (strategy.py:401). A custom on_exit that leaves any leg open (partial close, a hedge kept on purpose, a close that failed) makes that leg vanish. It is in neither positions nor closed_trades, so its P&L is lost and nothing is logged.
Workaround: on_exit must close everything.
Fix: close the remaining legs with a reason such as CYCLE_DROP, or raise.
- Lenguaje dominante
- Python
- Estrellas
- 28
- Forks
- 17
- Merge medio
- 8 h 50 min
- PR fusionados (30 d)
- 2
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Sin plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de uberdeveloper/fastbt
-
bug
Dificultad 4/5 3-5 días Aptitud para principiantes 48/100
uberdeveloper/fastbt#31 ·
-
bug
Dificultad 4/5 3-5 días Aptitud para principiantes 52/100
uberdeveloper/fastbt#30 ·
-
bug
Dificultad 4/5 3-5 días Aptitud para principiantes 48/100
uberdeveloper/fastbt#28 ·
-
FB-008: close_trade mixes price and tick; stale exits are silent (zero-P&L fallback) [silent-wrong]Abiertobug
Dificultad 3/5 1-2 días Aptitud para principiantes 70/100
uberdeveloper/fastbt#27 ·
-
bug
Dificultad 3/5 1-2 días Aptitud para principiantes 56/100
uberdeveloper/fastbt#25 ·
Todos los issues de uberdeveloper/fastbt
Issues similares
-
Workflow.schedule stops when a cron deadline passes before sleepPosiblemente ocupada @HuaTNA la tomó hoy. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
Los mantenedores suelen responder en 1 día
-
[Bug] HiveDialect shares its colspecs dict with SQLAlchemy's DefaultDialect (python/pyhive)Posiblemente ocupada @rusackas la tomó hoy. Abierto
Dificultad 1/5 Menos de una hora Aptitud para principiantes 80/100
apache/kyuubi#7786 · 1 comentario ·
Los mantenedores suelen responder en 2 días
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 80/100
Los mantenedores suelen responder en 1 día
-
[20.0] hr_work_entry: Duration column of Export Time Entries is truncated to whole hoursPosiblemente ocupada @odooaktiv la tomó hoy. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
Los mantenedores suelen responder en 1 día
-
fix formatting of the sample database page of the docsPosiblemente ocupada @Aaqibhafeezkhan la tomó hoy. Abiertodocumentation good first issue help wanted
Dificultad 1/5 Menos de una hora Aptitud para principiantes 72/100
chaoss/CollectOSS#544 · 1 comentario ·
Los mantenedores suelen responder en 1 día