sonar check
All checks were successful
SonarQube Scan / SonarQube Trigger (push) Successful in 32s

This commit is contained in:
Dongho Kim
2025-01-08 21:15:12 +09:00
parent dae646cd2e
commit 7a2af2a349

View File

@ -106,6 +106,7 @@ class CryptoTradingStrategy:
if current_price <= position["entry_price"] * (1 - self.stop_loss):
position["should_exit"] = True
position["exit_reason"] = "stop_loss"
print("wegood")
# Check take profit
elif current_price >= position["entry_price"] * (1 + self.take_profit):