//side meterint window=ChartWindowFind();
Print("chart window find ",window); // this finds window1 or window2for(int x=0; x<28; x++)
{
int index=array[x][1];
ObjectCreate(0,array_C[index][0],OBJ_LABEL,window,0,0); //window is the sub window but does not display in both windows , only one windowObjectSet (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]);
}
custom indicator
if I place it twice on a chart it only displays the objectdraw in one of the indicators
how do I get it to display objectdraw in both instances ?
log file: after compiling with 2 instances of indicator running
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
0 00:04:12.725 Custom indicator mctc EURGBP,M5: removed
0 00:04:12.736 Custom indicator mctc EURGBP,M5: loaded successfully
0 00:04:12.752 mctc EURGBP,M5: initialized
0 00:04:13.006 mctc EURGBP,M5: chart window find 1
0 00:04:13.007 mctc EURGBP,M5: uninit reason 2
0 00:04:13.020 Custom indicator mctc EURGBP,M5: removed
0 00:04:13.032 Custom indicator mctc EURGBP,M5: loaded successfully
0 00:04:13.047 mctc EURGBP,M5: initialized
0 00:04:13.220 mctc EURGBP,M5: chart window find 2