Fix example in storing-information docs
This commit is contained in:
parent
3629892fc3
commit
188d7aaf8c
@ -315,11 +315,11 @@ class AwesomeStrategy(IStrategy):
|
|||||||
|
|
||||||
def populate_indicators(self, dataframe: DataFrame, metadata: dict) -> DataFrame:
|
def populate_indicators(self, dataframe: DataFrame, metadata: dict) -> DataFrame:
|
||||||
# Check if the entry already exists
|
# 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
|
# 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
|
self.cust_info[metadata["pair"]]["crosstime"] += 1
|
||||||
else:
|
else:
|
||||||
self.cust_info[metadata["pair"]]["crosstime"] = 1
|
self.cust_info[metadata["pair"]]["crosstime"] = 1
|
||||||
|
Loading…
Reference in New Issue
Block a user