construct_event_timeline#

construct_event_timeline(state)[source]#

Create timestamps of the events needed for alpha model analysis.

Event can be caused by

  • Rebalances

  • Stop loss triggers (happen outside the normal rebalance time period)

Parameters:

state (State) –

Return type:

DatetimeIndex