Merge pull request #10758 from stash86/recursive-str

add is_number check to make sure we skip non-number columns
This commit is contained in:
Matthias
2024-10-07 21:09:58 +02:00
committed by GitHub
2 changed files with 14 additions and 1 deletions
@@ -33,6 +33,9 @@ class strategy_test_v3_recursive_issue(IStrategy):
# Has both bias1 and bias2
dataframe["rsi_lookahead"] = ta.RSI(dataframe, timeperiod=50).shift(-1)
# String columns shouldn't cause issues
dataframe["test_string_column"] = f"a{len(dataframe)}"
return dataframe
def populate_entry_trend(self, dataframe: DataFrame, metadata: dict) -> DataFrame: