Skip to content

Commit

Permalink
Add legacy compatible option to skip healing
Browse files Browse the repository at this point in the history
  • Loading branch information
miohtama committed Oct 31, 2024
1 parent 0217826 commit 6aed146
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tradingstrategy/utils/groupeduniverse.py
Original file line number Diff line number Diff line change
Expand Up @@ -803,7 +803,8 @@ def create_from_single_pair_dataframe(
@classmethod
def create_from_multiple_candle_dataframes(
cls,
dfs: Iterable[pd.DataFrame]
dfs: Iterable[pd.DataFrame],
autoheal_pair_limit=200,
) -> "GroupedCandleUniverse":
"""Construct universe based on multiple trading pairs.
Expand All @@ -814,7 +815,7 @@ def create_from_multiple_candle_dataframes(
OHLCV data feed.
"""
merged = pd.concat(dfs)
return cls(merged)
return cls(merged, autoheal_pair_limit=autoheal_pair_limit)


def filter_for_pairs(samples: pd.DataFrame, pairs: pd.DataFrame) -> pd.DataFrame:
Expand Down

0 comments on commit 6aed146

Please sign in to comment.