Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

FB-004: max_cycles counts per period, docstring says per day [trap]

Aperta
#23 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
45/100
Tipo di issue
Funzionalità
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
python
Ambito
backend

Direzione di ricerca

Start with the engine docstring at engine.py:85 and the daily reset in strategy.py:416 to confirm how cycle counts work across periods. Then trace where max_cycles is enforced and how strategies set it; the issue notes 76 hard-coded uses across 67 files. Done means the docs describe the per-period behavior and an optional per-day budget is added.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

bug

Severity: trap · Source: BUGS_FASTBT.md (2026-10-09)

The engine docstring (engine.py:85) says "per day". current_cycle is reset only in _reset_for_new_day (strategy.py:416), which runs once per period. So max_cycles=1 means one trade per week or month, and a max_cycles == 1 guard in a strategy means something different in each mode.

Note: this repo's strategies carry 76 hard-coded max_cycles=1 across 67 files, turning re-entry strategies into single-entry ones.

Workaround: set max_cycles per period explicitly and enforce any per-day budget in strategy code.
Fix: document it as per-period, and add an optional per-day cycle budget.

Lingua principale
Python
Stelle
28
Fork
17
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di uberdeveloper/fastbt

Tutte le issue di uberdeveloper/fastbt

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.