13.08.2022 Views

advanced-algorithmic-trading

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

418

@click.option(

’--testing/--no-testing’,

default=False, help=’Enable testing mode’

)

@click.option(

’--tickers’,

default=’SP500TR’, help=’Tickers (use comma)’

)

@click.option(

’--filename’,

default=’’, help=’Pickle (.pkl) statistics filename’

)

def main(config, testing, tickers, filename):

tickers = tickers.split(",")

config = settings.from_file(config, testing)

run(config, testing, tickers, filename)

if __name__ == "__main__":

main()

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!