Using only trading hours for backtest

Does the "Show day session only" checkbox in the Database Intraday settings dialog affect only the charting?

I have the option checked but the AFL debugger still shows bars like

Date/Time | Volume
2.12.2020 7:00 | 100

How to filter out anything but trading hours from the Backtest data input? I would like the pre market / after hours bars to be ignored by indicators, excluded from data arrays, etc. Surely there is an easy way for this.

Didn't find anything relevant from the Backtest settings as well.

I ended up by removing the pre-market / after hours bars from the source data. As it improved performance of the backtest, the "Show day session only" most probably applies only to charting (it literally "shows" things differently).

IMHO, users should be made aware of this in the documentation.

The question arises again with backfill.

If I backfill 24 hours data with 1 minute resolution, is it possible to use this data in a way that only the trading hours count for indicators, etc.?

This topic was automatically closed 100 days after the last reply. New replies are no longer allowed.