Skip to content

Commit

Permalink
Merge pull request freqtrade#4415 from The-smooth-operator/develop
Browse files Browse the repository at this point in the history
Fix example in storing-information docs
  • Loading branch information
xmatthias authored Feb 21, 2021
2 parents 3629892 + 188d7aa commit 95fcb1e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/strategy-customization.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 95fcb1e

Please sign in to comment.