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

82 lines
12 KiB
CSV

mm8_8,mm7_8,mm6_8,mm5_8,mm4_8,mm3_8,mm2_8,mm1_8,mm0_8
nan,nan,nan,nan,nan,nan,nan,nan,nan
nan,nan,nan,nan,nan,nan,nan,nan,nan
nan,nan,nan,nan,nan,nan,nan,nan,nan
nan,nan,nan,nan,nan,nan,nan,nan,nan
nan,nan,nan,nan,nan,nan,nan,nan,nan
nan,nan,nan,nan,nan,nan,nan,nan,nan
nan,nan,nan,nan,nan,nan,nan,nan,nan
nan,nan,nan,nan,nan,nan,nan,nan,nan
nan,nan,nan,nan,nan,nan,nan,nan,nan
nan,nan,nan,nan,nan,nan,nan,nan,nan
nan,nan,nan,nan,nan,nan,nan,nan,nan
nan,nan,nan,nan,nan,nan,nan,nan,nan
nan,nan,nan,nan,nan,nan,nan,nan,nan
115.1642566915892,112.95449980529774,110.74474291900628,108.53498603271483,106.32522914642337,104.11547226013192,101.90571537384047,99.695958487549,97.48620160125755
115.1642566915892,112.8121121622524,110.4599676329156,108.10782310357882,105.75567857424203,103.40353404490523,101.05138951556845,98.69924498623165,96.34710045689485
115.1642566915892,112.76100155833157,110.35774642507394,107.95449129181631,105.55123615855868,103.14798102530106,100.74472589204343,98.3414707587858,95.93821562552817
115.1642566915892,112.76100155833157,110.35774642507394,107.95449129181631,105.55123615855868,103.14798102530106,100.74472589204343,98.3414707587858,95.93821562552817
115.1642566915892,112.76100155833157,110.35774642507394,107.95449129181631,105.55123615855868,103.14798102530106,100.74472589204343,98.3414707587858,95.93821562552817
115.1642566915892,112.76100155833157,110.35774642507394,107.95449129181631,105.55123615855868,103.14798102530106,100.74472589204343,98.3414707587858,95.93821562552817
115.1642566915892,112.76100155833157,110.35774642507394,107.95449129181631,105.55123615855868,103.14798102530106,100.74472589204343,98.3414707587858,95.93821562552817
114.55977666009171,112.23208153077127,109.90438640145084,107.57669127213039,105.24899614280994,102.9213010134895,100.59360588416905,98.26591075484862,95.93821562552817
112.72390874531129,110.6256971053384,108.52748546536552,106.42927382539263,104.33106218541974,102.23285054544684,100.13463890547395,98.03642726550106,95.93821562552817
115.26697281350663,112.85087816500932,110.43478351651201,108.0186888680147,105.6025942195174,103.1864995710201,100.77040492252279,98.35431027402548,95.93821562552817
118.47543335247398,115.65828113660575,112.84112892073753,110.02397670486931,107.20682448900108,104.38967227313285,101.57252005726463,98.7553678413964,95.93821562552817
121.38046215528227,118.20018133906301,115.01990052284376,111.83961970662449,108.65933889040522,105.47905807418596,102.29877725796669,99.11849644174744,95.93821562552817
123.36781277048146,119.9391131273623,116.51041348424314,113.08171384112399,109.65301419800483,106.22431455488565,102.79561491176649,99.36691526864733,95.93821562552817
124.2878498649492,120.74414558502157,117.20044130509393,113.65673702516631,110.11303274523868,106.56932846531106,103.02562418538344,99.4819199054558,95.93821562552817
124.2878498649492,120.74414558502157,117.20044130509393,113.65673702516631,110.11303274523868,106.56932846531106,103.02562418538344,99.4819199054558,95.93821562552817
124.2878498649492,120.74414558502157,117.20044130509393,113.65673702516631,110.11303274523868,106.56932846531106,103.02562418538344,99.4819199054558,95.93821562552817
124.2878498649492,120.82046426271378,117.35307866047837,113.88569305824296,110.41830745600757,106.95092185377216,103.48353625153675,100.01615064930134,96.54876504706593
124.2878498649492,120.99346670940606,117.69908355386293,114.4047003983198,111.11031724277667,107.81593408723354,104.52155093169041,101.22716777614728,97.93278462060415
124.2878498649492,121.28381158193423,118.27977329891928,115.27573501590433,112.27169673288938,109.26765844987442,106.26362016685947,103.2595818838445,100.25554360082955
124.2878498649492,121.58416359344622,118.88047732194323,116.17679105044024,113.47310477893726,110.76941850743428,108.06573223593129,105.36204596442832,102.65835969292533
124.2878498649492,121.96568629935095,119.64352273375272,117.32135916815449,114.99919560255626,112.67703203695801,110.35486847135978,108.03270490576153,105.7105413401633
124.2878498649492,122.31628786947962,120.34472587401005,118.37316387854048,116.40160188307092,114.43003988760135,112.45847789213178,110.48691589666221,108.51535390119264
124.2878498649492,122.15035909084796,120.01286831674672,117.87537754264548,115.73788676854423,113.60039599444299,111.46290522034175,109.32541444624052,107.18792367213928
124.2878498649492,122.06395825118408,119.84006663741896,117.61617502365384,115.39228340988873,113.16839179612361,110.9445001823585,108.72060856859338,106.49671695482826
124.2878498649492,122.03535199309127,119.78285412123333,117.5303562493754,115.27785837751748,113.02536050565953,110.77286263380161,108.52036476194367,106.26786689008574
124.2878498649492,122.03535199309127,119.78285412123333,117.5303562493754,115.27785837751748,113.02536050565953,110.77286263380161,108.52036476194367,106.26786689008574
124.2878498649492,122.03535199309127,119.78285412123333,117.5303562493754,115.27785837751748,113.02536050565953,110.77286263380161,108.52036476194367,106.26786689008574
124.22410945235427,121.97957913207071,119.73504881178714,117.49051849150356,115.24598817122,113.00145785093645,110.75692753065287,108.5123972103693,106.26786689008574
123.88697089091687,121.68458289081298,119.48219489070908,117.2798068906052,115.0774188905013,112.87503089039741,110.67264289029353,108.47025489018964,106.26786689008574
123.33523703654073,121.20181576823386,119.06839449992698,116.9349732316201,114.80155196331324,112.66813069500637,110.5347094266995,108.40128815839262,106.26786689008574
127.14038418498515,124.53131952312273,121.9222548612603,119.31319019939787,116.70412553753545,114.09506087567303,111.4859962138106,108.87693155194816,106.26786689008574
130.20955349568973,127.21684266998923,124.22413184428873,121.23142101858824,118.23871019288774,115.24599936718724,112.25328854148674,109.26057771578624,106.26786689008574
132.45313613345562,129.17997747803437,125.90681882261315,122.63366016719192,119.36050151177068,116.08734285634944,112.81418420092821,109.54102554550698,106.26786689008574
134.3228744433646,130.81599849920474,127.3091225550449,123.80224661088504,120.29537066672518,116.78849472256532,113.28161877840546,109.7747428342456,106.26786689008574
135.053120145851,131.45496348888037,127.8568068319097,124.25865017493904,120.66049351796838,117.06233686099772,113.46418020402706,109.8660235470564,106.26786689008574
135.065460892756,131.46576164242222,127.86606239208842,124.26636314175465,120.66666389142087,117.06696464108708,113.46726539075331,109.86756614041953,106.26786689008574
135.065460892756,131.46576164242222,127.86606239208842,124.26636314175465,120.66666389142087,117.06696464108708,113.46726539075331,109.86756614041953,106.26786689008574
135.065460892756,131.46576164242222,127.86606239208842,124.26636314175465,120.66666389142087,117.06696464108708,113.46726539075331,109.86756614041953,106.26786689008574
135.065460892756,131.59736424843996,128.1292676041239,124.66117095980786,121.19307431549183,117.72497767117578,114.25688102685973,110.7887843825437,107.32068773822765
135.065460892756,131.89111393624876,128.7167669797415,125.54242002323426,122.36807306672702,119.19372611021977,116.01937915371252,112.84503219720528,109.67068524069803
135.065460892756,132.31862026416502,129.57177963557407,126.82493900698312,124.07809837839216,121.33125774980121,118.58441712121025,115.83757649261929,113.09073586402833
135.065460892756,132.7649305701267,130.46440024749742,128.16386992486812,125.86333960223885,123.56280927960955,121.26227895698027,118.96174863435098,116.6612183117217
135.065460892756,133.06017319115188,131.05488548954773,129.0495977879436,127.04431008633946,125.03902238473535,123.03373468313121,121.02844698152708,119.02315927992295
135.065460892756,132.88547215050286,130.70548340824976,128.52549466599663,126.34550592374353,124.1655171814904,121.98552843923729,119.80553969698417,117.62555095473105
135.065460892756,132.83919868708026,130.61293648140452,128.38667427572878,126.16041207005304,123.9341498643773,121.70788765870157,119.48162545302583,117.25536324735009
135.065460892756,132.83919868708026,130.61293648140452,128.38667427572878,126.16041207005304,123.9341498643773,121.70788765870157,119.48162545302583,117.25536324735009
135.065460892756,132.83919868708026,130.61293648140452,128.38667427572878,126.16041207005304,123.9341498643773,121.70788765870157,119.48162545302583,117.25536324735009
135.065460892756,132.83919868708026,130.61293648140452,128.38667427572878,126.16041207005304,123.9341498643773,121.70788765870157,119.48162545302583,117.25536324735009
135.065460892756,132.83919868708026,130.61293648140452,128.38667427572878,126.16041207005304,123.9341498643773,121.70788765870157,119.48162545302583,117.25536324735009
134.08480947785137,131.98112869903872,129.87744792022605,127.77376714141339,125.67008636260073,123.56640558378807,121.46272480497541,119.35904402616275,117.25536324735009
133.06294250948164,131.0869951017152,129.11104769394876,127.13510028618231,125.15915287841587,123.18320547064943,121.20725806288297,119.23131065511653,117.25536324735009
136.79793765689536,134.3551158557022,131.91229405450903,129.46947225331587,127.02665045212272,124.58382865092956,122.14100684973641,119.69818504854325,117.25536324735009
140.0546941334019,137.20477777264543,134.35486141188895,131.50494505113247,128.655028690376,125.80511232961952,122.95519596886305,120.10527960810657,117.25536324735009
142.5489901806554,139.38728681399223,136.2255834473291,133.0638800806659,129.90217671400274,126.74047334733959,123.57876998067641,120.41706661401325,117.25536324735009
144.5932922665057,141.17605113911125,137.7588100117168,134.34156888432236,130.92432775692788,127.50708662953345,124.08984550213899,120.67260437474454,117.25536324735009
146.0756620034572,142.47312465894382,138.87058731443042,135.26804996991703,131.66551262540366,128.06297528089027,124.46043793637688,120.85790059186348,117.25536324735009
146.57143212166807,142.9069235123783,139.24241490308856,135.57790629379883,131.91339768450908,128.24888907521932,124.58438046592958,120.91987185663984,117.25536324735009
146.57143212166807,142.9069235123783,139.24241490308856,135.57790629379883,131.91339768450908,128.24888907521932,124.58438046592958,120.91987185663984,117.25536324735009
146.57143212166807,142.99427970138697,139.41712728110585,135.83997486082475,132.26282244054363,128.68567002026253,125.10851759998144,121.53136517970033,117.95421275941922
146.57143212166807,143.14406774854243,139.71670337541678,136.28933900229117,132.86197462916553,129.4346102560399,126.00724588291426,122.57988150978863,119.152517136663
146.57143212166807,143.3597050200143,140.1479779183605,136.93625081670672,133.72452371505295,130.5127966133992,127.3010695117454,124.08934241009162,120.87761530843784
146.57143212166807,143.64856837491584,140.72570462816364,137.8028408814114,134.87997713465919,131.957113387907,129.03424964115476,126.11138589440253,123.18852214765032
146.57143212166807,144.04257173646567,141.5137113512633,138.98485096606095,136.45599058085855,133.9271301956562,131.3982698104538,128.86940942525143,126.34054904004905
146.57143212166807,144.33840055712318,142.1053689925783,139.8723374280334,137.63930586348852,135.40627429894363,133.17324273439874,130.94021116985385,128.70717960530897
146.57143212166807,144.20193494563662,141.83243776960518,139.46294059357373,137.0934434175423,134.72394624151084,132.3544490654794,129.98495188944796,127.6154547134165
146.57143212166807,144.17493753860893,141.77844295554976,139.38194837249063,136.98545378943146,134.58895920637232,132.19246462331319,129.79597004025402,127.39947545719488
146.57143212166807,144.17493753860893,141.77844295554976,139.38194837249063,136.98545378943146,134.58895920637232,132.19246462331319,129.79597004025402,127.39947545719488