Repository navigation
fix: Match StcList to Series and name lists by their arguments - #2351
Conversation
Up to standards ✅🟢 Issues
|
| Metric | Results |
|---|---|
| Complexity | 7 |
| Duplication | -1 |
🟢 Coverage 100.00% diff coverage · +0.01% coverage variation
Metric Results Coverage variation ✅ +0.01% coverage variation (-1.00%) Diff coverage ✅ 100.00% diff coverage Coverage variation details
Coverable lines Covered lines Coverage Common ancestor commit (056fb40) 19238 18708 97.25% Head commit (0086bc4) 19252 (+14) 18723 (+15) 97.25% (+0.01%) Coverage variation is the difference between the coverage for the head and common ancestor commits of the pull request branch:
<coverage of head commit> - <coverage of common ancestor commit>Diff coverage details
Coverable lines Covered lines Diff coverage Pull request (#2351) 39 39 100.00% Diff coverage is the percentage of lines that are covered by tests out of the coverable lines that the pull request added or modified:
<covered lines added or modified>/<coverable lines added or modified> * 100%
NEW Get contextual insights on your PRs based on Codacy's metrics, along with PR and Jira context, without leaving GitHub. Enable AI reviewer
TIP This summary will be updated as you push new changes.
a334a60 to
043fbc2
Compare
|
Local review: READY at 043fbc2 |
This comment has been minimized.
This comment has been minimized.
043fbc2 to
296acae
Compare
|
Local review: READY at 296acae |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
There was a problem hiding this comment.
Reviewed StcList against ToStc and StcHub, and the eleven list name changes against their constructors. The warmup index, buffer reset in Clear() and pruning all line up with Series, and every Name maps to the right constructor parameter. Two inline comments follow: one %K boundary difference from Series, and one small allocation in AlmaList.
One note on the PR description: it says names use the invariant culture "as the hubs do", but most hubs (for example AlmaHub and BollingerBandsHub) use plain interpolation, and lists such as KeltnerList, MamaList and ParabolicSarList still do. That is outside this change, but worth a follow-up issue if culture-stable names matter.
Reviewed by the FaciōQuō swarm
StcList fed only bars with a MACD value into a nested StochList, so the stochastic's warmup started at the first MACD value instead of the first bar. At short cycles that left nulls where Series and the hub have values (cycle 1/fast 1/slow 2 at indices 3-5; cycle 2/12/26 at 28-29). The list now computes the stochastic inline over the full series, as StcHub does, and matches Series with and without pruning. Eleven buffer lists built their Name from the default arguments, so ToString() reported the defaults whatever the list was built with: ALMA, ATR Stop, Bollinger Bands, Chandelier, Dynamic, Fractal, Renko, Rolling Pivots, Stochastic, StochRSI, and T3. Each now reports its own arguments, formatted with the invariant culture.
296acae to
0086bc4
Compare
|
Local review: READY at 0086bc4 |
This comment has been minimized.
This comment has been minimized.
|
|
There was a problem hiding this comment.
No new issues found in the full PR diff (11 buffer-list Name fixes, the StcList inline stochastic, and the new tests).
StcListwarmup (_indexgate atSlowPeriods + CyclePeriods, MACD window ofcyclePeriods, 3-wide raw-K average) matches theCalcStochpath inToStc;Clear()resets all new state.- The earlier exact-boundary
rawKnote (100/0 at window high/low) is deferred by the author to #2360, which owns the shared helper, so it is not repeated here. - Name changes now use the constructor arguments with invariant formatting, and the Fractal two-span name is built where both spans are known.
Reviewed by the FaciōQuō swarm
StcListnow matchesToStcat every cycle length, and buffer lists report the arguments they were built with.StcListfed only bars with a MACD value into a nestedStochList, so the stochastic's warmup started at the first MACD value instead of the first bar. At short cycles that left nulls where Series and the stream hub have values. The list now computes the stochastic inline over the full series, asStcHubdoes.Eleven buffer lists built
Namefrom their default arguments, soToString()reported the defaults whatever the list was built with.Behaviour changes
ToStcList(1, 1, 2)ToStcList(2, 12, 26)new ChandelierList(10, 2, Direction.Short).ToString(), and the same for ALMA, ATR Stop, Bollinger Bands, Dynamic, Fractal, Renko, Rolling Pivots, Stochastic, StochRSI and T3 listsCHANDELIER(22, 3, Long)CHANDELIER(10, 2, Short)Release notes:
StcListreturned nulls whereToStchas values at shortcyclePeriods.Review notes
StochList, so pruning syncs only the inner MACD list.