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

1uppermiddlelowerstddev
2nannannannan
3nannannannan
4nannannannan
5nannannannan
6nannannannan
7nannannannan
8nannannannan
9nannannannan
10nannannannan
11nannannannan
12nannannannan
13nannannannan
14nannannannan
15nannannannan
16nannannannan
17nannannannan
18nannannannan
19nannannannan
20nannannannan
21115.28678132658357104.8857381103045394.48469489402555.200521608139521
22115.44235076607696105.2460303612050795.049709956333195.098160202435939
23116.031797084579105.6066772081165795.181557331654135.212559938231218
24117.04307249142056105.9801266531757494.917180814930935.531472919122411
25118.42198305380711106.3776830805561194.333383107305116.022149986625501
26120.08275668667552106.8084974694970793.534238252318626.637129608589224
27121.91875364904577107.278749964582492.638746280119047.320001842231685
28123.81164604805659107.7910978218306291.770549595604658.010274113112986
29125.64023050374611108.3444380439287291.048645584111338.647896229908694
30127.28963390911599108.934005907697390.57837790627869.17781400070935
31128.66054775091027109.5518005826214790.443053414332659.554373584144406
32129.67757252249928110.1872998212124290.697027119925569.745136350643426
33130.29572502322122110.8283998800375791.361074736853919.733662571591827
34130.50437915457422111.462496711073592.420614267572769.52094122175037
35130.32821912788876112.0776118437778293.827004559666889.125303642055467
36129.8251239347045112.6634623861878595.50180083767128.58083077425832
37129.08124974424334113.2123795650345597.343509385825777.934435089604395
38128.2039061910054113.7199937544192499.236081317833077.241956218293082
39127.3130646923414114.18562480148111101.058184910620826.5637199454301465
40126.53231715555998114.61234278242675102.692368409293525.959987186566614
41125.97953405782138115.00669376176606104.033853465710735.486420148027664
42125.75638565002856115.37811505186531104.999844453702055.18913529908163
43125.9357870598765115.73809220594023105.540397352003965.098847426968135
44126.54962545900983116.09913304779411105.648640636578395.225246205607857
45127.5832865042029116.47365038516884105.364014266134775.55481805951703
46128.98050368815137116.87285321059787104.765202733044356.053825238776757
47130.6540678076189117.3057454354863103.95742306335376.674161186066302
48132.49645112780993117.77832159752104103.060192067232177.359064765144439
49134.3889288726604118.29303138647245102.197133900284518.047948743093972
50136.21040535734892118.84856082070294101.486716284056978.680922268322988
51137.8466392967716119.43994962123331101.033259945695029.20334483776914
52139.19945460276048120.05903429869099100.91861399462159.570210152034747
53140.1950055547042120.69517737350274101.195349192301289.749914090600733
54140.79015691470516121.33621759026396101.882278265822759.7269696622206
55140.97626533174446121.96955624646452102.96284716118469.503354542639963
56140.77995945870256122.58328259706207104.386605735421579.098338430820245
57140.2608570959882123.16723780586335106.073618515738528.54680964506242
58139.5065053256598123.71392240410584107.92133948255197.896291460776974
59138.62515648619677124.21916619566703109.81317590513737.202995145264866
60137.7372262869952124.68250076826405111.627775249532926.527362759365569
61136.96623775826222125.10720133532797113.248164912393725.929518211467127
62136.42944797138296125.49999417094236114.570540370501755.464726900220303
63136.22726554012488125.87045577181189115.513646003498895.178404884156497
64136.43060069072433126.230157417333116.029714143941665.100221636695671
65137.06878377954558126.59163154166757116.114479303789545.2385761189390125
66138.12465065906432126.9672522487239115.809853838383465.578699205170216
67139.53989769930303127.36812997030788115.196362241312736.085883864497572
68141.22591219022797127.80311900433938114.380325818450776.711396592944301
69143.07430661728296128.27802658678937113.481746556295787.398140015246793
70144.9659868609782128.79509414858606112.624201436193938.085446356196067
71146.77999404813113129.35279709526566111.925600142400198.713598476432734
72148.40274791188529129.9459809944551111.489214077024959.228383458715081
73149.7372310064368130.56632200596493111.395413005493079.585454500235931
74150.7111716289501131.2030704256427111.694969222335299.7540506016537
75151.2832944894774131.8440109244297112.404727359382029.719641782523846
76151.44694145156345132.47655370732554113.506165963087629.485193872118952
77151.2306783629382133.08885912227984114.947039881621499.070909620329171
78150.69584577480683133.67089526104846116.645944747290078.51247525687919
79149.93135875840417134.21533407967942118.499309400954677.858012339362374
80149.04638529170163134.71820599085441120.390026690007227.1640896504236
81148.16175684928777135.17925445530142122.196752061315086.491251196993171