Files
wickra/testdata/golden/g_DemarkPivots.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.4 KiB

1ppr1s1
299.25100.597.5
3102.6858835747635104.11625648842282100.59445623929474
4106.00309236476774107.39278716644749103.86703513059089
5108.93999932460987110.04907143793704107.11512486962047
6111.82033779671532113.48777880883634110.73664382213329
7113.16936957727522115.0391809023547111.88725405911815
8113.59241952863388115.88215063469261112.02058236567856
9112.97312858671218115.30538981324779111.38648051333264
10111.41036194567735113.38172540477936110.09681514604341
11109.13129843961424110.49720502713235108.26959532721722
12105.93724566302721107.07544673027837104.13479794609636
13103.19468714218725104.66958511703675100.97274710886849
14100.73788556021526102.2884452940735598.4736760993349
1598.84415730000258100.2021129987476196.90642701067021
1697.6114812575359898.8758620581771295.75548067458189
1797.1914191944350798.4446227633419795.21829168553528
1898.48350114468982100.4182372423137297.29355947935377
1999.8701262670947101.8074679135852698.5873188986634
20101.98212313628511103.70870267174067100.76394936263485
21104.8254268723964106.99249405186748103.3257521334745
22107.99920670201082110.28787206385834106.45819317908703
23111.26162582273436113.2779860561967109.95670229705776
24113.82531099154654114.69119322432022112.38364916958646
25116.74498633735749117.879915498178115.01453932224099
26119.1538057799276120.6585703968869116.92714940457292
27121.00914737747458122.62390626911443118.65048198446769
28122.20610596022017123.63664165934762120.12436205549115
29122.64513494082007123.71150378040258121.06616042928587
30122.14237501927037123.21647998589984120.39777914762388
31121.68125023494567123.72919137198745120.38150069936285
32119.85561076366399122.00836449417844118.41202094278356
33117.51965254789604119.43828718638532116.17278107223869
34115.03525638832207117.01255843043465113.65734326698984
35112.63773801197561114.79842864561428111.20084422029188
36110.51030959880836112.50526529642408109.25830351262861
37108.26940272744443109.35088178274958106.540084289673
38107.60207833614736108.70743971746646105.97991493669689
39107.74794108755447109.22801528502319105.5943257230227
40108.93803183752519110.55537593682273106.57202654475822
41111.12884068832828112.58699613595853108.9638532655492
42114.14636656555048115.20199726707263112.52300941695138
43118.20907981363631119.75694131555092117.26445019903183
44121.97291442834978124.06087568859328120.61059182015883
45125.58660227166432127.88230821801861124.03282035834349
46128.74292994082526130.85398225680115127.2763063859608
47131.23499339252444132.97412974737856130.01685065159327
48133.04164438675528134.99941680765968131.76041433014595
49133.89857677557075135.80218062803974132.74403340529048
50133.0922674800085134.36101932912442131.119074067261
51132.27242827286773133.52113889464036130.4600470678841
52130.70375416195242132.10992406894522128.6905385875856
53128.637039841295130.19482239926455126.35184061536711
54126.38366183377089127.81836657911286124.20812703231047
55124.16985797315824125.23239149207069122.46634714843323
56122.68443917750632124.14345676749355121.75060086176721
57121.07933688479505123.13551448966716119.70265292811585
58119.98032727470522122.33510359467938118.37494030945801
59119.49766926250228121.73997527765448117.95735659826684
60119.72723331910679121.50025387879435118.51380947735645
61120.84874969892996122.54498226119694119.76334631937557
62122.04843661384999123.21925791926213120.14848492145892
63124.6025521206855126.01658209372069122.44885415766232
64127.75414920753644129.16774937502385125.70306304765896
65131.24131401643615132.53358469377488129.41968552339065
66134.67484051577156136.11554347254713132.55174337464777
67137.946708918021139.30504641529893135.83872370264007
68141.4931197632729143.24847820983604140.43724934589036
69143.5145158999682145.14879826955396142.43573953343068
70144.7295048206305146.69024336708017143.38334763780378
71144.97609002104508147.30221144626717143.3807479204221
72144.18762156950126146.4855630800217142.6281182221707
73142.48509527224925144.36387619886287141.24027015356899
74140.1432507898188141.54105277691102139.278976859638
75136.88600988144026138.09546731469894134.9913092954812
76134.16901101832457135.67647129320275131.91171524417607
77131.78967040161683133.32518118214094129.5572333143467
78130.0118158199836131.31645203465825128.15578001020836
79128.89094109224055130.1664274710646126.99715356415516
80128.63134144530386129.86320743341284126.6671124425755
81130.07774871998475132.03463449580025128.85800386759882