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

12 KiB

1mm8_8mm7_8mm6_8mm5_8mm4_8mm3_8mm2_8mm1_8mm0_8
2nannannannannannannannannan
3nannannannannannannannannan
4nannannannannannannannannan
5nannannannannannannannannan
6nannannannannannannannannan
7nannannannannannannannannan
8nannannannannannannannannan
9nannannannannannannannannan
10nannannannannannannannannan
11nannannannannannannannannan
12nannannannannannannannannan
13nannannannannannannannannan
14nannannannannannannannannan
15115.1642566915892112.95449980529774110.74474291900628108.53498603271483106.32522914642337104.11547226013192101.9057153738404799.69595848754997.48620160125755
16115.1642566915892112.8121121622524110.4599676329156108.10782310357882105.75567857424203103.40353404490523101.0513895155684598.6992449862316596.34710045689485
17115.1642566915892112.76100155833157110.35774642507394107.95449129181631105.55123615855868103.14798102530106100.7447258920434398.341470758785895.93821562552817
18115.1642566915892112.76100155833157110.35774642507394107.95449129181631105.55123615855868103.14798102530106100.7447258920434398.341470758785895.93821562552817
19115.1642566915892112.76100155833157110.35774642507394107.95449129181631105.55123615855868103.14798102530106100.7447258920434398.341470758785895.93821562552817
20115.1642566915892112.76100155833157110.35774642507394107.95449129181631105.55123615855868103.14798102530106100.7447258920434398.341470758785895.93821562552817
21115.1642566915892112.76100155833157110.35774642507394107.95449129181631105.55123615855868103.14798102530106100.7447258920434398.341470758785895.93821562552817
22114.55977666009171112.23208153077127109.90438640145084107.57669127213039105.24899614280994102.9213010134895100.5936058841690598.2659107548486295.93821562552817
23112.72390874531129110.6256971053384108.52748546536552106.42927382539263104.33106218541974102.23285054544684100.1346389054739598.0364272655010695.93821562552817
24115.26697281350663112.85087816500932110.43478351651201108.0186888680147105.6025942195174103.1864995710201100.7704049225227998.3543102740254895.93821562552817
25118.47543335247398115.65828113660575112.84112892073753110.02397670486931107.20682448900108104.38967227313285101.5725200572646398.755367841396495.93821562552817
26121.38046215528227118.20018133906301115.01990052284376111.83961970662449108.65933889040522105.47905807418596102.2987772579666999.1184964417474495.93821562552817
27123.36781277048146119.9391131273623116.51041348424314113.08171384112399109.65301419800483106.22431455488565102.7956149117664999.3669152686473395.93821562552817
28124.2878498649492120.74414558502157117.20044130509393113.65673702516631110.11303274523868106.56932846531106103.0256241853834499.481919905455895.93821562552817
29124.2878498649492120.74414558502157117.20044130509393113.65673702516631110.11303274523868106.56932846531106103.0256241853834499.481919905455895.93821562552817
30124.2878498649492120.74414558502157117.20044130509393113.65673702516631110.11303274523868106.56932846531106103.0256241853834499.481919905455895.93821562552817
31124.2878498649492120.82046426271378117.35307866047837113.88569305824296110.41830745600757106.95092185377216103.48353625153675100.0161506493013496.54876504706593
32124.2878498649492120.99346670940606117.69908355386293114.4047003983198111.11031724277667107.81593408723354104.52155093169041101.2271677761472897.93278462060415
33124.2878498649492121.28381158193423118.27977329891928115.27573501590433112.27169673288938109.26765844987442106.26362016685947103.2595818838445100.25554360082955
34124.2878498649492121.58416359344622118.88047732194323116.17679105044024113.47310477893726110.76941850743428108.06573223593129105.36204596442832102.65835969292533
35124.2878498649492121.96568629935095119.64352273375272117.32135916815449114.99919560255626112.67703203695801110.35486847135978108.03270490576153105.7105413401633
36124.2878498649492122.31628786947962120.34472587401005118.37316387854048116.40160188307092114.43003988760135112.45847789213178110.48691589666221108.51535390119264
37124.2878498649492122.15035909084796120.01286831674672117.87537754264548115.73788676854423113.60039599444299111.46290522034175109.32541444624052107.18792367213928
38124.2878498649492122.06395825118408119.84006663741896117.61617502365384115.39228340988873113.16839179612361110.9445001823585108.72060856859338106.49671695482826
39124.2878498649492122.03535199309127119.78285412123333117.5303562493754115.27785837751748113.02536050565953110.77286263380161108.52036476194367106.26786689008574
40124.2878498649492122.03535199309127119.78285412123333117.5303562493754115.27785837751748113.02536050565953110.77286263380161108.52036476194367106.26786689008574
41124.2878498649492122.03535199309127119.78285412123333117.5303562493754115.27785837751748113.02536050565953110.77286263380161108.52036476194367106.26786689008574
42124.22410945235427121.97957913207071119.73504881178714117.49051849150356115.24598817122113.00145785093645110.75692753065287108.5123972103693106.26786689008574
43123.88697089091687121.68458289081298119.48219489070908117.2798068906052115.0774188905013112.87503089039741110.67264289029353108.47025489018964106.26786689008574
44123.33523703654073121.20181576823386119.06839449992698116.9349732316201114.80155196331324112.66813069500637110.5347094266995108.40128815839262106.26786689008574
45127.14038418498515124.53131952312273121.9222548612603119.31319019939787116.70412553753545114.09506087567303111.4859962138106108.87693155194816106.26786689008574
46130.20955349568973127.21684266998923124.22413184428873121.23142101858824118.23871019288774115.24599936718724112.25328854148674109.26057771578624106.26786689008574
47132.45313613345562129.17997747803437125.90681882261315122.63366016719192119.36050151177068116.08734285634944112.81418420092821109.54102554550698106.26786689008574
48134.3228744433646130.81599849920474127.3091225550449123.80224661088504120.29537066672518116.78849472256532113.28161877840546109.7747428342456106.26786689008574
49135.053120145851131.45496348888037127.8568068319097124.25865017493904120.66049351796838117.06233686099772113.46418020402706109.8660235470564106.26786689008574
50135.065460892756131.46576164242222127.86606239208842124.26636314175465120.66666389142087117.06696464108708113.46726539075331109.86756614041953106.26786689008574
51135.065460892756131.46576164242222127.86606239208842124.26636314175465120.66666389142087117.06696464108708113.46726539075331109.86756614041953106.26786689008574
52135.065460892756131.46576164242222127.86606239208842124.26636314175465120.66666389142087117.06696464108708113.46726539075331109.86756614041953106.26786689008574
53135.065460892756131.59736424843996128.1292676041239124.66117095980786121.19307431549183117.72497767117578114.25688102685973110.7887843825437107.32068773822765
54135.065460892756131.89111393624876128.7167669797415125.54242002323426122.36807306672702119.19372611021977116.01937915371252112.84503219720528109.67068524069803
55135.065460892756132.31862026416502129.57177963557407126.82493900698312124.07809837839216121.33125774980121118.58441712121025115.83757649261929113.09073586402833
56135.065460892756132.7649305701267130.46440024749742128.16386992486812125.86333960223885123.56280927960955121.26227895698027118.96174863435098116.6612183117217
57135.065460892756133.06017319115188131.05488548954773129.0495977879436127.04431008633946125.03902238473535123.03373468313121121.02844698152708119.02315927992295
58135.065460892756132.88547215050286130.70548340824976128.52549466599663126.34550592374353124.1655171814904121.98552843923729119.80553969698417117.62555095473105
59135.065460892756132.83919868708026130.61293648140452128.38667427572878126.16041207005304123.9341498643773121.70788765870157119.48162545302583117.25536324735009
60135.065460892756132.83919868708026130.61293648140452128.38667427572878126.16041207005304123.9341498643773121.70788765870157119.48162545302583117.25536324735009
61135.065460892756132.83919868708026130.61293648140452128.38667427572878126.16041207005304123.9341498643773121.70788765870157119.48162545302583117.25536324735009
62135.065460892756132.83919868708026130.61293648140452128.38667427572878126.16041207005304123.9341498643773121.70788765870157119.48162545302583117.25536324735009
63135.065460892756132.83919868708026130.61293648140452128.38667427572878126.16041207005304123.9341498643773121.70788765870157119.48162545302583117.25536324735009
64134.08480947785137131.98112869903872129.87744792022605127.77376714141339125.67008636260073123.56640558378807121.46272480497541119.35904402616275117.25536324735009
65133.06294250948164131.0869951017152129.11104769394876127.13510028618231125.15915287841587123.18320547064943121.20725806288297119.23131065511653117.25536324735009
66136.79793765689536134.3551158557022131.91229405450903129.46947225331587127.02665045212272124.58382865092956122.14100684973641119.69818504854325117.25536324735009
67140.0546941334019137.20477777264543134.35486141188895131.50494505113247128.655028690376125.80511232961952122.95519596886305120.10527960810657117.25536324735009
68142.5489901806554139.38728681399223136.2255834473291133.0638800806659129.90217671400274126.74047334733959123.57876998067641120.41706661401325117.25536324735009
69144.5932922665057141.17605113911125137.7588100117168134.34156888432236130.92432775692788127.50708662953345124.08984550213899120.67260437474454117.25536324735009
70146.0756620034572142.47312465894382138.87058731443042135.26804996991703131.66551262540366128.06297528089027124.46043793637688120.85790059186348117.25536324735009
71146.57143212166807142.9069235123783139.24241490308856135.57790629379883131.91339768450908128.24888907521932124.58438046592958120.91987185663984117.25536324735009
72146.57143212166807142.9069235123783139.24241490308856135.57790629379883131.91339768450908128.24888907521932124.58438046592958120.91987185663984117.25536324735009
73146.57143212166807142.99427970138697139.41712728110585135.83997486082475132.26282244054363128.68567002026253125.10851759998144121.53136517970033117.95421275941922
74146.57143212166807143.14406774854243139.71670337541678136.28933900229117132.86197462916553129.4346102560399126.00724588291426122.57988150978863119.152517136663
75146.57143212166807143.3597050200143140.1479779183605136.93625081670672133.72452371505295130.5127966133992127.3010695117454124.08934241009162120.87761530843784
76146.57143212166807143.64856837491584140.72570462816364137.8028408814114134.87997713465919131.957113387907129.03424964115476126.11138589440253123.18852214765032
77146.57143212166807144.04257173646567141.5137113512633138.98485096606095136.45599058085855133.9271301956562131.3982698104538128.86940942525143126.34054904004905
78146.57143212166807144.33840055712318142.1053689925783139.8723374280334137.63930586348852135.40627429894363133.17324273439874130.94021116985385128.70717960530897
79146.57143212166807144.20193494563662141.83243776960518139.46294059357373137.0934434175423134.72394624151084132.3544490654794129.98495188944796127.6154547134165
80146.57143212166807144.17493753860893141.77844295554976139.38194837249063136.98545378943146134.58895920637232132.19246462331319129.79597004025402127.39947545719488
81146.57143212166807144.17493753860893141.77844295554976139.38194837249063136.98545378943146134.58895920637232132.19246462331319129.79597004025402127.39947545719488