objectcreate does not show in 2 instances of custom indicator

 

objectcreate does not show in 2 instances of custom indicator


log  with 2 instances after compiling

00:00:18.605 mctc EURGBP,M5: uninit reason 2

0 00:00:18.621 Custom indicator mctc EURGBP,M5: removed

0 00:00:18.633 Custom indicator mctc EURGBP,M5: loaded successfully

0 00:00:18.649 mctc EURGBP,M5: initialized

0 00:00:18.909 mctc EURGBP,M5: chart window find  1

0 00:00:18.909 mctc EURGBP,M5: uninit reason 2

0 00:00:18.923 Custom indicator mctc EURGBP,M5: removed

0 00:00:18.934 Custom indicator mctc EURGBP,M5: loaded successfully

0 00:00:18.949 mctc EURGBP,M5: initialized

0 00:00:19.125 mctc EURGBP,M5: chart window find  2

0 00:00:32.450 mctc EURGBP,M5: uninit reason 2

0 00:00:32.464 Custom indicator mctc EURGBP,M5: removed

0 00:00:32.490 Custom indicator mctc EURGBP,M5: loaded successfully

0 00:00:32.505 mctc EURGBP,M5: initialized

0 00:00:32.770 mctc EURGBP,M5: chart window find  1

0 00:00:32.771 mctc EURGBP,M5: uninit reason 2

0 00:00:32.785 Custom indicator mctc EURGBP,M5: removed

0 00:00:32.796 Custom indicator mctc EURGBP,M5: loaded successfully

0 00:00:32.811 mctc EURGBP,M5: initialized

0 00:00:32.989 mctc EURGBP,M5: chart window find  2

0 00:03:36.137 mctc EURGBP,M5: uninit reason 2

0 00:03:36.152 Custom indicator mctc EURGBP,M5: removed

0 00:03:36.170 Custom indicator mctc EURGBP,M5: loaded successfully

0 00:03:36.185 mctc EURGBP,M5: initialized

0 00:03:36.441 mctc EURGBP,M5: chart window find  1

0 00:03:36.441 mctc EURGBP,M5: uninit reason 2

0 00:03:36.455 Custom indicator mctc EURGBP,M5: removed

0 00:03:36.466 Custom indicator mctc EURGBP,M5: loaded successfully

0 00:03:36.483 mctc EURGBP,M5: initialized

0 00:03:36.659 mctc EURGBP,M5: chart window find  2

0 00:04:12.711 mctc EURGBP,M5: uninit reason 2



//side meter
int window=ChartWindowFind();
Print("chart window find  ",window);
for(int x=0; x<28; x++) 
   {
int index=array[x][1];   

ObjectCreate(0,array_C[index][0],OBJ_LABEL,window,0,0);
ObjectSet   (array_C[index][0],OBJPROP_CORNER,1);
ObjectSet   (array_C[index][0], OBJPROP_XDISTANCE,25);
ObjectSet   (array_C[index][0], OBJPROP_YDISTANCE, x*12  );
ObjectSetText(array_C[index][0], array_C[index][0]+"  "+NormalizeDouble(array[x][0],0)   ,7,"Veranda", culor[ index ]  );
//Print (x," ",array_C[index][0]);

}
 
 

the first time I posted it said there was a error try again later , so I posted again. not my fault it come up twice.

 
Desmond Wright:

objectcreate does not show in 2 instances of custom indicator


log  with 2 instances after compiling

00:00:18.605 mctc EURGBP,M5: uninit reason 2

0 00:00:18.621 Custom indicator mctc EURGBP,M5: removed

0 00:00:18.633 Custom indicator mctc EURGBP,M5: loaded successfully

0 00:00:18.649 mctc EURGBP,M5: initialized

0 00:00:18.909 mctc EURGBP,M5: chart window find  1

0 00:00:18.909 mctc EURGBP,M5: uninit reason 2

0 00:00:18.923 Custom indicator mctc EURGBP,M5: removed

0 00:00:18.934 Custom indicator mctc EURGBP,M5: loaded successfully

0 00:00:18.949 mctc EURGBP,M5: initialized

0 00:00:19.125 mctc EURGBP,M5: chart window find  2

0 00:00:32.450 mctc EURGBP,M5: uninit reason 2

0 00:00:32.464 Custom indicator mctc EURGBP,M5: removed

0 00:00:32.490 Custom indicator mctc EURGBP,M5: loaded successfully

0 00:00:32.505 mctc EURGBP,M5: initialized

0 00:00:32.770 mctc EURGBP,M5: chart window find  1

0 00:00:32.771 mctc EURGBP,M5: uninit reason 2

0 00:00:32.785 Custom indicator mctc EURGBP,M5: removed

0 00:00:32.796 Custom indicator mctc EURGBP,M5: loaded successfully

0 00:00:32.811 mctc EURGBP,M5: initialized

0 00:00:32.989 mctc EURGBP,M5: chart window find  2

0 00:03:36.137 mctc EURGBP,M5: uninit reason 2

0 00:03:36.152 Custom indicator mctc EURGBP,M5: removed

0 00:03:36.170 Custom indicator mctc EURGBP,M5: loaded successfully

0 00:03:36.185 mctc EURGBP,M5: initialized

0 00:03:36.441 mctc EURGBP,M5: chart window find  1

0 00:03:36.441 mctc EURGBP,M5: uninit reason 2

0 00:03:36.455 Custom indicator mctc EURGBP,M5: removed

0 00:03:36.466 Custom indicator mctc EURGBP,M5: loaded successfully

0 00:03:36.483 mctc EURGBP,M5: initialized

0 00:03:36.659 mctc EURGBP,M5: chart window find  2

0 00:04:12.711 mctc EURGBP,M5: uninit reason 2



Use different names for objects in different instances
 

thanks buddy , done as you suggested , working now :)