HELP HELP HELP HELP ------->>> about ObjectGetValueByTime

 

Hi guys,

I am working with 4 charts at the same time and each chart has own EA's.I attached a regression channel on a sub-window at each chart(for ex. on chart RSI(14)). OBJECTS VALUES have to be used in EA, so the code ----ObjectGetValueByTime----- should be considered. but this function works correctly just for window which is activated on your platform and for all other charts that have been minimized return ZERO values. what is the problem my friends?


notice that the code for main window works correctly but does not work for sub-windows.("main" is a regression channel on 0 window and "rsi" is a regression channel on 1 sub-window)

ObjectGetValueByTime(ChartID(),"rsi",ObjectGet("rsi",OBJPROP_TIME2),0)        ---------->> returns zero value

ObjectGetValueByTime(ChartID(),"main",ObjectGet("main",OBJPROP_TIME2),0) ---------->> returns correct value


 sincerely...

 
I can not get object values of a chart when it is minimized(or deselected chart. do you any idea why does this happen?!!!!!!!!!!!!!!!!!!!