Files
wickra/testdata/golden/g_LinRegChannel.csv
T
kingchenc 4f708d410d test: golden-pin the four de-duplicated indicators across all bindings (#305)
* test: golden-pin the four de-duplicated indicators across all C-ABI bindings

Extend gen_golden to emit reference fixtures for AdOscillator (ADOSC),
IntradayIntensity, AwesomeOscillatorHistogram and AverageDrawdown, and replay
them through the Go / C# / Java / R golden harnesses so their corrected
definitions stay bit-identical to the Rust core in every binding. Go suite
verified locally (gcc 13 + cgo): all 9 golden tests pass; C#/Java/R use the
same fixtures and harness pattern (CI-verified). First step of extending the
golden coverage beyond the seven archetype representatives.

* test: golden-pin the scalar-output tranche (308 indicators) against Rust

Extend gen_golden with a generated emit_scalar that writes reference fixtures
for every single-f64-output indicator (scalar / candle / pairwise input) using
valid constructor params, and add a manifest-driven generic Python golden
replay that reconstructs each by its native name and checks it bit-for-bit
against the Rust output. 308 indicators now value-tied to the Rust core in
Python (pytest: 308/308). Takes golden coverage from the 7 archetype
representatives to 308+ of the catalogue.

22 scalar indicators with non-default constructor constraints are skipped by
gen_golden for now (logged), as are non-f64-output ones; multi-output, exotic
inputs and the per-indicator arg arities of the C-ABI/Node replays follow.
Generated + verified locally with the full toolchain.

* test: golden-pin the multi-output tranche (70 indicators) in Python

Add a generated emit_multi to gen_golden (per-indicator Output-field access,
one CSV column per field) and a manifest-driven generic Python replay that
checks every field of each multi-output indicator against the Rust reference.
70 multi-output indicators now value-tied to Rust in Python; combined with the
scalar tranche, 378 indicators are golden-pinned. 8 multi with non-default
param constraints and 5 with non-f64 Output fields (Option/Vec/i64) are
deferred. pytest green.

* test(golden): add 30 constraint-tuned indicators to scalar/multi golden suite

Emit golden fixtures for 22 scalar-output and 8 multi-output indicators
whose constructors need non-default parameters (Alma, Jma, Psar, T3, Mama,
DoubleBollinger, ZigZag, ...). All 408 fixtures replay bit-for-bit through
the Python binding.

* test(golden): cover 36 missed scalar/multi indicators

Add 26 single-output (LinearRegression family, HT cycle, Candle
volatility estimators, DrawdownDuration) and 10 multi-output
(BollingerBands, MACD/MACDEXT/MACDFIX, Camarilla, VWAP bands, ...)
indicators to the golden suite. 444 fixtures replay bit-for-bit
through the Python binding.

* test(golden): cover 50 exotic-input indicators

Add deterministic synthetic feeders for the DerivativesTick (17),
CrossSection (15), Trade (8), TradeQuote (3) and OrderBook (7)
families, derived from the shared OHLCV input series in both
gen_golden and a new Python replay harness (test_golden_exotic).
All 494 fixtures replay bit-for-bit through the Python binding.

* test(golden): complete 514-indicator golden coverage

Add the final tranches: 3 mixed multi-output indicators (Ichimoku,
WilliamsFractals, LeadLagCrossCorrelation), 6 histogram profiles
(time/volume seasonality + TPO/volume price profiles), 10 alt-chart
bar builders and the footprint. Every one of the 514 distinct
indicators now has a Rust-generated g_<Canonical>.csv fixture and a
generic Python replay (scalar/multi/exotic/profile/bars), all passing
bit-for-bit.

* test(golden): add generic Node replay for all 514 indicators

A manifest-driven node:test harness reconstructs every indicator by its
native class, feeds the same synthetic stream derived from the shared
golden input, and checks output bit-for-bit against the Rust reference
fixtures (scalar/multi/exotic/profile/bars). node_manifest.json is
generated from index.d.ts plus the Python-side manifests. 514/514 pass.

* test(golden): add generated Go replay for all 514 indicators

golden_all_test.go (generated by gen_golden_test.py) reconstructs every
Go indicator, feeds the shared synthetic stream and checks output
bit-for-bit against the Rust reference fixtures. A reflection-based
comparator flattens multi-output structs, profiles and bar slices so one
path covers all archetypes. This is the first C-ABI binding verified
across the full catalogue. 514/514 pass.

* test(golden): add generated C# replay for all 514 indicators

GoldenAllTests.g.cs (generated by gen_golden_test.py) reconstructs every
C# indicator, feeds the shared synthetic stream and checks output
bit-for-bit against the Rust reference fixtures via a reflection-based
flatten covering scalar/multi/profile/bar archetypes. 514/514 pass.

Also add the '#nullable enable' directive the compiler requires to the
generated Indicators.g.cs, clearing the four CS8669 warnings on the
nullable double[] profile return types.

* fix(java): marshal C ABI bool params correctly; add 514 golden replay

The Java FFM binding marshalled the cross-section state flags (newHigh,
newLow, aboveMa, onBuySignal) as JAVA_DOUBLE arrays, but the C ABI takes
them as const bool* (one byte each), so the native side read the low byte
of each 8-byte double and saw every flag as false. Add WickraNative.
boolSegment and use it across the 15 cross-section indicators. Also pass
the MacdExt MaType arguments as byte to match the uint8_t downcall
descriptor (was int, throwing WrongMethodTypeException).

Add GoldenAllTest.java (generated by gen_golden_test.py): a reflection
runner replaying all 514 indicators against the Rust reference fixtures.
The bugs above were found by this test; 514/514 now pass.

* fix(r): marshal C ABI bool flags correctly; add 514 golden replay

The R wrapper passed the cross-section state flags as (bool *)REAL(x),
reinterpreting the 8-byte doubles as 1-byte bools so the native side read
every flag as false. Add wk_bool_vec to convert each flag vector into a
real C bool buffer and use it for all 15 cross-section update wrappers.

Add test-golden-all.R + generated golden_specs.R: a reflective runner
replaying all 514 indicators against the Rust reference fixtures. The bug
above was found by this test; verified 514/514 pass locally.

* test(golden): add WASM replay for all 514 indicators

A manifest-driven node:test harness loads the nodejs-target wasm-pack
build, reconstructs every indicator by its JS class, feeds the shared
synthetic stream and checks output bit-for-bit against the Rust
reference fixtures. wasm_manifest.json is generated from the wasm .d.ts
plus the shared manifests; a recursive flattener covers scalar, multi
(Reflect objects), profile and bar shapes. 514/514 pass locally
(wasm-pack build --target nodejs, then node --test).

* test(golden): add C and C++ replay for all 514 indicators

golden_test.c (generated by gen_golden_test.py) drives every indicator
through the C ABI (wickra.h) and checks output bit-for-bit against the
Rust reference fixtures. golden_test.cpp #includes the same source so the
identical runner is compiled and run under both gcc (C) and g++ (C++) via
the CMake targets golden_test / golden_test_cpp — proving the extern "C"
header is consumable from each language. Both 514/514 (verified via ctest).

* test(golden): gofmt the generated Go golden replay

* test(golden): make the Node fixture reader CRLF-safe and pin fixtures to LF
2026-06-15 04:48:51 +02:00

3.8 KiB

1uppermiddlelower
2nannannan
3nannannan
4nannannan
5nannannan
6nannannan
7nannannan
8nannannan
9nannannan
10nannannan
11nannannan
12nannannan
13nannannan
14nannannan
15114.709239255337105.8105254873203296.91181171930364
16110.23623540887868102.536184520541194.83613363220351
17105.7062712709892299.6605828961781193.614894521367
18101.8337801504119497.48525305394693.13672595748005
1999.7891168536430296.24917424084792.70923162805097
20100.539474037934496.1074252067766191.67537637561882
21103.2623212232270397.1173314816582390.97234174008942
22107.0150948746047799.2333446565859191.45159443856706
23111.2589830025895102.3111110875363393.36323917248316
24115.5793437135608106.1203665764688896.66138943937696
25119.61173244164287110.36550518635131101.11927793105976
26123.04960956482736114.71198483912633106.3743601134253
27125.68084377112113118.81621096319454111.95157815526794
28127.46864123409571122.35622877318336117.24381631227101
29128.7871271285593125.06048253206338121.33383793556747
30130.56031347434052126.73207281637531122.90383215841008
31132.57400685349435127.26634495531178121.95868305712919
32133.71104954193856126.66023752077254119.60942549960653
33133.48356377886597125.01255579561924116.54154781237249
34131.82120513974277122.51514579202414113.2090864443055
35128.8730523757377119.43575721856833109.99846206139895
36124.94161711106352116.09412619620025107.24663528133698
37120.4502852002249112.83341418280601105.21654316538712
38115.93567123746477109.98955438219666104.04343752692854
39112.12888677291534107.86124383150641103.59360089009749
40110.22936715212776106.68326168445915103.13715621679054
41111.12346718162857106.60549708879844102.08752699596832
42113.92348426002772107.67956003512641101.43563581022511
43117.71609538730209109.85417119015123101.99224699300038
44121.97468658754964112.97974252680737103.9847984660651
45126.28811169527889116.82173957720215107.35536745912542
46130.29461858272253121.08163169813083111.86864481353913
47133.6917628561867125.42355892433378117.15535499248084
48136.27440702674176129.50433333891905122.73425965109635
49138.02020546528408133.00409502787733127.98798459047056
50139.3382394257592135.6548842135778131.97152900139636
51141.1506203848056137.26457730365246133.37853422249933
52143.14034972305322137.73404871930973132.32774771556623
53144.20832911959224137.06602548806697129.9237218565417
54143.89975087051178135.3648436465045126.82993642249725
55142.15975465689607132.8271282128569123.49450176881774
56139.1472461436855129.72422925973203120.30121237577858
57135.1722087414485126.3779830202745117.58375729910051
58130.66422041007482123.13196321596729115.59970602185976
59126.16716749814368120.32079063934128114.47441378053888
60122.42988566159619118.24024247516277114.05059928872936
61120.67922362327108117.1208314054171113.56243918756313
62121.71327680535876117.10721459795151112.50115239054426
63124.58767163859434118.24527191249732111.90287218640029
64128.41853731093414120.47800758944088112.53747786794762
65132.69055147555986123.65064151128308114.61073154700631
66136.99590073930312127.52443524956087118.05296975981861
67140.97556618818285131.79801785763928122.62046952709572
68144.3313144481823136.13430643981556127.93729843144882
69146.86524203374992140.19061676247512133.5159914912003
70148.57018413125232143.64927421608036138.7283643009084
71149.89137551397923146.2459907419256142.60060596987196
72151.74163690380394147.7934728973059143.84530889080784
73153.7035763836742148.19815222094596142.6927280582177
74154.7011920877801147.4685434249762140.23589476217228
75154.31138862099145.71448380105656137.11757898112313
76152.4942678747596143.13732178223626133.7803756897129
77149.41838554408412140.01193108709475130.6054766301054
78145.40109870938852136.6621570691049127.92321542882127
79140.8781464435939133.43188857569947125.98563070780507
80136.4009147221618130.65433938171788124.90776404127396
81132.73706570974431128.62228319529356124.50750068084282