TST: Add logging of sim params for perf tracker tests.

These tests use the random simulation parameters, which is leading
to an intermittent failure.

We may want to consider removing the randomness, but in the meantime
the randomness is exposing a case where the cost basis is not the value
expected, so logging the sim parameter values to help track down what
parameters cause the failure.
MAINT: Use enviroment normalize_date instead of dt.replace

Continue path of removing scattered calls to dt.replace.
BUG: Mask of batch_transform columns to match keys in data parameter.

The underlying RollingPanel in batch_transform was always accumulating
all values to ever appear in data.

However, at any given algo time the desired return value is what the
current active sids are.

Instead, mask down to the sids that are passed in as the data parameter.
MAINT: Ensure that test sources only provide market days.

Instead of using all calendar days between start and end in test
sources, use the trading calendar for test sources.

Needed for an incoming refactoring of market open and close,
where the opens and closes are indexed by market days.
MAINT: Store values for market open and close in environment.

Instead of creating the market open and close mid-simulation,
calculate upfront the values for market open and close in a
DataFrame, so that they values can be looked up by date, as
viewed as series while investigating data issues.

One downside of this implementation is that the entire history
has open and close values calculated, even though the simulation
may only be a subset of the trade data on record.
Should consider moving the `times` property and other methods
that care about the start and end date of a simulation to
SimulationParameters or another like object.
BUG: Group and aggregate downsampling by trading day.

Otherwise, out of market events would result in a mishaped
panel.
Revert "MAINT: Store values for market open and close in environment."

This reverts commit 17b8980fb9dedf1818d6ad27e9b3c3f4b45853ea.

Backing out rigidness of market and close, while sorting out how
to handle events that are not on a day in the trading calendar.
BUG: Fix non-trading advancement of trading day count and downsample.

Add a guard so that we do not advance trading day count or downsample
on non-trading days.