mirror of
https://github.com/freqtrade/freqtrade.git
synced 2024-11-10 10:21:59 +00:00
Merge pull request #4415 from The-smooth-operator/develop
Fix example in storing-information docs
This commit is contained in:
commit
95fcb1eb27
|
@ -315,11 +315,11 @@ class AwesomeStrategy(IStrategy):
|
|||
|
||||
def populate_indicators(self, dataframe: DataFrame, metadata: dict) -> DataFrame:
|
||||
# Check if the entry already exists
|
||||
if not metadata["pair"] in self._cust_info:
|
||||
if not metadata["pair"] in self.cust_info:
|
||||
# Create empty entry for this pair
|
||||
self._cust_info[metadata["pair"]] = {}
|
||||
self.cust_info[metadata["pair"]] = {}
|
||||
|
||||
if "crosstime" in self.cust_info[metadata["pair"]:
|
||||
if "crosstime" in self.cust_info[metadata["pair"]]:
|
||||
self.cust_info[metadata["pair"]]["crosstime"] += 1
|
||||
else:
|
||||
self.cust_info[metadata["pair"]]["crosstime"] = 1
|
||||
|
|
Loading…
Reference in New Issue
Block a user