diff --git a/lib/trading-logic.ts b/lib/trading-logic.ts index ec2ce4e..aa3e0f0 100644 --- a/lib/trading-logic.ts +++ b/lib/trading-logic.ts @@ -105,7 +105,8 @@ export function computeDailyTarget( } else { const maxDay = Math.max(...qualifyingDays.map((d) => d.pnl)); const realTarget = maxDay / consistency; - const needed = realTarget - totalProfit; + // Need to satisfy BOTH consistency (realTarget) AND the actual profitTarget + const needed = Math.max(realTarget, profitTarget) - totalProfit; if (needed > maxDay) { baseAmount = maxDay;