DynamicRollingFutureStrategy#
-
class sigtech.framework.strategies.dynamic_rolling_future.DynamicRollingFutureStrategy
Baseclasses:
RollingFutureStrategy
Subclasses:
DynamicRollingFuture
Class implementing a dynamic rolling future strategy.
-
function: Optional[Callable]
-
function_name: Optional[str]
-
kwargs: Optional[dict]
-
rolling_rule: Optional[str]
-
rule_list: list[str]
-
build_rolling_table()
Build the rolling future table.
-
roll_rules_to_contracts(first_roll_dates, s)
Return the contracts given first rolling dates and function selector.
- Parameters:
first_roll_dates – List of first rolling dates.
s – Function selector.
- Returns:
pandas Series.
-
roll_table_end_date()
Return the rolling future table including only contracts with first execution date not greater than the adjusted end date for the strategy.