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

10 KiB

1ppr1r2r3s1s2s3
299.66666666666667100.81266666666667101.52066666666667102.6666666666666798.5206666666666797.8126666666666796.66666666666667
3103.16267454598328104.50800224115021105.33914709994443106.68447479511136101.81734685081635100.9862019920221399.6408742968552
4106.46632396532765107.81316124302487108.64523872348703109.99207600118424105.11948668763043104.28740920716827102.94057192947105
5109.30969002905226110.43045761814919111.1228690082719112.24363659736883108.18892243995533107.49651104983262106.37574346073569
6111.45910647185464112.51004003677521113.15930789363712114.21024145855769110.40817290693407109.75890505007216108.70797148515159
7112.74199773788952113.94603379200588114.68988852700971115.89392458112607111.53796168377316110.79410694876933109.59007089465297
8113.06847380764877114.54359288641214115.45492299789944116.93004207666282111.5933547288854110.6820246173981109.20690553863473
9112.44424589558567113.94126924815325114.86613184293323116.36315519550081110.94722254301809110.0223599482381108.52533659567052
10110.97251301246604112.22734873130317113.00258755236486114.25742327120199109.71767729362891108.94243847256722107.68760275373009
11108.84406406881523109.69501097418281110.22072686336278111.07167376873036107.99311716344765107.46740127426767106.6164543689001
12106.3166460187776107.43997385433514108.13396696740209109.25729480295962105.19331818322007104.49932507015312103.37599723459559
13103.68631980047041105.09851191959069105.9709656895184107.38315780863867102.27412768135014101.4016739114224499.98948179230216
14101.25473880483469102.71198063722485103.61226616718318105.0695079995733599.7974969724445298.897211442486297.43996961009603
1599.29680919958425100.5557612470298101.33354314021608102.5924951876616498.0378571521386897.2600752589524196.00112321150685
1698.0329415244163499.2249272129497299.9613372194782101.1533229080115796.8409558358829796.1045458293544994.91256014082111
1797.6091537174040398.8416121891261899.60302632348856100.8354847952107296.3766952456818795.6152811113194994.38282263959734
1898.0868539229111399.28048082836183100.01790478042038101.2115316858710896.8932270174604396.1558030654018894.96217615995118
1999.44252381095095100.67262073465109101.43257590217266102.662672825872898.212426887250897.4524717197292396.22237479602909
20101.57606521173501102.70096097581343103.39592275676242104.52081852084083100.451169447656699.7562076667076198.6313119026292
21104.32553529275576105.72623070558188106.59158179832262107.99227721114875102.92483987992964102.0594887871889100.65879337436277
22107.48553552770288108.94847286168552109.85227707849155111.31521441247419106.02259819372024105.1187939769142103.65585664293157
23110.82665131417549112.09538171016656112.87920467732336114.14793507331443109.55792091818442108.77409795102763107.50536755503656
24114.11393840247109114.99542023137938115.54000062829655116.42148245720485113.2324565735628112.68787617664563111.80639434773734
25117.12329605763098118.21786975683891118.89409853436005119.98867223356798116.02872235842305115.3524935809019114.25791988169398
26119.6553939855807121.08079680464465121.96141215883074123.38681497789469118.22999116651675117.34937581233066115.92397299326672
27121.54740034135453123.06524841808958124.00297654926622125.52082462600127120.02955226461948119.09182413344284117.57397605670779
28122.68295119326267124.02464200193585124.85353998844596126.19523079711914121.34126038458949120.51236239807938119.1706715894062
29123.0005912206809124.01111238080749124.63541341167102125.64593457179761121.99007006055432121.36576902969078120.3552478695642
30122.50041000814686123.57715372836827124.2423671262014125.31911084642282121.42366628792544120.75845289009231119.6817091698709
31121.2480003897514122.52681822669399123.3168732254334124.595691062376119.9691825528088119.1791275540694117.90030971712679
32119.37441415670385120.74821739333669121.59695447146589122.97075770809873118.00061092007101117.1518738419418115.77807060530897
33117.0706953893436118.31811872494761119.08877816788622120.33620150349023115.82327205373959115.05261261080098113.80518927519697
34114.57595201454465115.85764420698057116.64947498555355117.93116717798947113.29425982210874112.50242904353576111.22073685109984
35112.1587734147477113.53305066522086114.38208058959694115.7563578400701110.78449616427454109.93546623989846108.5611889894253
36110.09297423674845111.33331363815832112.09959661913405113.33993602054392108.85263483533858108.08635185436285106.84601245295298
37108.62989574587948109.70362038823474110.3669685966008111.44069323895606107.55617110352422106.89282289515816105.8190982528029
38107.97053212992039109.01244659617436109.65614244443599110.69805691068996106.92861766366642106.28492181540479105.24300734915082
39108.24129915337737109.62936856606156110.48691930269366111.87498871537785106.85322974069318105.99567900406107104.60760959137689
40109.47714653729103110.99878600505967111.93885646158691113.46049592935555107.9555070695224107.01543661299516105.49379714522652
41111.61489250420503112.99893308070139113.853994798118115.23803537461436110.23085192770867109.37579021029207107.9917496337957
42114.49824346605784115.52161682480416116.15385795743278117.17723131617909113.47487010731153112.84262897468291111.8192556159366
43117.8942032754348118.8463348819451119.4345627854436120.3866943919539116.94207166892451116.353843765426115.40171215891571
44121.51880689228612122.83681533002809123.65108232297861124.96909076072058120.20079845454416119.38653146159363118.06852302385167
45125.06867496722403126.53917932961993127.44765846450325128.91816282689916123.59817060482813122.6896914699448121.2191871075489
46128.2540554225371129.6207276051981130.46505911071645131.83173129337746126.88738323987609126.04305173435776124.67637955169674
47130.82894581221407131.95862642680405132.65654429340938133.78622490799935129.6992651976241129.00134733101876127.87166671642879
48132.61456770121885133.8518666476291134.61627123232233135.85357017873258131.3772687548086130.61286417011536129.3755652237051
49133.51372898547731134.68194122456754135.40366396913635136.57187620822657132.3455167463871131.62379400181828130.45558176272806
50133.51518476304713134.75360785307896135.5187069348787136.75713002491054132.2767616730153131.51166259121555130.27323950118372
51132.68866514679192133.85800222461282134.5804198957273135.7497569735482131.51932806897102130.79691039785655129.62757332003565
52131.17247746428333132.4786827181627133.2856576917636134.59186294564296129.86627221040396129.05929723680308127.7530919829237
53129.1563006939515130.62431973540032131.5312634364001132.99928247784894127.68828165250267126.78133795150288125.31331891005405
54126.86189674888487128.24100825576338129.09302478880875130.47213629568728125.48278524200636124.630768708961123.25165720208248
55124.52403581279573125.58066475206525126.23345121716368127.29008015643319123.46740687352622122.81462040842779121.75799146915827
56122.37315973892662123.28723069491407123.8519446886655124.76601564465295121.45908878293916120.89437478918774119.98030383320028
57120.62044223256866121.93179534908126122.74195067760738124.05330379411997119.30908911605607118.49893378752995117.18758067101736
58119.44519828628948120.95798066124405121.89257919655628123.40536157151085117.93241591133491116.99781737602268115.48503500106811
59118.98423170775713120.42919204328321121.3218900516187122.76685038714477117.53927137223106116.64657336389557115.2016130283695
60119.32275870519120.46358046653928121.16838134527862122.3092031066279118.18193694384071117.47713606510138116.33631430375209
61120.48694857241185121.54953350218761122.20599958445744123.26858451423321119.42436364263608118.76789756036625117.70531263059048
62122.4387103823207123.61174566748154124.33644809496309125.50948338012392121.26567509715987120.54097266967833119.36793738451749
63125.07389544503057126.43676751660486127.27875130951465128.64162338108895123.71102337345629122.8690395805465121.50616750897221
64128.2253492633656129.54885944041897130.36652541367707131.69003559073047126.90183908631221126.08417311305409124.76066293600071
65131.67207090888238132.86158039196914133.59646059617984134.7859700792666130.4825614257956129.7476812215849128.55817173849815
66135.15507483469676136.51644647209432137.35750329519857138.71887493259612133.7937031972992132.95264637419496131.5912747367974
67138.3994880837803139.723623360016140.54167552020348141.86581079643918137.07535280754462136.25730064735714134.93316537112145
68141.1411629574787142.21505238350596142.87850239539713143.95239182142438140.06727353145146139.4038235195603138.32993409353304
69143.154923777789144.1913122149881144.8315940767132145.8679825139123142.11853534058991141.47825347886481140.44186504166572
70144.28078575968826145.54401992827184146.32444732038107147.58768148896465143.01755159110468142.23712419899545140.97389003041187
71144.44430932083742145.94230838771023146.86777377980968148.3657728466825142.9463102539646142.02084486186516140.52284579499235
72143.66778712039107145.14133105609014146.051688042543147.52523197824206142.194243184692141.28388619823914139.81034226254008
73142.07015356602253143.26337107532478144.00054210201415145.1937596113164140.87693605672027140.1397650300309138.94654752072864
74139.85515947975856140.71927248015686141.25312239663327142.11723539703158138.99104647936025138.45719656288384137.59308356248553
75137.28916235919314138.47495072253432139.20753201506972140.3933203784109136.10337399585197135.37079270331657134.1850043399754
76134.6714977766173136.10963458734548136.99811701491578138.43625382564397133.2333609658891132.3448785383188130.9067417275906
77132.3015073284582133.7408634139556134.63009911075505136.06945519625245130.8621512429608129.97291554616135128.53355946066395
78130.44669455820846131.65407127154833132.3999898693185133.60736658265836129.2393178448686128.49339924709844127.28602253375857
79129.31610321851522130.52676585095463131.27471449298525132.4853771254247128.10544058607582127.35749194404518126.14682931160577
80129.04196344134022130.26287172784006131.0171501456777132.23805843217755127.82105515484035127.06677673700274125.84586845050288
81129.6711671025228130.88464000249573131.63432483075127132.8477977307242128.45769420254985127.7080093742943126.49453647432136