Synchronise 2

This commit is contained in:
Jérôme Delacotte
2025-03-09 17:06:39 +01:00
parent 8a1c69e53a
commit 59daa1af70
2 changed files with 273 additions and 61 deletions

View File

@@ -357,9 +357,6 @@ class Zeus_8_3_2_B_4_2(IStrategy):
# print("---------------" + pair + "----------------")
expected_profit = self.expectedProfit(pair, last_candle)
dataframe, _ = self.dp.get_analyzed_dataframe(pair, self.timeframe)
last_candle = dataframe.iloc[-1]
# Calcul du prix cible basé sur l'ATR
atr_take_profit = trade.open_rate + (last_candle['atr'] * 2) # Prendre profit à 2x l'ATR