500 search results for "trading"

Predictability of stock returns : Using acf()

October 27, 2011
By
Predictability of stock returns : Using acf()

In my previous post, I employed a rather crude and non-parametric approach to see if I could predict the direction of stock returns using the function runs.test(). Lets go a step further and try modelling this with a parametric econometric approach. The company that I choose for the study is INFOSYS (NSE code INFY). Lets start...

Read more »

How to compute portfolio returns badly

October 24, 2011
By
How to compute portfolio returns badly

For those who naturally compute portfolio returns correctly here are some lessons in how to do it wrong. The data Random portfolios were generated from constituents of the S&P 500 with constraints: long-only exactly 20 assets in the portfolio no more than 10% weight for any asset (just for fun) the sum of the 5 … Continue reading...

Read more »

Backtesting Part 4: random strategies

October 21, 2011
By
Backtesting Part 4: random strategies

Note: This post is NOT financial advice!  This is just a fun way to explore some of the capabilities R has for importing and manipulating data.   In part 2, we found that our 200-day high, hold 100 days strategy yielded average annual return...

Read more »

R. I. P. EMA

October 19, 2011
By
R. I. P. EMA

That’s right, I am moving away from exponential moving averages. Originally, I decided to use them somewhat arbitrary, probably because they tend to swing faster. Last night, after spending two and half hours debugging an issue which yet again turned out to be a particular property of these averages, I made my mind. I am

Read more »

The R-Files: Paul Teetor

October 19, 2011
By
The R-Files: Paul Teetor

"The R-Files" is an occasional series from Revolution Analytics, where we profile prominent members of the R Community. Name: Paul Teetor Profession: Quantitative developer (freelance) Nationality: American Years Using R: 7 Known for: Author of R Cookbook (O’Reilly Media, 2011) An active member of the R community, Paul Teetor is a quantitative developer and statistical consultant based in the...

Read more »

Free auditing of Stanford AI and Machine Learning Courses w/Peter Norvig

October 14, 2011
By
Free auditing of Stanford AI and Machine Learning Courses w/Peter Norvig

Just wanted to notify viewers of a few great courses that are being offered free for auditing and/or participation by well known industry experts, including co-author of the classic text on AI, 'Artificial Intelligence: A Modern Approach,' Peter Norvig...

Read more »

Spatiotemporal Data Mining: 2

October 6, 2011
By
Spatiotemporal Data Mining: 2

There are many visual methods used to identify patterns in space and time. I've discussed some in prior threads and will show a few others briefly here. One of the most difficult questions I often hear from others regarding markov type approaches, is...

Read more »

Jeff Augen Volatility Spike Code in R

October 2, 2011
By
Jeff Augen Volatility Spike Code in R

Jeff Augen has written many excellent books on options trading, including&nb...

Read more »

Difficult Month for One of My Best Ideas

September 30, 2011
By
Difficult Month for One of My Best Ideas

THIS IS NOT INVESTMENT ADVICE.  MY IDEAS PROBABLY WILL LOSE YOU MONEY, AND I WILL NOT LET YOU KNOW WHEN I CHANGE MY MIND. Bloomberg’s article “Asian Currencies Set for Worst Month Since 1997 Crisis Caused IMF Bailouts” demonstrates why with ...

Read more »

ttrTests This is a Test–Test 1 and Test 2

September 28, 2011
By
ttrTests This is a Test–Test 1 and Test 2

Just to remind everyone, THIS IS NOT INVESTMENT ADVICE AND ANY ACTIONS TAKEN BASED ON THIS DISCUSSION WILL PROBABLY RESULT IN SIGNIFICANT LOSSES. We had fun with the ttrTests package in two previous posts ttrTests: Its Great Thesis and Incredible Poten...

Read more »