diff --git a/lib/trading-logic.ts b/lib/trading-logic.ts index 7a3afd7..ec2ce4e 100644 --- a/lib/trading-logic.ts +++ b/lib/trading-logic.ts @@ -146,5 +146,5 @@ export function computeDailyTarget( baseAmount = Math.max(0, profitTarget - totalProfit); } - return { amount: Math.round(baseAmount * 100) / 100, path }; + return { amount: Math.round(Math.max(baseAmount, effectiveMinDay) * 100) / 100, path }; }