Files
wickra/testdata/golden/g_Adx.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.2 KiB

1plus_diminus_diadx
2nannannan
3nannannan
4nannannan
5nannannan
6nannannan
7nannannan
8nannannan
9nannannan
10nannannan
11nannannan
12nannannan
13nannannan
14nannannan
15nannannan
16nannannan
17nannannan
18nannannan
19nannannan
20nannannan
21nannannan
22nannannan
23nannannan
24nannannan
25nannannan
26nannannan
27nannannan
28nannannan
2939.575701968259310.5155317020636730.912276792040817
3037.53626162493658610.90694830796374332.63069750889788
3135.21516546244619412.88306047336922333.61637662813429
3232.8641016608622115.60665830802565633.758337048896145
3330.7033390268400318.5062850075643133.11744953242373
3428.58375414079469221.99080569358926631.683067176177246
3526.5593462227974125.26943774318900229.597761510222966
3624.84975031309351227.3466387971896227.82532441495794
3723.50518630800846528.41997229572006526.513882262566277
3822.2483189456796928.25538209582522225.469626589930424
3921.99121445248118826.2421710152604424.279889509686143
4023.016731485219224.20607711268620222.725510472977113
4125.27007586108953422.4963315410863321.51703781909767
4228.16792527784418420.79797894925548421.055190823958306
4332.19951213535519.00281981126375521.39222118044018
4436.6755628446722417.0818916192766422.467654445091764
4539.6676781050409215.31233327844643624.027003737037383
4641.2571048575730813.86406329971092325.86050681733179
4741.9025514546244712.77858847840922427.8177163877859
4842.39562871641262411.93799445350936729.834786399099126
4941.3931531374941111.29169149448258731.784798356703554
5038.9836931239002710.94226345512163533.52631517717672
5136.8052020599152611.79086699795163434.808291852450445
5234.3347186112509714.16519910527569535.29246448522293
5331.57589642543880617.05639053954908534.90412360474046
5429.01165542998502319.49999016574331633.81146999165209
5526.94136274401151721.4186133357167532.21208520671275
5625.29338861822090223.52837140973053230.16945244226847
5723.7010815929456926.08579427027032328.356623123061247
5821.981882537145526.75355946992512227.030505691607747
5920.455601834384925.57547903984691525.894230469505597
6019.31530565315752324.14977563995107324.839117763267886
6120.1534642719884122.83653218075572523.510691119817217
6222.62162337374948321.27956135909921522.049713637827605
6326.10217239882405219.56494648419110421.497230627213543
6429.579401146088617.91486273483102621.71599192763469
6533.10391452249188416.42188680484102622.570814571368153
6636.98846187524894414.99830317693843723.980008725527608
6739.7530119422533513.7598655258262225.73669586768207
6841.3731522967188712.77799151783807127.67023180773477
6942.4813516168884711.98109386349826829.693955639647385
7042.6229472017604111.25773673148093231.730983563876975
7140.4768467142508210.45187097955695633.67554918447296
7237.6237901346877811.10441543591389335.1575133843429
7335.44507323686604412.84058953736304835.99012453099969
7433.36114722146431415.5824190571685336.014040954862004
7530.78455939566636320.1096784734543534.9397977135121
7628.10102265359012823.89133348206433333.02243689823779
7725.72480523513340226.2278463475271730.732853434649453
7823.89848399693059427.1667570387609228.994806129209827
7922.50759206295747527.5904766118865527.648453495608493
8021.16952251935633826.3519682860285326.452526680749255
8121.22497783055470324.77543664474709225.11436900225873