We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
For example
https://github.com/mhallsmoore/qstrader/blob/master/examples/mac_backtest.py
Instead of
def run(config, testing): tickers = ["SP500TR"]
we should have
def run(config, testing, tickers): ... @click.command() @click.option('--config', default=settings.DEFAULT_CONFIG_FILENAME, help='Config filename') @click.option('--testing/--no-testing', default=False, help='Enable testing mode') @click.option('--tickers', default='SP500TR', help='Tickers (use comma)') def main(config, testing, tickers): tickers = tickers.split(",") config = settings.from_file(config, testing) run(config, testing, tickers) if __name__ == "__main__": main()
So it will be possible to test a similar strategy on different tickers without changing code
test_examples.py should be changed accordingly (passing list of tickers to run)
test_examples.py
run
sp500tr_buy_and_hold_backtest.py should be renamed buy_and_hold_backtest.py
sp500tr_buy_and_hold_backtest.py
buy_and_hold_backtest.py
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
For example
https://github.com/mhallsmoore/qstrader/blob/master/examples/mac_backtest.py
Instead of
we should have
So it will be possible to test a similar strategy on different tickers without changing code
test_examples.py
should be changed accordingly (passing list of tickers torun
)sp500tr_buy_and_hold_backtest.py
should be renamedbuy_and_hold_backtest.py
The text was updated successfully, but these errors were encountered: