add supports for Report Balance on Partial Close ...
This commit is contained in:
@@ -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 ...
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user