def __init__(self, cta_engine, strategy_name, vt_symbol, setting):
    ''
    self.position = None
    self.policy = None
    self.gt = None
    self.klines = {}
    self.cur_datetime = None
    self.cur_mi_tick = None
    self.cur_99_tick = None
    self.cur_mi_price = None
    self.cur_99_price = None
    self.last_minute = None
    super(CtaProTemplate, self).__init__(cta_engine, strategy_name, vt_symbol, setting)
    self.position = CtaPosition(strategy=self)
    self.gt = CtaGridTrade(strategy=self)
    if ('idx_symbol' not in self.parameters):
        self.parameters.append('idx_symbol')
    if ('backtesting' not in self.parameters):
        self.parameters.append('backtesting')
def __init__(self, cta_engine, strategy_name, vt_symbol, setting):
    
    self.position = None
    self.policy = None
    self.gt = None
    self.klines = {}
    self.cur_datetime = None
    self.cur_mi_tick = None
    self.cur_99_tick = None
    self.cur_mi_price = None
    self.cur_99_price = None
    self.last_minute = None
    super(CtaProTemplate, self).__init__(cta_engine, strategy_name, vt_symbol, setting)
    self.position = CtaPosition(strategy=self)
    self.gt = CtaGridTrade(strategy=self)
    if ('idx_symbol' not in self.parameters):
        self.parameters.append('idx_symbol')
    if ('backtesting' not in self.parameters):
        self.parameters.append('backtesting')