Publications by kafka

R package Blotter

06.04.2010

How many times have you been disappointed by nice trading system, because neither trading cost or slippage or bid/ask spread were included into back-test results? Did you find difficult to back-test a portfolio in R or many portfolios with different stocks? Blotter package is supposed to solve these problems. In really – it is complicated. I sp...

1672 sym R (2087 sym/4 pcs) 2 img

Intraday volatility of OMX Baltic stocks

16.08.2010

Usually, intraday volatility exhibits a “smile” – it is high at open and close and it is lower during the trading day. DJI index, 5 min. intervals, CET time: MOS stock, 5 s. intervals, CET time: Because many readers of this blog are trading Nasdaq OMX Baltic stocks, it is worth to share my findings about volatility in these markets. It...

1505 sym 24 img

Mean reverting strategies and volatility

27.09.2010

Mean reverting strategies are beating on mean reversion of the prices. There are various flavors of mean reverting strategies, but as a proxy I chose RSI(2). You can find many entries on blogosphere about this strategy, but nowadays its popularity dried up. What made me wondering is that there was an idea about correlation between return of such ...

2747 sym 4 img 1 tbl

Millionaire’s advice

02.10.2010

Viktor Uspaskich is euro-parliamentarian delegated by Lithuania. His was born in Russia, Arkhangelsk Oblast and later on he moved to Lithuania where he made his fortune and first millions. Recently, I saw an interview with him and I found interesting to test his claim, that  gold and oil are negatively correlated. Meaning that, when the price of...

1983 sym 6 img

3 weak days in a row

06.12.2010

Recently, Trading the odds posted one of many flavors of mean reverting strategies and I decided to get my hands dirty by writing R code and testing it. You can find full description of the strategy by following latter link above. Long story short – if SPY shows lower open, high and close 3 days in a row, then buy on the close of third day and ...

1633 sym R (4013 sym/2 pcs) 4 img

Interesting volatility measurement

10.12.2010

Long time ago I stumbled across interesting volatility measurement at quantifiableedges.blogspot.com. The idea is following: take 3-day historical volatility of S&P 500 index and divide that by 10-day historical volatility. Then mark all points which are less that 0.25 and measure the volatility of 3 following days. On average, the volatility of...

1293 sym R (655 sym/1 pcs) 1 tbl