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

1tenkankijunsenkou_asenkou_bchikou
2nannannannannan
3nannannannannan
4nannannannannan
5nannannannannan
6nannannannannan
7nannannannannan
8nannannannannan
9nannannannannan
10106.5821283457946nannannannan
11108.20988367634669nannannannan
12109.8888271273386nannannannan
13108.44202292946348nannannannan
14107.17579125897308nannannannan
15106.32522914642337nannannannan
16105.75567857424203nannannannan
17105.24899614280994nannannannan
18104.33106218541974nannannannan
19102.96560858876973nannannannan
20101.83895450274312nannannannan
21101.13165861842324nannannannan
22102.7392179252314nannannannan
23104.25238248696957nannannannan
24105.6025942195174nannannannan
25107.20682448900108nannannannan
26108.96461360117411nannannannan
27110.6502986955428109.65301419800483nannan100
28112.27169673288938110.11303274523868nannan103.4552020666134
29113.47310477893726110.11303274523868nannan106.64642473395035
30114.99919560255626110.11303274523868nannan109.33326909627483
31116.76655772711061110.11303274523868nannan111.32039085967226
32118.62363931186104110.11303274523868nannan112.47494986604055
33119.94443388717798110.11303274523868nannan112.73847630878196
34118.67290210557934110.11303274523868nannan112.13209366648874
35117.38244862164308110.11303274523868nannan110.75463180551151
36116.40160188307092110.11303274523868nannan108.7737988023383
37115.70601656224677110.11303274523868nannan106.41120008059868
38115.19184392287256110.11303274523868nannan103.92254305856751
39114.62443333030711110.11303274523868nannan101.57479556705148
40113.78353373731508110.11303274523868nannan99.62233840816026
41112.56719545681958110.11303274523868nannan98.28424227586412
42111.34051819987002110.11303274523868nannan97.72469882334903
43112.71078815916326110.41830745600757nannan98.0383539116416
44114.80155196331324111.11031724277667nannan99.24185317672267
45116.70412553753545113.69796389290735nannan101.27235512444012
46118.23871019288774116.43395659430753nannan103.99314457402363
47119.36050151177068119.08183873680946nannan107.20584501801073
48120.82178109079612120.29537066672518nannan110.6681390048435
49122.36190269327452120.66049351796838nannan114.11541363513378
50124.07809837839216120.66666389142087nannan117.28439764388199
51125.86333960223885120.66666389142087nannan119.93667863849153
52127.47520703043114120.66666389142087110.15165644677381nan121.87999976774739
53129.178178609033120.66666389142087111.19236473906403nan122.98543345374605
54130.00720899059246120.66666389142087111.79306876208797nan123.19889810845086
55129.08639267350088120.66666389142087112.55611417389747nan122.5459890808828
56128.14544124013753120.66666389142087113.43979523617465nan121.12969230082183
57127.04431008633946120.66666389142087114.36833602854986nan119.12118485241757
58126.34550592374353120.66666389142087115.02873331620833nan116.74454423507063
59125.67008636260073120.66666389142087114.39296742540901nan114.2567321877702
60124.98616649183467120.66666389142087113.74774068344088nan111.92464106224679
61124.0888011572865120.66666389142087113.2573173141548nan110.00125312406458
62122.9072799412907120.66666389142087112.90952465374272nan108.7030424002833
63122.00580666552938120.66666389142087112.65243833405563nan108.19063769933508
64123.53029930738201120.66666389142087112.3687330377729nan108.55447411796011
65125.15915287841587121.19307431549183111.94828324127688nan109.80671474335324
66127.02665045212272123.23431144879669111.34011410102913nan111.88016416080967
67128.655028690376126.57271499871513110.72677547255435nan114.63427081999565
68130.25160147003731129.60510424618855111.56454780758541nan117.86768208634197
69131.87290470158433130.92432775692788112.95593460304497nan121.33623047221137
70133.4766386559475131.66551262540366115.2010447152214nan124.77474439137693
71134.87997713465919131.91339768450908117.33633339359764nan127.92073514707224
72136.45599058085855131.91339768450908119.22117012429007nan130.5378442655162
73138.26023773038276131.91339768450908120.55857587876065nan132.43695669444105
74139.90278484033203131.91339768450908121.51119810562145nan133.49309388747918
75141.12399228492484131.91339768450908122.3723811349065nan133.65657776549278
76139.6164914325572131.91339768450908123.26500174682985nan132.95746831142935
77138.4127958713804131.91339768450908124.070935460926nan131.50287840157117
78137.63930586348852131.91339768450908124.92242125022693115.50183825914209129.46740573130614
79137.0934434175423131.91339768450908125.33693644100666115.50183825914209127.07753652299444
80136.57330018701333131.91339768450908124.87652828246087115.50183825914209124.59141418625812
81135.56469792406222131.91339768450908124.40605256577919115.50183825914209122.27578013601534