edge: handle properly the 'No trades' case
This commit is contained in:
@@ -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.
|
||||
|
Reference in New Issue
Block a user