Skip to content
New issue

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

how to buy and sell in backtest? #48

Open
graceyangfan opened this issue Jul 21, 2021 · 1 comment
Open

how to buy and sell in backtest? #48

graceyangfan opened this issue Jul 21, 2021 · 1 comment

Comments

@graceyangfan
Copy link

I am a newer in quant,I see that when you do a live trading, the code use buy method from ccxt, so when doing a backrest, which buy method should I use,the method from ccxt or backtrader.These method in ccxt and backtrader have different parameters,so it means I should write two different version for backtest and live trading?

@donjonson
Copy link

I have not yet used this backtrader add on so I really dont know what I am talking about but I would reccomend not using the ccxt module in a backtest. you dont need to pull the data from your broker if your not trading live

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants