last works on Testing XPivot and XZone structures in test ea ...

This commit is contained in:
2024-07-08 05:10:47 +03:30
parent 44600bc62f
commit 677ee2e33e
3 changed files with 1193 additions and 311 deletions
+16 -4
View File
@@ -498,16 +498,19 @@ string FindObjectName(
//
int objectsCount = ObjectsTotal(chartId, subWindow);
if (objectsCount <= 0) {
if (objectsCount <= 0)
{
return result;
}
//
for (int i = objectsCount - 1; i >= 0; i--) {
for (int i = objectsCount - 1; i >= 0; i--)
{
//
string iObjectName = ObjectName(chartId, i, subWindow);
bool isExists = StringFind(iObjectName, suggest) >= 0;
if (isExists) {
if (isExists)
{
//
result = iObjectName;
break;
@@ -1000,7 +1003,16 @@ bool DrawRectangle(
//
// Create a rectangle by the given coordinates ...
result = ObjectCreate(chartID, name, OBJ_RECTANGLE, subWindow, time1, price1, time2, price2);
result = ObjectCreate(
chartID,
name,
OBJ_RECTANGLE,
subWindow,
time1,
price1,
time2,
price2 //
);
if (!result)
{
return result;
File diff suppressed because it is too large Load Diff