fix x786 ...

This commit is contained in:
2024-05-29 00:15:02 +03:30
parent 179efd4170
commit 33b68be918
6 changed files with 352 additions and 110 deletions
+22 -1
View File
@@ -2746,6 +2746,15 @@ public:
return 0;
}
//
// When Some Errors happens in Executing Signals ...
virtual void ManageUnExecutedSignals(
ENUM_X_SIGNAL_EXECUTION_RESULT &states[],
XSignal &unExecutedSignals[] //
)
{
}
//
// Execute Provided Signals ...
virtual void HandleSignalsExecution(XSignal &signals[])
@@ -2800,9 +2809,11 @@ public:
//
// Try to Execute Signals ...
XSignal notExecuteds[];
ENUM_X_SIGNAL_EXECUTION_RESULT reasons[];
int executedSignalsCount = mTrader.ExecuteSignals(
int executedSignalsCount = mTrader.ExecuteSpecifiedSignals(
filteredSignals,
notExecuteds, // Not Executed Signals
reasons
//
);
@@ -2837,6 +2848,16 @@ public:
message = "(" + ToString(executedSignalsCount) + ") Signals Executed Successfully ...";
}
//
if (ArraySize(notExecuteds) > 0)
{
//
ManageUnExecutedSignals(
reasons,
notExecuteds //
);
}
//
if (IsValid(message))
{