Alpha freezes when target/reference sample counts diverge

Aperta
#9,936 2 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

  • #9947 di @abhi-byte62 — chiusa senza merge

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
55/100
Tipo di issue
Bug
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
csharp
Ambito
data

Direzione di ricerca

Start with Indicators/Alpha.cs and trace how target and reference ROC observations are counted and used to decide when Alpha recalculates. Reproduce the issue with periods 2/4 by feeding two benchmark-only daily bars followed by at least five timestamp-matched stock and benchmark pairs. Done means Alpha recalculates from aligned return windows without requiring equal lifetime sample counts, and no longer remains zero or stale.

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

Descrizione

Expected Behavior

Alpha indicator should not produce only 0s.

Actual Behavior

Alpha indicator produces only 0s.
Indicators/Alpha.cs only recalculates Alpha when:
_targetROC.Samples == _referenceROC.Samples
Different IPO dates, missing bars or different trading calendars can permanently offset these counters. Alpha then remains zero or stale, even when IsReady is true.

Potential Solution

Expected: Synchronize observations by timestamp and calculate from aligned return windows, without requiring equal lifetime sample counts.

Reproducing the Problem

Reproduction: Create Alpha with periods 2/4. Feed two benchmark-only daily bars, then at least five timestamp-matched stock/benchmark pairs. Alpha never recalculates because the counters remain unequal.

System Information

windows

Checklist
  • I have completely filled out this template
  • I have confirmed that this issue exists on the current master branch
  • I have confirmed that this is not a duplicate issue by searching issues
  • I have provided detailed steps to reproduce the issue
Lingua principale
C#
Stelle
22.6k
Fork
5.4k
Merge medio
11h 39m
PR unite (30g)
104

Preparare l'ambiente

Apri in Codespaces

Avvia il container di sviluppo del progetto nel browser, con il tuo account GitHub.

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 QuantConnect/Lean

Tutte le issue di QuantConnect/Lean

Issue simili

Altre issue su C#

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.