Latest news about Bitcoin and all cryptocurrencies. Your daily crypto news habit.
In the last 5â10 years algorithmic trading, or algo trading, has gained popularity with the individual investor. The rise in popularity has been accompanied by a proliferation of tools and services, to both test and trade with algorithms. Iâve put together a list of 9 tools you should consider using for your algo trading process.
Web Services:
The following are managed-services that you can use through web browsers, and donât require much setup from the user. As someone whoâs recently started in this field, I found it easy for new algo traders to try out.
(1) Quantopian:
A Boston-based crowd-sourced hedge fund, Quantopian provides an online IDE to backtest algorithms. Their platform is built with python, and all algorithms are implemented in Python. When testing algorithms, users have the option of a quick backtest, or a larger full backtest, and are provided the visual of portfolio performance.
Live-trading was discontinued in September 2017, but still provide a large range of historical data. They also have a serious community of developers, and periodically hold contests. Quantopian provides capital to the winning algorithm.
(2) QuantConnect:
QuantConnect, is another platform that provides an IDE to both backtest and live-trade algorithmically. Their platform was built using C#, and users have the options to test algorithms in multiple languages, including both C# and Python.
QuantConnect also embraces a great community from all over the world, and provides access to equities, futures, forex and crypto trading. They offer live-trading integration with various names such as InteractiveBrokers, OANDA, and GDAX.
(3) QuantRocket:
QuantRocket is a platform that offers both backtesting and live trading with InteractiveBrokers, with live trading capabilities on forex as well as US equities. Itâs specifically designed for trading with InteractiveBrokers, and sets itself apart with its flexibility.
QuantRocket supports multiple enginesâââits own Moonshot, as well as third party engines chosen by the user. While QuantRocket doesnât have a traditional IDE, it is integrated well with Jupyter to produce something similar. One thing to keep in mind is that QuantRocket is not free. Pricing plans start at 19.99/month USD, with annual options.
Local Backtesting/LiveTrading Engines:
In todayâs software world, you have lots more freedom if you make some effort outside of those managed-services. If you are comfortable this way, I recommend backtesting locally with these tools:
(4) Zipline/Zipline-Live:
Quantopianâs IDE is built on the back of Zipline, an open source backtesting engine for trading algorithms. Zipline runs locally, and can be configured to run in virtual environments and Docker containers as well. Zipline comes with all of Quantopianâs functions, but not all of its data. To balance that, users can write custom data to backtest on. Zipline also provides raw data from backtests, allowing for versatile uses of visualization.
Zipline discontinued live trading in 2017, but there is an open source project Zipline-live that works with Interactive Brokers. It has many of the same features Zipline does, and provides live trading.
(5) BackTrader:
backtrader - Backtesting / Trading
Backtrader is currently one of the most popular backtesting engines available. It was built using python, and has a clean, simple, and efficient interface that runs locally (no Web Interface). One thing to keep in mind, backtrader doesnât come with any data, but you can hook up your own market data in csv and other formats pretty easily.
Starting with release 1.5.0, BackTrader has live-trading capabilities. Itâs been a popular choice with algo traders, especially after Zipline discontinued live trading.
(6) IBPy:
IBPy is an unaffiliated third party python wrapper for InteractiveBrokerâs Trade Workstation API. Before IB started providing their official API library for python, this was the only way to connect to TWS for algorithms written in python.
IB has released an official python SDK, and this library is heading towards begin obsolete(while still being relevant for python2 users). But there still remain a significant number of live trading engines/tools that still use this library, and itâs good learning material for whoever wants to learn about implementing APIâs.
While itâs good to learn about this library since itâs ubiquitous, if you are starting fresh, we recommend IBâs official python SDK.
Alpaca Trade API Python SDK is even much simpler to use!
Analytical Tools:
Back testing will output a significant amount of raw data. Some IDEâs will provide basic visualization and analysis, usually algorithm performance. If youâre looking for deeper evaluation, I recommend these tools:
(7) Pyfolio:
Pyfolio is another open source tool developed by Quantopian that focuses on evaluating a portfolio. What sets Pyfolio apart, is its ability to introduce degrees of uncertainty to a static set of data points, and evaluate Bayesian metrics from the userâs portfolio. The Pyfolio API offers a number of visualizations, which can be found on their GitHub repository.
(8) Alphalens:
Alphalens is also an analysis tool from Quantopian. Unlike Pyfolio, Alphalens works well with the raw data output from Zipline, and rather than evaluate the portfolio, is performance analysis of predictive stock factors. Alphalens has its own range of visualizations found on their GitHub repository.
Median Daily Returns by Factor Quantileâââone of the visualizations that alphalens offers(9)TradingView:
TradingView is a visualization tool with a vibrant open-source community. Itâs entirely web-based, and allows users to visualize data, whether the data is the result of paper trading or algorithmic back-testing. Like Quantopian, TradingView allows users to share their results and visualizations with others in the community, and receive feedback.
(Bonus) Execution Platforms aka Broker-Dealers:
InteractiveBrokers is an online broker-dealer for active traders in general. They have been in the market since 1978. Algo trading isnât IBâs focus, but multiple engines offer live trading through integration with their Trader Workstation. Weâve mentioned IB several times in this articleâââtheyâre just that good!
Finally, Alpaca! Alpaca was founded in 2015, and is an up and coming commission-free, broker-dealer designed specifically for algo trading. Alpaca also has a trade api, along with multiple open-source tools, which include a database optimized for time-series financial data known as the MarketStore.
The brokerage is scheduled to be publicly available this September (you can play around with the MarketStore right now), but if you canât wait, head over to our website and jump on the waitlist for a chance at early access!
Alpaca | Algo Trading Commission Free with REST API
Miscellaneous Tools to Take a Look At:
- qtpylibâââanother simplistic python backtesting engine
- Multichartsâââproprietary trading platform for forex and equities
- WealthLabâââdesktop tool which allows C# backtesting, with live trading exclusive to Fidelity
- Enygma Catalystâââfor crypto trading
- MetaTraderâââbacktesting/livetrading desktop app, de-fact in forex
I hope this quick primer on tools available right now was useful. If you liked it, please leave a clap (or two, I donât mind). If you think there are tools that I missed, leave a comment below! I always appreciate any, and all feedback.
Thanks for reading! If youâre a developer, and believe you can code your way to financial freedom, please support our project âa commission-free brokerage for developersâ by joining the waitlist!
Follow Alpaca on Medium, and @AlpacaHQ on twitter. For exclusive content, keep an eye on the Alpaca Blog.
9 Great Tools for Algo Trading was originally published in Hacker Noon on Medium, where people are continuing the conversation by highlighting and responding to this story.
Disclaimer
The views and opinions expressed in this article are solely those of the authors and do not reflect the views of Bitcoin Insider. Every investment and trading move involves risk - this is especially true for cryptocurrencies given their volatility. We strongly advise our readers to conduct their own research when making a decision.