please help me with daily pivot and 4 hour chart! they do not work correctly.

 
i made a daily pivot with offset that works with 1 hour and under. but when i switch to the 4 hr chart, it becomes inaccurate because if i off set the time zone by 2 hours, the pivot calculator is trying to reference the high low close of the 4 hr chart instead of the 1 HR chart. does anyone know how i can do an array of ONLY the 1 hr chart no matter which chart i put the indicator on?

for example, the 4 hr candle is from 0:00 to 4:00. i offset the time for the pivot to +2. currently i use the array in the form of high[i] and it get the high of the 4 hour candle instead of the high of the candle at 2:00.

please help me,its driving me nuts.