I am pleased to say that I have finally got this sorted out. Such a simple problem. I assure you that I am brighter than this. Thanks for your patience. You are right in your second statement. I don't want the offset from yesterday's open. And since yesterday's close is about the same as today's open in 24h and intraday markets, I can use yesterday's close.