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.
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:68says downloads 15 years.tradingagents/dataflows/stockstats_utils.py:83usespd.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=15or update the comment and user-facing expectations to 5 years.