add supports for Report Balance on Partial Close ...

This commit is contained in:
2025-05-14 06:57:36 +03:30
parent 4ed75abc2b
commit 9a2d8e6e3e
2 changed files with 44 additions and 1 deletions
@@ -1644,6 +1644,28 @@ class XCXCAEATradeManager : public XCBaseAlert
RemoveTrade(idx);
}
/**
* Handle Position Partially Closed Event ...
*
* @param ticket: ULONG ...
* @param profit: double ...
* @param comment: string ...
*/
void HandlePartiallyClosed(
const ulong ticket,
const double profit,
const string comment //
)
{
//
// Handle Balance Reporting ...
string prefix = "Partially Closed: " + ToString(ticket);
//
// Handle Balance Reporting ...
HandleReportBalance(prefix);
}
/**
* Handle Force Close Trades ...
*/