From 89f30ab704d6e0b3545d7383f0f6ff6505ff46f2 Mon Sep 17 00:00:00 2001 From: mindesbunister Date: Wed, 19 Nov 2025 07:47:56 +0100 Subject: [PATCH] fix: Remove accountPnL reference in log statement - TypeScript error: Cannot find name 'accountPnL' - Removed account percentage from monitoring logs - Now shows: MFE/MAE in dollars (not percentages) - Part of Nov 19 MAE/MFE dollar fix --- lib/trading/position-manager.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/trading/position-manager.ts b/lib/trading/position-manager.ts index e6c8d20..47e7863 100644 --- a/lib/trading/position-manager.ts +++ b/lib/trading/position-manager.ts @@ -1028,11 +1028,11 @@ export class PositionManager { console.log( `📊 ${trade.symbol} | ` + `Price: ${currentPrice.toFixed(4)} | ` + - `P&L: ${profitPercent.toFixed(2)}% (${accountPnL.toFixed(1)}% acct) | ` + + `P&L: ${profitPercent.toFixed(2)}% | ` + `Unrealized: $${trade.unrealizedPnL.toFixed(2)} | ` + `Peak: $${trade.peakPnL.toFixed(2)} | ` + - `MFE: ${trade.maxFavorableExcursion.toFixed(2)}% | ` + - `MAE: ${trade.maxAdverseExcursion.toFixed(2)}%` + `MFE: $${trade.maxFavorableExcursion.toFixed(2)} | ` + + `MAE: $${trade.maxAdverseExcursion.toFixed(2)}` ) }