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

7.1 KiB

1currentminmedianmaxpercentile
2nannannannannan
3nannannannannan
4nannannannannan
5nannannannannan
6nannannannannan
7nannannannannan
8nannannannannan
9nannannannannan
10nannannannannan
110.0063375746715012620.0045766851715848790.0072857446933428580.00785594916625832642.857142857142854
120.0048268755120434720.0048268755120434720.0072857446933428580.00785594916625832614.285714285714285
130.0028805012075252510.0028805012075252510.0072857446933428580.00785594916625832614.285714285714285
140.00085295438897475910.00085295438897475910.0063375746715012620.00785594916625832614.285714285714285
150.00225906334043447830.00085295438897475910.0048268755120434720.00785594916625832628.57142857142857
160.0047169532234694010.00085295438897475910.0047169532234694010.00735362374458062957.14285714285714
170.0068723645123998640.00085295438897475910.0047169532234694010.006872364512399864100
180.0083696051113769460.00085295438897475910.0047169532234694010.008369605111376946100
190.0089552548573095130.00085295438897475910.0047169532234694010.008955254857309513100
200.0085289559768958920.00085295438897475910.0068723645123998640.00895525485730951385.71428571428571
210.007173953436717260.00225906334043447830.007173953436717260.00895525485730951357.14285714285714
220.0051308736085131780.0047169532234694010.007173953436717260.00895525485730951328.57142857142857
230.00273805394818361650.00273805394818361650.007173953436717260.00895525485730951314.285714285714285
240.00072385750953668610.00072385750953668610.007173953436717260.00895525485730951314.285714285714285
250.0022846374990473820.00072385750953668610.0051308736085131780.00895525485730951328.57142857142857
260.0041865405515619330.00072385750953668610.0041865405515619330.00852895597689589257.14285714285714
270.00567086168746502250.00072385750953668610.0041865405515619330.0071739534367172685.71428571428571
280.0066701718076476950.00072385750953668610.0041865405515619330.006670171807647695100
290.0071697857000863790.00072385750953668610.0041865405515619330.007169785700086379100
300.0071717018296055310.00072385750953668610.00567086168746502250.007171701829605531100
310.00668276700146370250.0022846374990473820.0066701718076476950.00717170182960553171.42857142857143
320.0057141471606811010.0041865405515619330.0066701718076476950.00717170182960553142.857142857142854
330.0042912431135850060.0042912431135850060.0066701718076476950.00717170182960553114.285714285714285
340.0024811679376864810.0024811679376864810.0066701718076476950.00717170182960553114.285714285714285
350.00070553299220554710.00070553299220554710.0057141471606811010.00717170182960553114.285714285714285
360.002211576566657840.00070553299220554710.0042912431135850060.00717170182960553128.57142857142857
370.0044198703244728360.00070553299220554710.0042912431135850060.006682767001463702571.42857142857143
380.00632328156231850.00070553299220554710.0042912431135850060.0063232815623185100
390.0076194105788468940.00070553299220554710.0042912431135850060.007619410578846894100
400.0080972629955641820.00070553299220554710.0044198703244728360.008097262995564182100
410.0076788457158533970.00070553299220554710.00632328156231850.00809726299556418285.71428571428571
420.0064415601666299980.002211576566657840.0064415601666299980.00809726299556418257.14285714285714
430.0045953165265573960.0044198703244728360.0064415601666299980.00809726299556418228.57142857142857
440.00243527668795822570.00243527668795822570.0064415601666299980.00809726299556418214.285714285714285
450.00065130512151669250.00065130512151669250.0064415601666299980.00809726299556418214.285714285714285
460.00212961957012745230.00065130512151669250.0045953165265573960.00809726299556418228.57142857142857
470.00387391364388901770.00065130512151669250.00387391364388901770.00767884571585339757.14285714285714
480.0052393169678822620.00065130512151669250.00387391364388901770.00644156016662999885.71428571428571
490.0061579145258101470.00065130512151669250.00387391364388901770.006157914525810147100
500.0066101221873691840.00065130512151669250.00387391364388901770.006610122187369184100
510.006594087246454290.00065130512151669250.0052393169678822620.00661012218736918485.71428571428571
520.0061156867748014710.00212961957012745230.0061156867748014710.00661012218736918457.14285714285714
530.0051883724559609070.00387391364388901770.0061156867748014710.00661012218736918428.57142857142857
540.00384230813409761060.00384230813409761060.0061156867748014710.00661012218736918414.285714285714285
550.0021506564567101580.0021506564567101580.0061156867748014710.00661012218736918414.285714285714285
560.00061624420915320340.00061624420915320340.0051883724559609070.00661012218736918414.285714285714285
570.00216631506442635430.00061624420915320340.00384230813409761060.0065940872464542942.857142857142854
580.0041668527447704610.00061624420915320340.00384230813409761060.00611568677480147171.42857142857143
590.00586415815110407760.00061624420915320340.00384230813409761060.0058641581511040776100
600.0069972700430133780.00061624420915320340.00384230813409761060.006997270043013378100
610.0073879065369555080.00061624420915320340.0041668527447704610.007387906536955508100
620.00697504458120330650.00061624420915320340.00586415815110407760.00738790653695550871.42857142857143
630.0058315331344201410.00216631506442635430.00586415815110407760.00738790653695550842.857142857142854
640.0041437787691582210.0041437787691582210.00586415815110407760.00738790653695550814.285714285714285
650.0021737650425414860.0021737650425414860.00586415815110407760.00738790653695550814.285714285714285
660.00059384468298424120.00059384468298424120.0058315331344201410.00738790653695550814.285714285714285
670.0020091781079077480.00059384468298424120.0041437787691582210.00738790653695550828.57142857142857
680.0036179780298733070.00059384468298424120.0036179780298733070.006975044581203306557.14285714285714
690.004878747979730960.00059384468298424120.0036179780298733070.00583153313442014185.71428571428571
700.0057246479810484040.00059384468298424120.0036179780298733070.005724647981048404100
710.0061330618208770190.00059384468298424120.0036179780298733070.006133061820877019100
720.006099607020504070.00059384468298424120.004878747979730960.00613306182087701985.71428571428571
730.0056296927016505380.0020091781079077480.0056296927016505380.00613306182087701957.14285714285714
740.00473869120987656550.0036179780298733070.0056296927016505380.00613306182087701928.57142857142857
750.00346041867254667440.00346041867254667440.0056296927016505380.00613306182087701914.285714285714285
760.00187273170799091230.00187273170799091230.0056296927016505380.00613306182087701914.285714285714285
770.00057268493139756440.00057268493139756440.00473869120987656550.00613306182087701914.285714285714285
780.00212376440475603050.00057268493139756440.00346041867254667440.0060996070205040742.857142857142854
790.00394864919768841450.00057268493139756440.00346041867254667440.00562969270165053871.42857142857143
800.0054742181450851020.00057268493139756440.00346041867254667440.005474218145085102100
810.0064725363509683280.00057268493139756440.00346041867254667440.006472536350968328100