Calcul 20210101-20250714 12144.639 234.682$ => 13,21 max 25 mises BTC
This commit is contained in:
@@ -1251,7 +1251,8 @@ class Zeus_8_3_2_B_4_2(IStrategy):
|
|||||||
def adjust_stake_amount(self, pair: str, last_candle: DataFrame):
|
def adjust_stake_amount(self, pair: str, last_candle: DataFrame):
|
||||||
# Calculer le minimum des 14 derniers jours
|
# Calculer le minimum des 14 derniers jours
|
||||||
base_stake_amount = self.config.get('stake_amount') # Montant de base configuré
|
base_stake_amount = self.config.get('stake_amount') # Montant de base configuré
|
||||||
factors = [1, 1.25, 1.5, 2.0]
|
factors = [1, 1.1, 1.25, 1.5, 2.0, 3]
|
||||||
|
thresholds = [2, 5, 10, 20, 30, 50]
|
||||||
|
|
||||||
if not pair in ('BTC/USDT', 'BTC/USDC'):
|
if not pair in ('BTC/USDT', 'BTC/USDC'):
|
||||||
# factors = [1, 1.2, 1.3, 1.4]
|
# factors = [1, 1.2, 1.3, 1.4]
|
||||||
@@ -1265,7 +1266,6 @@ class Zeus_8_3_2_B_4_2(IStrategy):
|
|||||||
pct = 5
|
pct = 5
|
||||||
if last_max > 0:
|
if last_max > 0:
|
||||||
pct = 100 * (last_max - first_price) / last_max
|
pct = 100 * (last_max - first_price) / last_max
|
||||||
thresholds = [2, 5, 10, 20]
|
|
||||||
|
|
||||||
factor = self.multi_step_interpolate(pct, thresholds, factors)
|
factor = self.multi_step_interpolate(pct, thresholds, factors)
|
||||||
|
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user