Files
lightgui/tests/data/ohlcv_sample.csv
cnmcdee 099733b27d Stock chart CSV data: loader in StockData.h, load_csv/add_series_csv on 23 widgets, docs + tests
- xframe::load_ohlcv_csv / parse_ohlcv_csv_text in StockData.h:
  date,open,high,low,close,volume, optional header matched by name
  (Massive exports load as-is), YYYY-MM-DD / ISO / epoch s-ms-ns dates,
  volume optional, malformed rows skipped + counted, error string out.
- 15 single-series widgets gain load_csv() + clear_series();
  8 comparative widgets gain add_series_csv(); failure leaves the
  series untouched. Drawing tools intentionally excluded (coordinates,
  not series); Ind* widgets take CSV only via the constructor.
- Fixtures tests/data/ohlcv_sample.csv (+ _b, 30 rows each) and
  widgets/tests/csv_unit_test.cpp + test_stock_csv.py (23/23 PASS:
  CSV shot differs from template shot, 30 items, bad path exits 2).
- docs/stock-market-csv-data.md + CSV sections in the stock group docs.
2026-12-02 10:15:50 +00:00

32 lines
1.4 KiB
CSV

date,open,high,low,close,volume
2026-11-02,150.00,150.78,149.40,150.60,915898
2026-11-03,150.60,151.98,150.50,151.62,1611897
2026-11-04,151.62,152.06,151.51,151.64,945140
2026-11-05,151.64,153.19,151.48,152.44,1157182
2026-11-06,152.44,154.50,151.90,153.64,1434688
2026-11-09,153.64,155.63,152.86,155.54,1263374
2026-11-10,155.54,155.93,155.23,155.78,2105802
2026-11-11,155.78,156.63,155.19,156.09,1395836
2026-11-12,156.09,157.24,155.99,157.14,1129533
2026-11-13,157.14,158.86,156.82,158.45,1736898
2026-11-16,158.45,159.61,157.72,159.31,1918391
2026-11-17,159.31,160.29,158.81,159.75,2200219
2026-11-18,159.75,160.04,157.37,158.25,988905
2026-11-19,158.25,158.94,155.76,155.94,1582340
2026-11-20,155.94,156.56,151.94,152.64,1716841
2026-11-23,152.64,152.96,150.88,151.52,1750991
2026-11-24,151.52,151.96,148.87,149.63,2311489
2026-11-25,149.63,150.24,147.36,147.46,1922387
2026-11-26,147.46,149.21,146.71,148.32,1255352
2026-11-27,148.32,149.25,148.25,148.63,1538712
2026-11-30,148.63,148.78,148.38,148.48,2029172
2026-12-01,148.48,148.74,147.87,148.25,2194275
2026-12-02,148.25,148.68,147.40,147.92,2213414
2026-12-03,147.92,149.92,147.63,149.14,1464474
2026-12-04,149.14,150.19,148.28,149.39,1041473
2026-12-07,149.39,149.64,149.01,149.26,1575940
2026-12-08,149.26,150.27,149.21,150.00,1470314
2026-12-09,150.00,150.81,149.14,150.28,1904789
2026-12-10,150.28,151.43,149.66,150.86,886388
2026-12-11,150.86,152.96,150.07,152.25,2076596