Add volume > 0 check

This commit is contained in:
Matthias
2020-08-02 11:01:27 +02:00
parent 533a9ee907
commit 6312732255
2 changed files with 5 additions and 1 deletions
+3
View File
@@ -48,6 +48,9 @@ class AverageHyperopt(IHyperOpt):
dataframe[f"maMedium({params['trigger'][1]})"])
)
# Check that volume is not 0
conditions.append(dataframe['volume'] > 0)
if conditions:
dataframe.loc[
reduce(lambda x, y: x & y, conditions),