code: def validate(self,
                   _portfolio,
                   account,
                   algo_datetime,
                   _algo_current_data):
          
          if (algo_datetime > self.deadline and
                  account.leverage < self.min_leverage):
              self.fail()
docs: Make validation checks if we are after the deadline.
          Fail if the leverage is less than the min leverage.