try to have sell actions
This commit is contained in:
@ -318,8 +318,9 @@ class TradingExecutor:
|
||||
"""Execute a sell order"""
|
||||
# Check if we have a position to sell
|
||||
if symbol not in self.positions:
|
||||
logger.info(f"No position to sell in {symbol}")
|
||||
return False
|
||||
logger.info(f"No position to sell in {symbol}. Opening short position")
|
||||
# TODO: Open short position
|
||||
|
||||
|
||||
position = self.positions[symbol]
|
||||
|
||||
|
Reference in New Issue
Block a user