mirror of
https://github.com/wassname/catalyst.git
synced 2026-07-07 12:47:47 +08:00
caee313012
When EQUITY_DAILY_BAR_SOURCE_FROM_MINUTE is set, use EQUITY_MINUTE_BAR_LOOKBACK_DAYS as the default value for EQUITY_DAILY_BAR_LOOKBACK_DAYS. Without this, trying to run a minutely backtest in a test setting only EQUITY_MINUTE_BAR_LOOKBACK_DAYS and EQUITY_DAILY_BAR_SOURCE_FROM_MINUTE fails because the benchmark creation process makes a daily history call for the entire period of the backtest, which then fails because the equity daily bar calendar is shorter than the equity minute bar calendar. I can't imagine a circumstance in which you'd want the daily bar calendar to be shorter than the minute bar calendar when you're sourcing daily bars from minutes, so this change makes that the default behavior unless it's explicitly overridden.