TimeFrameCompress not using RTH/ETH?

db_intraday

I have above intraday database setting to match futures market

With code below, I attempt to get open of the day

DayO = TimeFrameCompress( O, inDaily, compressOpen );
DayO = TimeFrameExpand( DayO, inDaily, expandFirst );
printf("%f\n", DayO);

What I have observed is that new day calculation does not start with 18:00, but with 00:00.

2020/11/28 11:59pm, open price 12771.75 (lower left interpretation window)
prevday

2020/11/29 00:00, open price 12866 (lower left interpretation window)
currentday

Is there a setting I need to invoke to have AFL use RTH/ETH set in intraday settings?

Found the answer right after I submit the question. Enable "Day/Night session time as defined above solves the issue.

db_intraday

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