4 Commits
Author SHA1 Message Date
cnmcdee 90880928c9 Ind* CSV series API: load_csv/set_series/clear_series on all 250 indicators
Every Ind* widget recomputes its lines from a loaded OHLCV series:
private recompute_lines() (moved out of the constructor), public
set_series()/load_csv()/clear_series()/series() matching the Stock*
chart widgets, same loader and CSV spec (StockData.h). Constructor
defaults keep the seeded 250-bar template; failed loads leave the
series untouched; clear_series() empties lines and draws clean.
Params that were constructor-only (fast/slow/period/...) are now
stored as members so a reloaded series uses the same settings.

Tests: widgets/tests/ind_csv_harness.cpp + test_ind_csv.py — 250/250
harnesses build, 250/250 numeric PASS, 39/39 screenshots PASS, 250/250
demo mains build. Docs: docs/stock-market-csv-data.md Indicators
section rewritten; all 250 cdoc pages updated (update-ind-csv.py).
2026-12-02 11:00:19 +00:00
cnmcdee f4f1845308 Group C getters/setters batch 16: IndVolumeDelta IndVolumeOscillator IndVolumePriceTrend IndVolumeRateOfChange IndVolumeWeightedMovingAverage IndVolumeZoneOscillator IndVortex IndWMA IndWaveTrend IndWeightedClose IndWilderVolatilitySystem IndWildersMA IndWilliamsAccumulationDistribution IndWilliamsR IndWoodiePivotPoints
Expose draw() colours/constants as properties (bg/grid/axis, line width, grid divisions, candle colours, per-line colour) plus view/period accessors; defaults preserve the pre-pass render (verified pixel-identical vs pristine headers, setters exercised).
2026-11-29 22:30:14 +00:00
cnmcdee a80fedb026 Fix flaky/wrong test harnesses; fix IndVortex off-by-one abort
- palette_window/palette_icons tests: newer ImageMagick prints
  1526 (0.0138727) for compare -metric AE, so the integer -gt test
  failed on a passing diff; strip to the bare count. Palette window
  suite now 16/16.
- code_window test: View -> Code View reopen used F10 menu navigation
  (does not fire under bare Xvfb here) and fallback clicks at (130,12)
  that hit Debug, not View (View spans x 80-128); click the measured
  positions instead (108,12 then 162,37). Suite now ALL PASS.
- chart_pro render test: the resize-allocation check raced the Xvfb
  configure event (same binary passed 1/3 runs); wait boundedly for
  the allocation to shrink instead of a single pump().
- IndVortex: off-by-one in ind_vortex() aborted the layout on place
  (series[k-1] with k=0 when i=period-1); guard is now i < period.
  Pre-existing in the CWidgets source, fixed here in lightgui only.
  Placement test now 547/547 place, 547/547 draw, 0 failures.
Regenerated screenshots + palette_layout_results.csv from the passing
runs.
2026-11-29 04:50:01 +00:00
cnmcdee 77a5edfe2c Merge expanded widget set: 547 XFrame widgets, combined palette (583), layout, docs 2026-11-29 03:38:35 +00:00