This commit is contained in:
pie
2026-05-06 09:39:57 +01:00
parent d1a141a669
commit deba044a7b
2 changed files with 17 additions and 11 deletions
+4 -4
View File
@@ -21,8 +21,8 @@ class ExecutionManager:
self.params = params
ticker = params['ticker']
direction = params['direction']
entry_price = params['entry_price']
stop_loss = params['stop_loss']
entry_price = round(params['entry_price'], 2)
stop_loss = round(params['stop_loss'], 2)
# Calculate Risk per share
risk_per_share = abs(entry_price - stop_loss)
@@ -70,8 +70,8 @@ class ExecutionManager:
return False
ticker = params['ticker']
tp_price = params['target_price']
sl_price = params['stop_loss']
tp_price = round(params['target_price'], 2)
sl_price = round(params['stop_loss'], 2)
quantity = getattr(self, 'current_quantity', 1.0)