Files
wickra/testdata/golden/g_HighLowVolumeNodes.csv
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

2.9 KiB

1hvnlvn
2nannan
3nannan
4104.5180247421786798.72422497135318
5107.36867266585102106.01019222035171
6109.94309098265116108.75871466719266
7111.1412061533575108.30382420300766
8111.2267596218075110.51085106366537
9111.61016507405071110.96396659813462
10111.48373355979457109.84794550121919
11110.1919578549517114.0744634595206
12109.89360012047727105.36510632074285
13108.22017032672409102.31073290910014
14104.685276396529199.79820922304276
1599.18557851002508103.71725026673847
1698.7238842298237101.57602475733832
1797.66809846974488100.4359110204916
1896.7386214507776996.205017567278
1997.80061491481311100.78045377766902
2099.8745309785006497.02387446584231
2199.73113826147147104.526747970451
22106.22426428775424104.89788191288208
23109.02791018573753103.36608752546002
24113.21916606921877110.48875707683496
25115.17894486561615109.9045632866436
26117.16994545702758119.5759549988874
27117.27243337523937122.813687370914
28120.96844551395874118.12324178453835
29121.84111917539195119.74392144148575
30121.52820160477626121.0264473756539
31121.27288065306473119.96122340893605
32120.7949139620332118.1445794515615
33119.29100883996762116.12815947091546
34116.00125657418624119.53321924775837
35115.87028236454752111.07629571013813
36110.2077429601487112.46426170542347
37108.6636468431793112.59890863261933
38108.37728792988534110.63397309995386
39107.06733566332791109.73223157413513
40107.34704622727283110.94431068456313
41109.78084750059655106.76972126301585
42112.75221086560603107.92419030793636
43113.05747959339188114.41219733446941
44119.67648661778631121.13998678528807
45123.39782494453392124.89484864071441
46123.57231042795752127.997139139779
47126.56312482821917127.87201622938282
48131.57608986532344127.1812345404576
49132.27448859176067129.89280440254038
50131.93706959304484131.36827117491552
51131.88980548859385131.31241359692802
52132.18152257385782129.70957544337364
53130.58203338058843133.5844128925281
54128.83296341237408132.16211169004137
55124.78194901416947129.24761450729923
56122.79694481202885126.98767341072154
57123.42686539861172119.51245995977726
58121.47801801520458118.05360285033922
59119.11274095953729122.08454529903682
60118.18329560290773117.56467403253598
61118.92635961561233117.58956252100253
62120.95130053283015122.66392211763637
63120.7818884824585125.12687873791317
64122.790676749647125.34142533792588
65126.71510084830436130.94699528908922
66133.06315600802168131.5692433484722
67136.44553313543602130.67087553869058
68139.22225710149132137.8915638698257
69141.7343919644476137.16015148115466
70142.9067116600835140.19046850862026
71142.88549037137219142.21531914404568
72142.89291264384238142.22409092060133
73142.7367135513615141.0323941867808
74140.24580797003486144.24676574952355
75140.85371755423384136.25179301552072
76139.21910172502393133.25769174177162
77135.73551373657554130.8631989672575
78130.3612782882727134.77220810950934
79129.90354499037025132.64925332271474
80128.99532409025343131.54868190314716
81128.234765053304131.01906370700098