The first assumption is correct, so when you trade forex only, you need not use dayOpen.
Aside from that, your above code is ok - you only must take care not to request prices that lie in the future. So use the Open of the previous day only - dayOpen(UTC,1) - when the current bar has a local time before 9:30.