4 ms·
You've mentioned you wrote your trading bots in Python, how does one go about doing that? If I write a script that executes buys/sells via an api, I still need
by le-mark 9y ago
You've mentioned you wrote your trading bots in Python, how does one go about doing that? If I write a script that executes buys/sells via an api, I still need to periodically get market data, build candle stick charts (or whatever) and calculate moving averages (or whatever) to then decide to buy and/or sell.
Then to back test, you have to do all that, not with an api, but against and data from a flat file or whatever. I guess you could do it by hand for awhile, but that would certainly become tedious.
It's actually quite complex. Would you recommend anything to read to get started building trading bots?
- SirLJ 9y agoYou'll have to start the other way around: start testing ideas using the back data and in the end you'll have not only the test to prove the theory, but the algo written as well... The automation after that is easy, the current data is not a problem either, you can get it trough the API from your discount broker, here are the docs for Interactive Brokers for example: https://www.interactivebrokers.com/en/index.php?f=5041 https://www.interactivebrokers.com/en/index.php?f=5041