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

1uppermiddlelower
2nannannan
3nannannan
4nannannan
5nannannan
6nannannan
7nannannan
8119.93907194735124112.17793901149825104.41680607564527
9120.2205946444773112.4485066137704104.67641858306351
10119.4754027890769111.87506726026072104.27473173144455
11117.92214995997873110.55350809144618103.18486622291363
12116.0981663662904108.64654356281615101.1949207593419
13114.09668902536349106.3691806471681598.64167226897281
14111.94601072115726103.9695129020725495.99301508298781
15109.71172684641634101.7065590112597393.70139117610312
16107.6244801189496299.8271254170252792.02977071510092
17106.1490156025282198.5437598357911490.93850406905406
18105.4273207359528698.0157650036182490.60420927128362
19105.6077732692165298.3349686372377591.06216400525898
20106.882337203072699.5175207376014492.1527042721303
21109.25879263933592101.5024509583954693.74610927745499
22112.39028653227217104.1571149054914895.9239432787108
23115.87767692583802107.2890428656259498.70040880541387
24119.3387714067482110.66313255266266101.98749369857713
25122.70463188879025114.02265009461973105.34066830044922
26125.72416613266769117.11216330583574108.50016047900378
27128.21733947341434119.70035868337361111.18337789333287
28129.90448166017933121.60070395332828113.29692624647723
29130.56144657807755122.68811044331473114.8147743085519
30130.46402380747352122.91010688102654115.35618995457956
31129.72279548299434122.29152649671846114.8602575104426
32128.32947460477092120.93228874470736113.53510288464379
33126.34468080273231118.99847379610331111.65226678947431
34124.05754735139509116.70748709175275109.35742683211042
35121.68860075837019114.30863916169584106.92867756502149
36119.36063887262064112.06087545802716104.76111204343367
37117.27039401335223110.20964552886487103.1488970443775
38115.79634066529381108.96497774122763102.13361481716144
39115.37636902515443108.48271807252614101.58906711989785
40115.89755235353499108.85060885354945101.8036653535639
41117.15587197033602110.08045100737432103.00503004441262
42119.28299917725998112.10704990805283104.93110063884568
43122.23612085548713114.79403902238239107.35195718927766
44125.88714696890095117.94606112618295110.00497528346496
45129.79119362357514121.32621898331006112.86124434304499
46133.48573182025098124.67723667022013115.86874152018926
47136.58955167841012127.74444126798842118.89933085756672
48138.9614724382803130.29851203567645121.6355516330726
49140.45511592930575132.1559649491455123.85681396898526
50141.2353708402836133.195542782471125.1557147246584
51141.13492551199874133.36904665480043125.60316779760211
52140.4077902437067132.7056414928311125.00349274195547
53139.1749843493039131.3092508147689123.44351728023386
54137.38231619380932129.34927355195722121.31623091010515
55135.06526357379713127.04545214685288119.02564071990864
56132.4840798663955124.64824361508927116.81240736378305
57130.11369562775693122.41644696619407114.71919830463122
58128.32320239309632120.59408545883635112.86496852457637
59127.09431429622603119.38860872989244111.68290316355885
60126.41052225063177118.95236193622073111.49420162180968
61126.57904230878574119.3689772155218112.15891212225785
62127.84716252911065120.645903076555113.44464362399935
63130.10513930577537122.71373904603468115.322338786294
64133.06172701847464125.43243500621655117.80314299395847
65136.43824578727498128.6038014548115120.76935712234804
66140.07408283331483131.98921318296692123.90434353261902
67143.58125461055812135.33092495448764127.08059529841717
68146.58783239206124138.3750951201553130.16235784824934
69148.92153673829222140.89446053624863132.86738433420504
70150.53381568587045142.70863730432555134.88345892278065
71151.5279478334936143.70023392764224135.87252002179088
72151.63693370833758143.82533754393614136.0137413795347
73150.70554925591327143.11743653062805135.52932380534284
74149.08246204055595141.68442908780412134.28639613505229
75147.22185682095676139.6989850133501132.17611320574343
76145.18806129312355137.3831216241601129.57818195519667
77143.0133130903648134.98837161044193126.96343013051906
78140.77214285815816132.77331436962828124.77448588109841
79138.74212341391828130.98047787891855123.21883234391882
80137.38068342076662129.81467439338476122.2486653660029
81136.8174645230218129.42470517720838122.03194583139495