How to get open price for specific bar at specific time??

 
Dear All, I'm trying to get the open price for a bar at time 21:00:00 of each day, can I know is there any specific function to get this value? Or we need to create the code on our own? I tried it with an IF loop, but when i run the back test on the tick mode, i will miss out some days, because there's no tick happening at 21:00:00 for those days, so the program doesn't run itself. Please help..... Thank you.....
Reason: