def __init__(self, cta_engine: Any, strategy_name: str, vt_symbol: str, setting: dict):
    ''
    self.cta_engine = cta_engine
    self.strategy_name = strategy_name
    self.vt_symbol = vt_symbol
    self.inited = False
    self.trading = False
    self.pos = 0
    self.entrust = 0
    self.tick_dict = {}
    self.active_orders = {}
    self.variables = copy(self.variables)
    self.variables.insert(0, 'inited')
    self.variables.insert(1, 'trading')
    self.variables.insert(2, 'pos')
    self.variables.insert(3, 'entrust')
def __init__(self, cta_engine: Any, strategy_name: str, vt_symbol: str, setting: dict):
    
    self.cta_engine = cta_engine
    self.strategy_name = strategy_name
    self.vt_symbol = vt_symbol
    self.inited = False
    self.trading = False
    self.pos = 0
    self.entrust = 0
    self.tick_dict = {}
    self.active_orders = {}
    self.variables = copy(self.variables)
    self.variables.insert(0, 'inited')
    self.variables.insert(1, 'trading')
    self.variables.insert(2, 'pos')
    self.variables.insert(3, 'entrust')