Category Archives: Programming

The Bear is Here

October and December have been devastating for stocks. It wasn’t until Friday though that we officially reached the depths of a bear market.

Read More

Package Paths in R

Recently, while working on the Azure Data Lake R extension, I had to figure out a good way to create a zip file containing a package together with all its dependencies. This came down to understanding where does R store and search for packages. Despite the documentation, it did require additional reading and experimentation.

Read More

Markets Performance after Election

Coming back to markets and trading (after a while), the feeling has been that the markets, and the economy as a whole, are doing good. How good? Since I haven’t been following things closely, I had to do some forensics.

Read More

Backtesting – Tool Review

Backtesting – the pillar of trading and investing. I know what all the naysayers say, but with all due respect, they got this one wrong. 🙂 In finance, and in time series in general, history repeats itself. Natural phenomena follow patterns, so does crowd behavior. Earth temperatures are not going to rise forever, so wouldn’t the current bull market. Enough rambling though.

My readers know that my main tool for backtesting has been Tradelib, a Java library which I have developed and used over the past couple of years. Working on some new (or rather old) project, I decided to take another look what’s around, and the results surprised me.
Read More

Deep Learning for the Walk-Forward Loop

In the previous posts in these series (here, here and here) I used conventional machine learning to forecast the trading opportunities. Lately however I have been trying to move more and more towards deep learning. My first attempt was to extend the walk-forward loop to support neural networks, the building blocks of deep learning.

Read More