MT4 code needed (open price of daily bar)

i am trying to make an indicator but have come to a problem. i need to get hold of the open price of todays daily bar, I know Open[] will do it, but the indicator is working on a 15 min chart not a daily chart. so i need to reference the open price of the current bar on the daily chart (i.e. todays daily bar), while having the 15 min chart selected.

its probably very simple code but i havent managed to work it out yet.

hmmm ok sorted it now