mirror of
https://github.com/freqtrade/freqtrade.git
synced 2024-11-10 18:23:55 +00:00
Copy dataframe in interfac.py (reduces memory consumption)
This commit is contained in:
parent
2915917680
commit
3fcd531eac
|
@ -468,7 +468,7 @@ class IStrategy(ABC):
|
||||||
Creates a dataframe and populates indicators for given candle (OHLCV) data
|
Creates a dataframe and populates indicators for given candle (OHLCV) data
|
||||||
Used by optimize operations only, not during dry / live runs.
|
Used by optimize operations only, not during dry / live runs.
|
||||||
"""
|
"""
|
||||||
return {pair: self.advise_indicators(pair_data, {'pair': pair})
|
return {pair: self.advise_indicators(pair_data.copy(), {'pair': pair})
|
||||||
for pair, pair_data in data.items()}
|
for pair, pair_data in data.items()}
|
||||||
|
|
||||||
def advise_indicators(self, dataframe: DataFrame, metadata: dict) -> DataFrame:
|
def advise_indicators(self, dataframe: DataFrame, metadata: dict) -> DataFrame:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user