This commit is contained in:
2024-07-29 15:34:01 +03:30
parent 94174ddfa5
commit ab0fb239af
3 changed files with 24 additions and 27 deletions
+6
View File
@@ -480,6 +480,12 @@ void OnSignalRecieved(XSignal &signal)
// return;
// }
//
if (signal.pushers < 2)
{
return;
}
//
ENUM_X_SIGNAL_EXECUTION_RESULT state;
bool isExecuted = eaTrader.ExecuteSignal(
+4
View File
@@ -737,6 +737,9 @@ struct XSignal
//
XSignal supports[]; // a Collecion of Support Signals ...
//
int pushers; // Signal Pushers ...
//
// Constructor ...
XSignal()
@@ -1141,6 +1144,7 @@ struct XSignal
//
entry = 0;
volume = 0;
pushers = 0;
positionId = 0;
//
+14 -27
View File
@@ -1399,34 +1399,21 @@ public:
}
//
// Preparing Signal ...
if (pushers > 0)
// Prepare Signal ...
result = signal.Prepare(
mSymbol,
signallers[0],
mPeriod,
type,
mode,
entry,
mVolume,
sl,
tp //
);
if (result)
{
//
result = signal.Prepare(
mSymbol,
signallers[0],
mPeriod,
type,
mode,
entry,
mVolume,
sl,
tp //
);
}
else
{
result = false;
}
//
if (pushers > 1)
{
//
Print("======");
Print("Pusher: ", pushers);
ArrayPrint(signallers);
signal.pushers = pushers;
}
//