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

4.3 KiB

1uppermiddlelower
2nannannan
3nannannan
4nannannan
5109.54456746495428104.85872397420964100.172880483465
6111.65151860825563107.6888216891277103.72612476999979
7112.89632833892851109.9437586389845106.9911889390405
8113.21246502196237111.4667715326924109.72107804342244
9112.8892248089026112.16647767524587111.44373054158915
10113.0448085487968112.02503791170568111.00526727461457
11113.11645015802397111.09975014578013109.0830501335363
12112.40300630319841109.51793108873431106.63285587427022
13110.89428341069745107.465543436754104.03680346281055
14108.77045727553799105.170584377139101.57071147874
15106.29055511139218102.8827192785944899.47488344579678
16103.69537150274303100.8509798274108498.00658815207865
17101.2613899831168699.3015187686062397.3416475540956
1899.3918391732594698.4174083547537597.44297753624804
1999.0969631188953298.3222870468943597.54761097489337
20100.8860645810695399.0693152590383697.25256593700719
21103.65175428251058100.63642669670797.62109911090343
22106.93985035635006102.9282994732992998.91674859024852
23110.50130048396242105.7848709303295101.06844137669658
24114.06263444321557108.99563555800292103.92863667279026
25117.36505788785524112.3184488254675107.27183976307975
26120.15530188830373115.5011572305877110.84701257287166
27122.21705705960778118.30412242131366114.39118778301955
28123.41081646361405120.52162737596674117.63243828831943
29123.67460863895239122.00025249210896120.32589634526552
30123.32334238951928122.65258010270678121.98181781589427
31123.52967694292381122.46500323597539121.40032952902696
32123.57168767418082121.49894108564327119.42619449710571
33122.81008363613644119.88535261729821116.96062159845998
34121.26150106551827117.81303839402005114.36457572252183
35119.11116121675727115.5117755843763111.91238995199532
36116.61754881051904113.23179265228805109.84603649405706
37114.02410909737821111.22141719359121108.4187252898042
38111.60716983386915109.70489357148244107.80261730909574
39109.79101890540441108.86235183541076107.93368476541711
40109.64025166035313108.81371724023293107.98718282011274
41111.49550123607261109.60799768036453107.72049412465645
42114.29635096239225111.21890596052967108.14146095866708
43117.60669067034175113.54720795262513109.48772523490851
44121.1754810837076116.42958688483967111.68369268597174
45124.7285962944926119.65323194248148114.57786759047036
46128.00943849537012122.97484802425063117.94025755313115
47130.76373058571465126.14238856904419121.52104655237372
48132.77984823430293128.9175701246016125.05529201490029
49133.92236116696577131.09715749862715128.27195383028854
50134.13387561699338132.5311181532323130.92836068947125
51133.75476039371082133.1360241647106132.51728793571036
52134.01163192425003132.9025045914931131.7933772587362
53134.02407764994823131.89608255244985129.76808745495148
54133.21467011850407130.25132224182528127.28797436514648
55131.62680705985076128.15980871053245124.69281036121414
56129.45070282074064125.8530341441435122.25536546754638
57126.94422654816275123.58171935539417120.2192121626256
58124.35340533018136121.5934176406918118.83342995120223
59121.95433302095667120.11040158142316118.26647014188966
60120.19230042645569119.30980809624275118.4273157660298
61120.18612284393471119.30781532768759118.42950781144047
62122.1072009808641120.14926479471215118.1913286085602
63124.94256021918531121.80365583334944118.66475144751357
64128.27434900167492124.16787013018447120.06139125869402
65131.8496120701715127.07538297417945122.30115387818739
66135.39364533367225130.31113841315837125.22863149264451
67138.65212007096625133.6307595615242128.60939905208215
68141.36982290144138136.78237805963352132.19493321782565
69143.33987437956597139.52913272423623135.7183910689065
70144.4309591849817141.67032765254316138.90969612010463
71144.59027747241987143.05935978949947141.52844210657906
72144.18349821147515143.61681454207186143.05013087266857
73144.49067859459367143.3375596483277142.18444070206172
74144.47363354597658142.2912036271084140.1087737082402
75143.61679272630107140.6158778563527137.61496298640435
76141.9902394753585138.50589770849567135.02155594163284
77139.78912745344638136.1944049369688132.5996824204912
78137.27063732724702133.93254181772085130.59444630819468
79134.6833084637562131.967017357672129.25072625158782
80132.3029227555087130.5180695138873128.7332162722659
81130.5957116468157129.75979199279567128.92387233877565