Hello,

I would like to implement a "turn-of-the-month' trading strategy in R.

Given a daily series of stock market return data as a zoo object, the strategy 
would go long (buy) four trading days before the end of the month, and sell the 
third trading day of the following month.

How can I select these days, particularly the fourth day before and the third 
day after the turn of the month, from a zoo object?

Thanks in advance,



John B. Nicholas, Ph.D
650-315-9895

        [[alternative HTML version deleted]]

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to