Skip to content

Buffer lists and stream hubs disagree with Series at non-default parameters #2326

Closed

Description

@DaveSkender

The library requires Series, buffer list and stream hub results to be identical. A sweep that runs every catalog listing at its default parameters, and at each integer parameter's catalog minimum plus 0, 1 and 2, finds these disagreements with Series on the standard test bars. The per-style tests use default parameters, which is why they pass.

Indicator Style Parameters Difference from Series
Ichimoku Buffer list kijunPeriods 1–3 ChikouSpan differs on every row. ToIchimoku(t, k, b) sets both offsets to kijunPeriods, while ToIchimokuList(t, k, b) keeps them at 26, so the same call gives different results.
Keltner Stream hub emaPeriods 2–4 (with atrPeriods 10) Centerline differs from index 9 for 28–58 rows: the hub's EMA starts at a different bar.
Rolling Pivots Stream hub offsetPeriods 1–2 All pivot levels differ from the first value onward (240–317 rows).
RSI Stream hub lookbackPeriods 1 Null at 4 rows where Series gives 100.
Stochastic Buffer list lookbackPeriods 1–3 Oscillator null at 2–4 early rows where Series has a value.
StochRSI Stream hub rsiPeriods 1 StochRsi null at 8 rows where Series gives 100.
StochRSI Buffer list stochPeriods 1–3 Signal null at 1–3 early rows where Series has a value.
KVO, STC Buffer list and stream hub KVO fastPeriods 3–5, signalPeriods 3; STC fastPeriods 2 The last digit differs on 1–18 rows, a summation-order difference.

These are separate from the StcList warmup defect (#2321) and the ConnorsRsi Series rounding defect (#2325).

A permanent version of the sweep, comparing public result values across styles at small parameters, would guard against new cases.

Activity

  1. DaveSkender commented on Oct 12, 2026

    @DaveSkender
    MemberAuthor

    Another case, found while checking STC: a NaN input mid-series. ToEma re-seeds after the gap, but EmaList carries NaN forward on every later row. With one NaN close at index 150 of the standard test bars, ToEmaList(12) differs from ToEma(12) on 352 rows (Series gives 243.65 at index 200; the list gives NaN). MacdList, and so StcList, inherit it: ToStcList(5, 12, 26) differs from ToStc on 320 rows.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions