Files
wickra/testdata/golden/g_HeikinAshi.csv
T
kingchencandGitHub 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

5.8 KiB

1openhighlowclose
299.51019899.5
399.5104.7773109102322599.5103.0164107856682
4101.2582053928341108.13914959894458101.2582053928341106.37627358101629
5103.81723948692519110.76487377959927103.81723948692519109.29790049544098
6106.55756999118309112.90403177129735106.55756999118309111.52846427794583
7109.04301713456445114.45148509543229109.04301713456445112.875521673814
8110.95926940418923115.1642566915892110.95926940418923113.23347255708218
9112.0963709806357114.55977666009171110.64086736017657112.60032201013415
10112.34834649538493112.72390874531129109.43899848657534111.08145361594332
11111.71490005566412111.71490005566412107.76539185209613108.8791967020537
12110.2970483788589110.2970483788589104.79904459577605106.26936898786705
13108.28320868336297108.28320868336297101.71978916733775103.56820817142187
14105.92570842739242105.9257084273924299.18732582635697101.0947104237263
15103.51020942555937103.5102094255593797.4862016012575599.13404459529625
16101.3221270104278101.322127010427896.3471004568948597.90729114869247
1799.6147090795601399.6147090795601395.9382156255281797.55138116443152
1898.5830451219958299.6734428100258896.5487650470659398.1111039285459
1998.34707452527087101.1529336355260197.9327846206041599.54285912806507
2098.94496682666798103.2002969099353798.94496682666798101.72792025538247
21100.33644354102523106.32510161131832100.33644354102523104.49173065212182
22102.41408709657352109.54022022493461102.41408709657352107.62538078254896
23105.01973393956123112.56654934841096105.01973393956123110.90590746884149
24107.96282070420136115.26697281350663107.96282070420136114.11320078613974
25111.03801074517055118.47543335247398111.03801074517055117.0427452645055
26114.04037800483803121.38046215528227114.04037800483803119.51475165912528
27116.77756483198166123.36781277048146116.77756483198166121.3811006281581
28119.07933273006988124.2878498649492119.07933273006988122.53171006302097
29120.80552139654543124.22410945235427120.80552139654543122.90143777679592
30121.85347958667067123.88697089091687121.06827005264091122.47762047177889
31122.16555002922479122.98099977052848119.63330909790388121.30715443421617
32121.73635223172047121.73635223172047117.70285703314954119.50102880884698
33120.61869052028374120.61869052028374115.60101790940676117.23377096648008
34118.92623074338191118.92623074338191113.05795434620948114.73556192793188
35116.83089633565689116.83089633565689110.47704737833695112.27583959099815
36114.55336796332752114.55336796332752108.51535390119264110.13883479309037
37112.34610137820894112.34610137820894107.18792367213928108.59332241867756
38110.46971189844325110.46971189844325106.49671695482826107.86047934521304
39109.16509562182814109.90155645208623106.26786689008574108.08471167108598
40108.62490364645706111.30403713029216107.32068773822765109.31236243425991
41108.96863304035848113.29382811110736108.96863304035848111.4822566759027
42110.2254448581306115.76972371414958110.2254448581306114.43022978908895
43112.32783732360977119.15370942824079112.32783732360977117.90746386998124
44115.1176505967955123.33523703654073115.1176505967955121.6100951023235
45118.3638728495595127.14038418498515118.3638728495595125.21564025514759
46121.78975655235354130.20955349568973121.78975655235354128.42071556026957
47125.10523605631155132.45313613345562125.10523605631155130.97449658556297
48128.03986632093728134.3228744433646128.03986632093728132.70337320460774
49130.37161976277253135.053120145851130.37161976277253133.52404653447638
50131.94783314862445135.065460892756131.8235156308926133.4444882618243
51132.69616070522437134.08480947785137131.0237176510951132.55426356447325
52132.62521213484882132.71696973631924129.29758425495962131.00727699563942
53131.81624456524412131.81624456524412127.07925728332546129.00074817527417
54130.40849637025914130.40849637025914124.94895708842891126.75407686183011
55128.58128661604462128.58128661604462123.1073244542458124.49034662606454
56126.53581662105458126.53581662105458121.2254215875191122.42184954038225
57124.47883308071842124.47883308071842119.02315927992295120.73959006069859
58122.60921157070851122.60921157070851117.62555095473105119.60563259734175
59121.10742208402513121.10742208402513117.25536324735009119.14667258704391
60120.12704733553451120.94065716085713117.95421275941922119.44743496013818
61119.78724114783634121.93415307848436119.152517136663120.54333510757368
62120.16528812770501123.94838830624106120.16528812770501122.41300180733944
63121.28914496752222126.75625008370868121.28914496752222124.9723861156795
64123.13076554160085129.80523536741393123.13076554160085128.0728922037315
65125.60182887266618133.06294250948164125.60182887266618131.50599292428956
66128.55391089847785136.79793765689536128.55391089847785135.0160376079457
67131.78497425321177140.0546941334019131.78497425321177138.3215327770725
68135.05325351514213142.5489901806554135.05325351514213141.14337574868256
69138.09831463191233144.5932922665057138.09831463191233143.23676289844406
70140.6675387651782146.0756620034572140.6675387651782144.42221413881902
71142.54487645199862146.57143212166807142.54487645199862144.61070035874553
72143.57778840537208145.7471249168318141.88968005898082143.81840248790633
73143.6980954466392143.72992039092952140.60631434563564142.16811736828257
74142.93310640746088142.93310640746088138.7454488027266139.8764867613631
75141.404796584412141.404796584412135.67655244818158137.22863145779047
76139.31671402110123139.31671402110123132.66155074344638134.54392876795973
77136.9303213945305136.9303213945305130.25415962109273132.13813355498985
78134.53422747476017134.53422747476017128.70717960530897130.28751561753393
79132.41087154614706132.41087154614706127.6154547134165129.20009166687123
80130.80548160650915130.80548160650915127.39947545719488128.99752295261356
81129.90150227956136131.29749357237068128.12086294416926129.70917825826996