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

3.8 KiB

1uppermiddlelower
2nannannan
3nannannan
4nannannan
5nannannan
6nannannan
7nannannan
8nannannan
9nannannan
10nannannan
11nannannan
12nannannan
13nannannan
14nannannan
15115.42223490063166105.8105254873203296.19881607400897
16110.8531900491846102.536184520541194.21917899189759
17106.1906726795997199.6605828961781193.13049311275651
18102.1821991426453697.48525305394692.78830696524663
19100.072749267642996.24917424084792.42559921405109
20100.8945850796791596.1074252067766191.32026533387408
21103.7546789999055197.1173314816582390.47998396341094
22107.6385955470457599.2333446565859190.82809376612607
23111.97591736820729102.3111110875363392.64630480686537
24116.33722959274573106.1203665764688895.90350356019204
25120.35257206636732110.36550518635131100.37843830633531
26123.7176488204434114.71198483912633105.70632085780926
27126.23086183285382118.81621096319454111.40156009353525
28127.87826535693038122.35622877318336116.83419218943634
29129.0857187495655125.06048253206338121.03524631456125
30130.8670453222711126.73207281637531122.59710031047949
31132.99927503480188127.26634495531178121.53341487582168
32134.27598492450488126.66023752077254119.04449011704021
33134.1622901612134125.01255579561924115.86282143002505
34132.5668387181173122.51514579202414112.46345286593096
35129.62920101989414119.43575721856833109.24231341724251
36125.65050860465828116.09412619620025106.53774378774222
37121.06057518232433112.83341418280601104.60625318328769
38116.41209463243416109.98955438219666103.56701413195916
39112.47082504761673107.86124383150641103.2516626153961
40110.51349335532025106.68326168445915102.85303001359806
41111.48546253126406106.60549708879844101.72553164633283
42114.42376900880853107.67956003512641100.9353510614443
43118.34601987553009109.85417119015123101.36232250477238
44122.69539253586646112.97974252680737103.26409251774828
45127.04659008585104116.82173957720215106.59688906855327
46131.03279487427605121.08163169813083111.13046852198562
47134.35423987831632125.42355892433378116.49287797035123
48136.81684868556786129.50433333891905122.19181799227026
49138.42211353777907133.00409502787733127.58607651797558
50139.63336255195725135.6548842135778131.67640587519833
51141.461983562285137.26457730365246133.0671710450199
52143.573521209777137.73404871930973131.89457622884245
53144.7805951256023137.06602548806697129.35145585053164
54144.58359708046436135.3648436465045126.14609021254466
55142.90751688267724132.8271282128569122.74673954303657
56139.90225076333562129.72422925973203119.54620775612844
57135.87683244397408126.3779830202745116.87913359657493
58131.2677308407553123.13196321596729114.99619559117927
59126.63559938051972120.32079063934128114.00598189816284
60122.76557432685047118.24024247516277113.71491062347508
61120.96433428327445117.1208314054171113.27732852755976
62122.0823303991086117.10721459795151112.13209879679442
63125.0958465842453118.24527191249732111.39469724074934
64129.05475994494066120.47800758944088111.9012552339411
65133.4148602471883123.65064151128308113.88642277537787
66137.7547872283839127.52443524956087117.29408327073784
67141.7109030205324131.79801785763928121.88513269474615
68144.98808700731516136.13430643981556127.28052587231598
69147.4000360361705140.19061676247512132.98119748877974
70148.96446440948932143.64927421608036138.3340840226714
71150.18345631752632146.2459907419256142.30852516632487
72152.05797742412273147.7934728973059143.52896837048905
73154.14468995984444148.19815222094596142.25161448204747
74155.2806968493626147.4685434249762139.65639000058977
75155.00020229220343145.71448380105656136.4287653099097
76153.24397867467368143.13732178223626133.03066488979883
77150.17206312494991140.01193108709475129.8517990492396
78146.10129286063778136.6621570691049127.22302127757202
79141.47476631158332133.43188857569947125.38901083981564
80136.8613501625982130.65433938171788124.44732860083757
81133.0667562797099128.62228319529356124.17781011087723