edge: handle properly the 'No trades' case

This commit is contained in:
hroff-1902
2019-05-22 14:21:36 +03:00
parent 6dc2175e1f
commit 2c9a519c5e
2 changed files with 5 additions and 3 deletions

View File

@@ -139,6 +139,7 @@ class Edge():
# If no trade found then exit
if len(trades) == 0:
logger.info("No trades created.")
return False
# Fill missing, calculable columns, profit, duration , abs etc.