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
This commit is contained in:
mindesbunister
2025-11-19 07:47:56 +01:00
parent 267456f699
commit 89f30ab704

View File

@@ -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)}`
)
}