Hi,

I am deploying an live algo (using alpha framework) that only analyzes closing prices at 4:00pm (market close) once a day. Based on my analysis at 4:00pm, I will be placing market-on-open orders immediately for the next morning.

To achieve this, I am using the minute resolution and has the following in the Update() method inside my alpha model:

class MyAlphaModel(AlphaModel):

	def Update(self, algorithm, data):
		# at market close
		if algorithm.Time.hour == 16 and algorithm.Time.minute == 0:
			# analysis goes here
			...
	

Given my goal, is this the best way to do it both in backtesting and live mode? Would love to know about the best practices here. Thanks in advance.