I would try this: For each Pending Order -> check age -> close
But remember that if you work under "on Tick", then you will not always get a tick coming exactly 10 seconds after the order. They come when they want, they don't care about time. So if you want precise time, you need to work under "on Timer". It's period can be set from the project settings (the bench icon). But note that "on Timer" does not work in the Tester, because the Tester works with it's generated ticks