Problem in Defining custom Symol

 

hi

i tried to create some  custom symbols with comparing all currency related  TO USD and defining synesthetic  formula .

but i have a problem.

at higher time frame chart display candles with gap shift and chart doesn't change with moving shift at end of chart.

following picture show result and problem