Has anyone read this article and thought of coding it?
http://www.investing.com/analysis/the-statistically-best-days-of-the-month-to-trade-200134813
Here is an excerpt:
For the record, since 12/31/1933 [traded on dow jones industrial]:
- $1,000 invested during all “unfavorable” days declined to $87 (-91%)
- $1,000 invested using buy-and-hold grew to $179,562 (+17,856%)
- $1,000 invested during all “favorable” days increased to $2,062,769 (+206,177%)
I think it is interesting. And just curious as to how to code it?
Any advice, remembering to account for days that the market is closed (like public holidays)
Happy Trading.