Publications by Milk Trader

Long R, Short Excel

29.10.2009

R is very speedy statistical package that’s like an F-18A Hornet, versus Excel which is like a paper airplane. R is professional sports, Excel is Pop Warner. R is Mona Lisa, Excel is stick figures. R is … okay, you get the idea. I’m long R, and short Excel. For traders that are analyzing vasts amount of data, it’s time you mad...

3581 sym 2 img

Programming a custom Backtest Profile in R

06.01.2010

One of the many issues with systems trading is trying to make sense of the vast amounts of data you accumulate with the backtest of a system. Historical backtesting is the first step in testing your trading idea. If it is a trading idea that ought to work across many different markets, then you need to test it on many different market...

7403 sym 2 img

Intermarket Whac-A-Mole

06.03.2010

Every trader that looks at more than one market throughout the day will recognize that there is a certain symmetrical relationship between certain markets at certain times. The confounding thing about these intermarket relationships is that they are fleeting. Sometimes the Euro dances with the S&P 500, and sometimes Gold butts in. Sta...

4237 sym 8 img

robot (SPX) DNA Management Techniques

18.05.2010

Yes, this is related to trading, but no, it is not my thesis on why the Euro is going to parity. Instead, it is sort of a workshop for robot(SPX) developers on how to organize their digital DNA. As you begin to use programming as a money extraction tool on the markets, you’ll soon find that organizing your implements becomes more th...

4157 sym 2 img

Managing Market Studies in R

21.08.2010

I’m currently working on seasonal studies for various markets and have decided it’s high time I got an organized workflow established. How does sugar behave in August every year? Is it random or are there some fundamental drivers that coerce its behavior? How about gold, silver and the gold/silver ratio? Or crude, heating oil and ...

4526 sym 2 img

White Bull, An Algorithm in R

11.12.2010

Algorithms are curious creatures. They behave in a very predictable way. They do as they are told and do it the same way every time. What they lack in imagination, they make up in reliability. You cannot talk an algorithm into saying something it’s not programmed to say, and it will not offer you two sides to every story. No, these ...

2273 sym R (1991 sym/2 pcs) 2 img

White Bumblebee Implemented in R

18.12.2010

White Bumblebee is a trade system based on a simple moving average crossover, but with a special twist. Imagine your thermostat triggering your furnace to shut off or turn on every time a temperature crossed a threshold. If the thermostat didn’t have a buffer built in, you’d wear out your furnace with too many on/off cycles. I’m...

1947 sym R (776 sym/4 pcs) 2 img

Twos and Tens in Four Lines

09.02.2011

To chart the spread between 2-Year treasury yields and 10-Year treasury yields,  please type the simple code listed below into your R console. That is all, carry on as you were.require(quantmod) getSymbols(c("DGS10", "DGS2"), src="FRED") Ten_Two <- DGS10-DGS2 chartSeries(Ten_Two) Related To leave a comment for the author, please...

583 sym R (107 sym/1 pcs) 2 img

My R setup with Mac OS X

22.02.2011

The eco-system of R is largely Ubuntu and SVN, so Mac users sometimes find themselves a bit out of place, shall we say. But let’s not bad high-school memories about not being in the in-crowd keep us from participating in the R world. With just a little setup, you can bring your own flair to writing code in R. Getting R Packages on Y...

4289 sym 4 img

money is coin $ flip

07.03.2011

Well, sorta. More precisely, money is the sum of coin$flip divided by the number of coin$flip. But we’ll get to that later. For now, let me introduce you to a new algorithm written in R. This one is another “quote” — simple few lines of code — whose theme you can expand to include something more interesting than what I’m p...

1595 sym R (576 sym/1 pcs) 2 img