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

3.8 KiB

1uppermiddlelower
2nannannan
3nannannan
4nannannan
5nannannan
6nannannan
7nannannan
8nannannan
9nannannan
10nannannan
11nannannan
12nannannan
13nannannan
14nannannan
15113.8045003699604104.5468774527242295.28925453548804
16109.58834446131766100.8026564056806492.01696835004361
17105.7313725854497897.9581148696787290.18485715390767
18102.4380799305340296.3100919755568490.18210402057967
19101.1529336355260196.395283141246891.63763264696757
20103.2002969099353797.0820515499079690.96380618988056
21106.3251016113183298.7492302512775591.17335889123679
22109.54022022493461101.0244827271160792.5087452292975
23112.56654934841096103.8295363315182395.0925233146255
24115.69836508697227107.3248998119978298.95143453702337
25120.40202707582095111.99972940585766103.59743173589438
26124.66452783954973116.58165386569567108.49877989184161
27127.79864914989635120.48080911490588113.16296907991541
28129.4082417178064123.46432309831053117.52040447881465
29129.7321146392649125.43747666771824121.1428386961716
30130.57271332152703125.82049168708397121.06827005264091
31132.00479581067057125.81905245428723119.63330909790388
32132.44635454156398125.07460578735676117.70285703314954
33131.71237924833557123.65669857887116115.60101790940676
34129.59995897658118121.32895666139532113.05795434620948
35126.7942948778254118.51062148599158110.22694809415778
36123.08057899058991114.92727840165531106.77397781272073
37119.37075752643509111.86638264101096104.36200775558683
38115.63939236114135108.98925399752484102.33911563390834
39112.57506336658413106.84996120992213101.12485905326011
40111.30403713029216106.35987020388689101.4157032774816
41113.29382811110736107.59131674208338101.8888053730594
42115.76972371414958108.77734215728796101.78496060042634
43119.15370942824079111.13987970628673103.12604998433268
44123.33523703654073114.37459844066903105.41395984479733
45127.14038418498515117.86746021378345108.59453624258174
46131.5239583211111122.26317820342675113.00239808574239
47136.0418427539746126.96508114762591117.8883195412772
48139.54120274047224131.26176870344332122.98233466641439
49141.31237627643532134.5201103503305127.7278444242257
50141.44709173259244136.41767450915506131.38825728571766
51142.0922473683251136.5579825097101131.0237176510951
52143.2705650373237136.28407464614168129.29758425495962
53143.4139698734944135.24661357840995127.07925728332546
54142.47851793380696133.71373751111793124.94895708842891
55140.01626463401234131.56179454412907123.1073244542458
56136.65826259411963128.25247826806745119.84669394201525
57132.88933008603223124.58160079508266116.27387150413311
58129.0447671163465121.3277727085923113.6107783008381
59125.47030957663841118.90216657381366112.3340235709889
60122.60248519855102117.60953078085618112.61657636316134
61121.93415307848436117.78458242044341113.63501176240247
62123.94838830624106118.35727489887847112.76616149151589
63126.75625008370868119.79442519617082112.83260030863296
64129.80523536741393121.97773992340092114.15024447938791
65133.06294250948164124.86211825912076116.66129400875988
66136.79793765689536128.50670541931237120.21547318172941
67141.17735680745923132.89133533022786124.60531385299647
68145.02476283911022137.18252717157645129.34029150404268
69148.1117317596141141.13112843775878134.15052511590346
70150.805952192229144.71254863479115138.6191450773533
71152.194876753372147.1659401531304142.13700355288884
72152.02936260629815146.9595213326395141.88968005898082
73153.56768879576896147.08700157070228140.60631434563564
74153.87654383128736146.31099631700698138.7454488027266
75153.02808320320702144.35231782569429135.67655244818158
76151.1720742912439141.91681251734514132.66155074344638
77148.23551607612958139.03157686851836129.82763766090716
78144.5576763198128135.31599694385065126.07431756788849
79140.28885608701628131.64610859509116123.00336110316601
80136.5053385771158128.98395371754629121.46256885797676
81133.41315696537814127.58448579848505121.75581463159196