last ...
This commit is contained in:
@@ -711,6 +711,15 @@ class XCXCAEATradeManager : public XCBaseAlert
|
||||
//
|
||||
// Do Partial Closing ...
|
||||
double volume = iPosition.volume * volumeMultiplier;
|
||||
|
||||
//
|
||||
// Normalizing Volume ...
|
||||
volume = NormalizeVolume(
|
||||
volume,
|
||||
iPosition.symbol //
|
||||
);
|
||||
|
||||
//
|
||||
string comment = "PC On Target ...";
|
||||
has = trader.ClosePartial(
|
||||
iPosition.ticket,
|
||||
@@ -772,7 +781,7 @@ class XCXCAEATradeManager : public XCBaseAlert
|
||||
if (reportSignals)
|
||||
{
|
||||
//
|
||||
string message = signal.GetMessage();
|
||||
string message = signal.GetMessage("Provided");
|
||||
Alert(message);
|
||||
}
|
||||
|
||||
@@ -885,7 +894,20 @@ class XCXCAEATradeManager : public XCBaseAlert
|
||||
{
|
||||
//
|
||||
string executionMessage = ToString(executionResult);
|
||||
Alert(executionMessage);
|
||||
|
||||
//
|
||||
string message = NULL;
|
||||
if (result)
|
||||
{
|
||||
message = signal.GetMessage("Executed");
|
||||
}
|
||||
else
|
||||
{
|
||||
message = signal.GetMessage("Failed due (" + executionMessage + ")");
|
||||
}
|
||||
|
||||
//
|
||||
Alert(message);
|
||||
}
|
||||
|
||||
//
|
||||
@@ -1092,6 +1114,15 @@ class XCXCAEATradeManager : public XCBaseAlert
|
||||
{
|
||||
}
|
||||
|
||||
/**
|
||||
* Handle New Day ...
|
||||
*/
|
||||
void HandleNewDay()
|
||||
{
|
||||
//
|
||||
// Clean Managed SL(s) and TP(s) and Positions ...
|
||||
}
|
||||
|
||||
/**
|
||||
* Find Executed Trade by Providing Position Ticket ...
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user