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

1baselevel_618level_1000level_1618
2nannannannan
3nannannannan
4nannannannan
5nannannannan
6nannannannan
7nannannannan
8nannannannan
9nannannannan
10nannannannan
11nannannannan
12nannannannan
13nannannannan
14nannannannan
15nannannannan
16nannannannan
17nannannannan
18nannannannan
19nannannannan
20nannannannan
21nannannannan
22nannannannan
23nannannannan
24nannannannan
25nannannannan
26nannannannan
27nannannannan
28nannannannan
29nannannannan
30nannannannan
31nannannannan
32126.11256849962119111.69360385928405102.7809105055481688.36194586521103
33126.5687481582892112.14978351795207103.2370901642161788.81812552387905
34127.02492781695719112.60596317662007103.6932698228841689.27430518254704
35127.4811074756252113.06214283528806104.1494494815521789.73048484121503
36127.93728713429319113.51832249395605104.6056291402201690.18666449988302
37128.3934667929612113.97450215262407105.0618087988881790.64284415855104
38128.84964645162918114.43068181129206105.5179884575561691.09902381721903
39129.3058261102972114.88686146996008105.9741681162241891.55520347588705
40129.7620057689652115.34304112862807106.4303477748921792.01138313455505
41107.20692609595461121.53513781516853130.39173470309686144.71994642231078
42107.67645569888904122.00466741810295130.86126430603127145.1894760252452
43108.14598530182349122.4741970210374131.33079390896575145.65900562817964
44108.61551490475792122.94372662397183131.80032351190016146.12853523111409
45109.08504450769234123.41325622690626132.26985311483458146.5980648340485
46109.55457411062679123.8827858298407132.73938271776905147.06759443698294
47110.02410371356122124.35231543277513133.20891232070346147.5371240399174
48110.49363331649566124.82184503570957133.6784419236379148.0066536428518
49110.96316291943009125.291374638644134.14797152657235148.47618324578625
50111.43269252236453125.76090424157844134.61750112950676148.9457128487207
51111.90222212529896126.23043384451287135.0870307324412149.4152424516551
52112.37175172823339126.6999634474473135.55656033537565149.88477205458955
53136.53513512382057122.06850383776266113.1263466350537298.6597153489958
54137.02502653417542122.55839524811752113.6162380454085899.14960675935066
55137.51491794453025123.04828665847235114.1061294557634199.63949816970549
56138.0048093548851123.53817806882721114.59602086611827100.12938958006035
57138.49470076523997124.02806947918207115.08591227647312100.6192809904152
58138.98459217559483124.51796088953692115.57580368682798101.10917240077006
59139.47448358594968125.00785229989178116.06569509718284101.59906381112492
60139.96437499630454125.49774371024664116.5555865075377102.08895522147978
61140.4542664066594125.9876351206015117.04547791789255102.57884663183464
62118.90348770093973132.9657507827558141.6579587071146155.72022178893067
63119.45286251880296133.51512560061903142.20733352497783156.2695966067939
64120.00223733666618134.06450041848225142.75670834284105156.81897142465712
65120.5516121545294134.61387523634545143.30608316070425157.36834624252032
66121.1009869723926135.16325005420867143.85545797856747157.91772106038354
67121.65036179025583135.7126248720719144.4048327964307158.46709587824677
68122.19973660811905136.26199968993512144.95420761429392159.01647069611
69122.74911142598226136.81137450779832145.50358243215715159.56584551397322
70123.29848624384547137.36074932566154146.05295725002034160.1152203318364
71123.8478610617087137.91012414352477146.60233206788357160.66459514969964
72124.39723587957192138.459498961388147.1517068857468161.21396996756286
73124.94661069743513139.0088737792512147.70108170361161.76334478542606
74148.21514229722695134.16106328687997125.47391412514443111.41983511479744
75148.7630456890799134.7089666787329126.02181751699737111.96773850665038
76149.31094908093286135.25687007058588126.56972090885034112.51564189850335
77149.8588524727858135.80477346243882127.11762430070328113.06354529035629
78150.40675586463877136.3526768542918127.66552769255625113.61144868220926
79150.9546592564917136.90058024614473128.2134310844092114.1593520740622
80151.50256264834468137.4484836379977128.76133447626216114.70725546591517
81152.05046604019762137.99638702985064129.3092378681151115.25515885776811