Implemented direct Telegram notifications when Position Manager closes positions: - New helper: lib/notifications/telegram.ts with sendPositionClosedNotification() - Integrated into Position Manager's executeExit() for all closure types - Also sends notifications for ghost position cleanups Notification includes: - Symbol, direction, entry/exit prices - P&L amount and percentage - Position size and hold time - Exit reason (TP1, TP2, SL, manual, ghost cleanup, etc.) - MAE/MFE stats (max gain/drawdown during trade) User request: Receive P&L notifications on position closures via Telegram bot Previously: Only opening notifications via n8n workflow Now: All closures (TP/SL/manual/ghost) send notifications directly
56 KiB
56 KiB