4f708d410d
* 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
3.3 KiB
3.3 KiB
| 1 | macd | signal | histogram |
|---|---|---|---|
| 2 | nan | nan | nan |
| 3 | nan | nan | nan |
| 4 | nan | nan | nan |
| 5 | nan | nan | nan |
| 6 | nan | nan | nan |
| 7 | nan | nan | nan |
| 8 | nan | nan | nan |
| 9 | nan | nan | nan |
| 10 | nan | nan | nan |
| 11 | nan | nan | nan |
| 12 | nan | nan | nan |
| 13 | nan | nan | nan |
| 14 | nan | nan | nan |
| 15 | nan | nan | nan |
| 16 | nan | nan | nan |
| 17 | nan | nan | nan |
| 18 | nan | nan | nan |
| 19 | nan | nan | nan |
| 20 | nan | nan | nan |
| 21 | nan | nan | nan |
| 22 | nan | nan | nan |
| 23 | nan | nan | nan |
| 24 | nan | nan | nan |
| 25 | nan | nan | nan |
| 26 | nan | nan | nan |
| 27 | nan | nan | nan |
| 28 | nan | nan | nan |
| 29 | nan | nan | nan |
| 30 | -1.6170719860735971 | 1.500164024608185 | -3.1172360106817822 |
| 31 | -1.8110912882781207 | 0.7195028747118108 | -2.5305941629899316 |
| 32 | -1.8452707394575754 | 0.10195898839150293 | -1.9472297278490782 |
| 33 | -1.716072306627396 | -0.32692087563976685 | -1.3891514309876292 |
| 34 | -1.4346732374215065 | -0.5546693329613017 | -0.8800039044602048 |
| 35 | -1.0259373247852466 | -0.5834713070341307 | -0.4424660177511158 |
| 36 | -0.5261711695337112 | -0.4303778464954234 | -0.09579332303828786 |
| 37 | 0.020136026855652744 | -0.1261456880307768 | 0.14628171488642955 |
| 38 | 0.5642993351436161 | 0.2871896583393011 | 0.277109676804315 |
| 39 | 1.0577965668451412 | 0.7597864292697514 | 0.29801013757538986 |
| 40 | 1.4566098084074781 | 1.238200619265313 | 0.21840918914216512 |
| 41 | 1.7251628040274198 | 1.6699422610752828 | 0.055220542952137075 |
| 42 | 1.839502921900234 | 2.007973561376469 | -0.1684706394762352 |
| 43 | 1.789443805437287 | 2.214743964395463 | -0.42530015895817597 |
| 44 | 1.579477565629361 | 2.265398875291415 | -0.6859213096620542 |
| 45 | 1.228375220750749 | 2.1498728752067406 | -0.9214976544559916 |
| 46 | 0.7675112171519203 | 1.8736781752986902 | -1.10616695814677 |
| 47 | 0.23806180337069804 | 1.4573158589540616 | -1.2192540555833635 |
| 48 | -0.312672401544404 | 0.9343607144283145 | -1.2470331159727186 |
| 49 | -0.8354910914814582 | 0.3483891540511789 | -1.1838802455326372 |
| 50 | -1.2836887850950234 | -0.2509767512648993 | -1.032712033830124 |
| 51 | -1.617226583615917 | -0.8125569694939239 | -0.8046696141219931 |
| 52 | -1.8063084986285673 | -1.288233135482608 | -0.5180753631459594 |
| 53 | -1.8340428681235323 | -1.6372883893672954 | -0.19675447875623697 |
| 54 | -1.6979511102176872 | -1.830080579970452 | 0.13212946975276485 |
| 55 | -1.4101890313872332 | -1.850721432146793 | 0.4405324007595599 |
| 56 | -0.9964609123997974 | -1.6985229798211636 | 0.7020620674213662 |
| 57 | -0.4937233674083643 | -1.3880826026717834 | 0.8943592352634191 |
| 58 | 0.053115920869160504 | -0.9479995435999605 | 1.001115464469121 |
| 59 | 0.5952097011087858 | -0.4183379684078186 | 1.0135476695166044 |
| 60 | 1.08413455566793 | 0.1529364569203635 | 0.9311980987475665 |
| 61 | 1.4762164373709936 | 0.7142278501482111 | 0.7619885872227825 |
| 62 | 1.7364319548996434 | 1.214907446421661 | 0.5215245084779825 |
| 63 | 1.8415369176520642 | 1.6098260805937719 | 0.23171083705829232 |
| 64 | 1.7821426772784434 | 1.863338527672966 | -0.08119585039452248 |
| 65 | 1.5635547930883718 | 1.9524800419922983 | -0.38892524890392655 |
| 66 | 1.2052991062978435 | 1.8690111906503595 | -0.6637120843525159 |
| 67 | 0.7393775578306361 | 1.6201481890023488 | -0.8807706311717127 |
| 68 | 0.20740955252853155 | 1.227913383823025 | -1.0205038312944934 |
| 69 | -0.34308577661769846 | 0.7271638031949601 | -1.0702495798126586 |
| 70 | -0.8629343098101288 | 0.1624737898491387 | -1.0254080996592674 |
| 71 | -1.3056995171492929 | -0.41584989244900744 | -0.8898496247002854 |
| 72 | -1.631830494827824 | -0.9562645862496053 | -0.6755659085782186 |
| 73 | -1.81219492903341 | -1.4105982968693187 | -0.40159663216409136 |
| 74 | -1.830681398371837 | -1.7383548371897037 | -0.09232656118213334 |
| 75 | -1.685638558851565 | -1.9103330377091343 | 0.22469447885756932 |
| 76 | -1.3900226532957447 | -1.9112367655854312 | 0.5212141122896865 |
| 77 | -0.9702401685862867 | -1.7410426395104779 | 0.7708024709241912 |
| 78 | -0.4637890227074877 | -1.4150032943207012 | 0.9512142716132135 |
| 79 | 0.08409101268591712 | -0.9622859278239085 | 1.0463769405098255 |
| 80 | 0.6244594464075419 | -0.42336776528913134 | 1.0478272116966734 |
| 81 | 1.1090467761140985 | 0.15357888489338775 | 0.9554678912207107 |