intro_zipline/winners.py
def initialize(context):
    """
    Called once at the start of a backtest, and once per day at
    the start of live trading.
    """
    # Attach the pipeline to the algo
    algo.attach_pipeline(make_pipeline(), 'pipeline')

    algo.set_benchmark(algo.sid('FIBBG000BDTBL9'))

    # Rebalance every day, 30 minutes before market close.
    algo.schedule_function(
        rebalance,
        algo.date_rules.every_day(),
        algo.time_rules.market_close(minutes=30),
    )

    Called once at the start of a backtest, and once per day at
    the start of live trading.
    
Called once at the start of a backtest, and once per day at
the start of live trading.
Called once at the start of a backtest and once per day at the start of live trading .
def initialize(context):
    algo.attach_pipeline(make_pipeline(), 'pipeline')
    algo.set_benchmark(algo.sid('FIBBG000BDTBL9'))
    algo.schedule_function(
        rebalance,
        algo.date_rules.every_day(),
        algo.time_rules.market_close(minutes=30),
    )
def initialize ( context ) : algo . attach_pipeline ( make_pipeline ( ) , 'pipeline' ) algo . set_benchmark ( algo . sid ( 'FIBBG000BDTBL9' ) ) algo . schedule_function ( rebalance , algo . date_rules . every_day ( ) , algo . time_rules . market_close ( minutes = 30 ) , )
Called once at the start of a backtest, and once per day at
the start of live trading.
Called once at the start of a backtest and once per day at the start of live trading .
"""
    Called once at the start of a backtest, and once per day at
    the start of live trading.
    """ # Attach the pipeline to the algo # Rebalance every day, 30 minutes before market close.
context