Time Series Breakout Detection with R


I am time series and I would like to do automated breakout detection on it. I have discovered techniques like MACD which are helpful in visually detecting it. Is there another was to automatically detect regression in R packages or can leverage something that is already there. Since this is not stock data so some of the packages may not exactly suit my needs.

Any help with be appreciated.