This commit is contained in:
2024-06-21 06:45:33 +03:30
parent e9e313fa58
commit a5cb716d0b
7 changed files with 1268 additions and 761 deletions
+33
View File
@@ -485,6 +485,39 @@ bool IsDrawExists(
return result;
}
//
// Find Specific Object Name ...
string FindObjectName(
string suggest,
long chartId = 0,
int subWindow = 0 //
)
{
//
string result = NULL;
//
int objectsCount = ObjectsTotal(chartId, subWindow);
if (objectsCount <= 0) {
return result;
}
//
for (int i = objectsCount - 1; i >= 0; i--) {
//
string iObjectName = ObjectName(chartId, i, subWindow);
bool isExists = StringFind(iObjectName, suggest) >= 0;
if (isExists) {
//
result = iObjectName;
break;
}
}
//
return result;
}
//
// Regular Draws ...