Skip to content

Bug: OHLCV cache comment says 15 years but implementation downloads only 5 years #985

Description

@RSXLX

Summary

The OHLCV loader documents a 15-year cache window, but the implementation only downloads 5 years. Historical analyses older than five years can lose technical indicator data unexpectedly.

Evidence

  • tradingagents/dataflows/stockstats_utils.py:68 says downloads 15 years.
  • tradingagents/dataflows/stockstats_utils.py:83 uses pd.DateOffset(years=5).

Expected

The implementation should match the documented window or the documentation should be corrected.

Impact

Backtests or historical analysis dates older than five years may produce empty/no-data indicator snapshots even when Yahoo has data.

Suggested fix

Use years=15 or update the comment and user-facing expectations to 5 years.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions