def on_before_trading(self, date_time):
        """开盘的时候检查，如果有持仓，就把持有天数 + 1"""

        if self.cta_call['pos'] > 0:
            self.cta_call['days'] += 1
        if self.cta_put['pos'] > 0:
            self.cta_put['days'] += 1

        self.cta_call['done'] = False
        self.cta_put['done'] = False