There are some statistical definitions which can be calculated over history of stored data in database.
For Symbols data in the database, we need the following numbers to be calcualted and stored in some other table:
Average Trade Price
Last Price
You should create a base platform for running Jobs which can be scheduled beforehand, e.g:
Calculate Average Trade Price after market close every day (5 PM every day)
Calculate Last Price at 14:00 every day
You can search for "cron jobs" or "cron expressions" to know more. In fact a Cron Expression provides enough flexibility to support any scheduling scenario. The position of this worker relative to other services is displayed in the solution diagram.