Merge pull request #4415 from The-smooth-operator/develop

Fix example in storing-information docs
This commit is contained in:
Matthias 2021-02-21 19:34:11 +01:00 committed by GitHub
commit 95fcb1eb27
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -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