condensed strategy methods down to 2

This commit is contained in:
Sam Germain
2021-08-18 04:19:17 -06:00
parent d4a7d2d444
commit 092780df9d
22 changed files with 451 additions and 773 deletions

View File

@@ -167,14 +167,12 @@ class Edge:
pair_data = pair_data.sort_values(by=['date'])
pair_data = pair_data.reset_index(drop=True)
df_analyzed = self.strategy.advise_exit(
dataframe=self.strategy.advise_enter(
df_analyzed = self.strategy.advise_sell(
dataframe=self.strategy.advise_buy(
dataframe=pair_data,
metadata={'pair': pair},
is_short=False
metadata={'pair': pair}
),
metadata={'pair': pair},
is_short=False
metadata={'pair': pair}
)[headers].copy()
trades += self._find_trades_for_stoploss_range(df_analyzed, pair, self._stoploss_range)