last works on Testing XPivot and XZone structures in test ea ...
This commit is contained in:
@@ -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;
|
||||
|
||||
+874
-164
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user