last works ...
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user