diff --git a/lib/trading-logic.ts b/lib/trading-logic.ts index 28556b8..244967c 100644 --- a/lib/trading-logic.ts +++ b/lib/trading-logic.ts @@ -140,8 +140,9 @@ export function computeDailyTarget( // Floor: must make at least minDayPnL today (or whatever is left if less) const floor = Math.min(effectiveMinDay, remaining); - // 0% consistency → no upper bound, take cappedByFuture; otherwise cap at baseAmount - const amount = Math.max(floor, baseAmount > 0 ? Math.min(baseAmount, cappedByFuture) : cappedByFuture); + // Target what's needed to stay on track for profitTarget (cappedByFuture), floored at minDayPnL. + // Consistency-based baseAmount is intentionally ignored here — profitTarget takes priority. + const amount = Math.max(floor, cappedByFuture); return { amount: Math.round(amount * 100) / 100, path }; }