Skip to content
Prev 11536 / 15274 Next

Stocks outperforming their index

On Mon, Apr 22, 2013 at 3:24 PM, Arturo DiDonna
<arturo.didonna at gmail.com> wrote:
It's fairly canned, but I think

library(quantmod)
? getSymbols # Data retreival
? ROC # Convert Prices to returns
? runMean # running returns

get you there. Of course, you'll need to use > / < operators yourself,
but it's quite easily programmed.

Cheers,
MW