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