def init(context):
    context.S1 = '510500.XSHG'
    context.UNIT = 10000
    context.INIT_S = 2
    context.MARGIN = 0.08
    context.FIRST_P = 0
    context.holdid = 0
    context.sellcount = 0
    context.inited = False
    logger.info('RunInfo: {}'.format(context.run_info))
def init(context):
    context.S1 = '510500.XSHG'
    context.UNIT = 10000
    context.INIT_S = 2
    context.MARGIN = 0.08
    context.FIRST_P = 0
    context.holdid = 0
    context.sellcount = 0
    context.inited = False
    logger.info('RunInfo: {}'.format(context.run_info))