I have read the below In&Out post and found that the condition for exiting the TLT/IEF is not so good.
self.count and self.outday will reset to zero when the server crashes and algorithm restarts.
Is there any way to store the values and ensure the value could be used when the algorithm restart?

		if exit:
            self.bull = False
            self.outday = self.count
        if self.count >= self.outday + wait_days:
            self.bull = True
        self.count += 1