last works ...

This commit is contained in:
2024-06-14 05:39:49 +03:30
parent a525a2e2cd
commit e12f7f72c5
7 changed files with 655 additions and 97 deletions
+45
View File
@@ -23,6 +23,7 @@
// Imports ...
#include <Trade/Trade.mqh>
#include "../Libraries/x-saherelm.draw.lib.mq5"
#include "../Classes/x-saherelm.xczone.class.mq5"
#include "../Libraries/x-saherelm.common.lib.mq5"
//
@@ -678,6 +679,10 @@ struct XSignal
//
XSignal supports[]; // a Collecion of Support Signals ...
//
// Zones for Signal ...
XSCZones *zones;
//
// Constructor ...
XSignal()
@@ -4031,6 +4036,46 @@ ulong ExtractSupportedTicket(string value)
);
}
//
int ExtractSupportPositions(
XPosition &source[],
XPosition &dest[] // Result ...
) {
//
int result = 0;
//
Clean(dest);
//
int sourceCount = ArraySize(source);
if (!IsValidSize(sourceCount)) {
return result;
}
//
for (int i = 0; i < sourceCount; i++) {
//
XPosition iSource = source[i];
//
ulong iParentTicket = ExtractSupportedTicket(iSource.comment);
if (iParentTicket > 0) {
//
AddRef(
iSource,
dest //
);
}
}
//
result = ArraySize(dest);
//
return result;
}
//
// Generate EQM Support Comment Tag ...
string GenerateEQMSupportTag(ulong ticket)