In Marcos Lopez de Prado’s 2018 book, Advances in Financial Machine Learning, the author proposes a system for calculating labels for financial events based on the precipitation of events followings a list of event dates. These labels are typically members of the set {-1, 0, 1}, and are ideal for fitting machine learning classification models. […]
Calculating Financial Performance Metrics in Pandas
I just finished writing my latest book, Algorithmic Trading with Python. When writing the chapter on performance metrics, I was consistently surprised with the simplicity of the pandas code. If you, as a developer, resolve to only work with datetime-indexed pd.Series objects, the resulting code is really clean and easy. Simulating Data For those unfamiliar […]
Moving from Single-Asset to Multi-Asset Algorithmic Trading
In my latest book, Algorithmic Trading with Python (2020), readers work through the process of developing a trading strategy, simulator, and optimizer against a portfolio of 100 assets. Each asset has 10 years of end-of-day data, creating about 2,500 data points per asset, totaling 250,000 data points. A lot of similar work in this field […]
Activate Verbose Logging Output in Django
When you are developing Django, you likely want the most verbose debugging output possible. Django uses the logging levels defined by Python logging module, and defines the logging style in a Python dictionary in settings.py. Read more about Django logging. Example Logging Configuration My favorite logging configuration is to dump the most verbose output possible […]
The Haskell Stack Ecosystem in 30 Seconds Or Less
While I am not an avid Haskell developer, there are some useful software suites (e.g. Pandoc) that are built on it. When managing dependencies for a distributed cloud environment, it is important to have a secure and replicable means of installing Haskell packages with tons of dependencies. So, I went about investigating the relationships between […]
- « Previous Page
- 1
- 2
- 3
- 4
- …
- 8
- Next Page »