Object in indicator causing trouble

 

Suppose I am running indicator_1 in EURUSD chart. The indicator_1 code opens a GBPUSD chart and adds indicator_2 to that chart using ChartIndicatorAdd. The objects in indicator_2 are appeared in EURUSD chart and not GBPUSD. Is it normal behavior? Can I avoid this?

         long chart_id=ChartOpen(symbol,timeframe);
         int handle=iCustom(symbol,timeframe,indicator_name);
         ChartIndicatorAdd(chart_id,1,handle);
 

Problem solved. I added an input like this in indicator_2:

input long                chart_id  = 0;

I pass ChartOpen returned long value to the indicator_2 and all the objects are appended to that chart then...