self.minutes_after_closing

property Strategy.minutes_after_closing

Get or set the number of minutes that the strategy will continue executing after market closes.

The lifecycle method after_market_closes is executed minutes_after_closing minutes after the market closes. By default, equals to 0 minutes.

Returns:

The number of minutes after the market closes that the strategy will continue executing.

Return type:

int

Example

>>> # Set the number of minutes after the market closes
>>> self.minutes_after_closing = 10
>>> # Set the number of minutes after the market closes to 0 in the initialize method
>>> def initialize(self):
>>>     self.minutes_after_closing = 0