Files
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

4.2 KiB

1uppermiddlelower
2nannannan
3nannannan
4nannannan
5nannannan
6nannannan
7nannannan
8119.68877290115522111.92763996530223104.16650702944925
9119.95803096115085112.18594293044396104.41385489973706
10119.17956350027117111.579227971455103.97889244263882
11117.58028788866766110.2116460201351102.84300415160256
12115.7157688229306108.26414601945635100.8125232159821
13113.70274128815872105.9752329099633898.24772453176804
14111.59148367648376103.6149858573990395.6384880383143
15109.46106536364826101.4558975284916593.45072969333503
16107.5417742283783499.74441952645491.94706482452965
17106.2820423886660898.6767866219290191.07153085519194
18105.7933760047546998.3818202724200790.97026454008545
19106.1849766736642898.9121720416855191.63936740970674
20107.60893509218141100.2441186267102692.87930216123911
21110.04116864067348102.2848269597330194.52848527879254
22113.11835287049863104.8851812437179496.65200961693725
23116.4445503391588107.8559162789467299.26728221873465
24119.66056619479444110.98492734070891102.30928848662337
25122.73609349334045114.05411169916994105.37212990499943
26125.46675566920727116.85475284237532108.24275001554336
27127.71805738190567119.20107659186493110.6840958018242
28129.24579159941487120.9420138925638112.63823618571276
29129.84463869138517121.97130255662236114.09796642185954
30129.7897732088316122.23585628238462114.68193935593764
31129.17319732234387121.74192833606801114.31065934979215
32127.95535710644951120.55817124638594113.16098538632237
33126.16064032449377118.81443331786477111.46822631123577
34124.04525292584705116.69519266620472109.34513240656239
35121.80694463715056114.42698304047622107.04702144380187
36119.55974205320581112.25997863861232104.96021522401884
37117.50568567673326110.4449371922459103.38418870775854
38116.03909758514934109.20773466108315102.37637173701697
39115.61816785985854108.72451690723025101.83086595460196
40116.14777522224618109.10083172226064102.05388822227509
41117.43328307619454110.35786211323284103.28244115027114
42119.60400205885249112.42805278964533105.25210352043818
43122.6032098656448115.16112803254006107.71904619943533
44126.28105330513108118.33996746241309110.39888161969509
45130.16929585508362121.70432121481855113.23934657455348
46133.78768346870868124.97918831867783116.17069316864696
47136.74917747586767127.90406706544596119.05895665502425
48138.92227778593627130.25931738333242121.59635698072856
49140.1856741645651131.88652318440487123.58737220424463
50140.7406820315386132.700853973726124.6610259159134
51140.46063841745726132.69475956025894124.92888070306063
52139.63576726314676131.93361851227115124.23146976139553
53138.41069313764635130.54495960311132122.6792260685763
54136.7364708178502128.7034281759981120.67038553414604
55134.63354342134116126.61373199439691118.59392056745267
56132.329282117968124.49344586666177116.65760961535555
57130.25419271117806122.55694404961523114.85969538805237
58128.7301881022123121.00107116795235113.27195423369237
59127.69835700418832119.99265143785473112.28694587152114
60127.11586538593342119.65770507152237112.19954475711133
61127.28239191523106120.07232682196711112.86226172870316
62128.45677805469956121.25551860214391114.05425914958826
63130.55610728332792123.16470702358724115.77330676384656
64133.32432015573448125.6950281434764118.06573613121833
65136.51799385864285128.68354952617938120.84910519371591
66140.00418183078597131.91931218043806123.83444253009016
67143.40972978817965135.15940013210917126.90907047603869
68146.36301881669988138.15028154479393129.93754427288798
69148.67967886333503140.65260266129147132.6255264592479
70150.29187259203476142.46669421048986134.64151582894496
71151.283215671515143.45550176566366135.62778785981232
72151.3732406074288143.56164444302738135.75004827862594
73150.40401172981018142.81589900452497135.22778627923975
74148.7335621948936141.33552924214177133.93749628938994
75146.83521760827412139.31234580066746131.7894739930608
76144.79686145760581136.99192178864237129.18698211967893
77142.67165603847315134.6467145585503126.62177307862741
78140.54553304690924132.54670455837936124.5478760698495
79138.693049423447130.93140388844728123.16975835344755
80137.55269269227563129.98668366489375122.42067463751188
81137.2216847295217129.82892538370828122.43616603789485