Update comment to mention .copy() usage

This commit is contained in:
Matthias 2020-04-02 20:17:54 +02:00
parent de47186263
commit c465552df4

View File

@ -467,6 +467,9 @@ class IStrategy(ABC):
"""
Creates a dataframe and populates indicators for given candle (OHLCV) data
Used by optimize operations only, not during dry / live runs.
Using .copy() to get a fresh copy of the dataframe for every strategy run.
Has positive effects on memory usage for whatever reason - also when
using only one strategy.
"""
return {pair: self.advise_indicators(pair_data.copy(), {'pair': pair})
for pair, pair_data in data.items()}