Description Usage Arguments Value Note References
This function implements the filtering algorithm of Lunde and Timmermann (2004) to identify Bull and Bear states
1 | run_filtering_alg(index)
|
index |
vector containing the stock price index |
A logical vector that contains TRUE for Bull states and FALSE for Bear states
Be aware that the states in the beginning and in the end of "index"
are not properly defined
Lunde, A. and Timmermann, A. (2004). Duration Dependence in Stock Prices: An Analysis of Bull and Bear Markets. Journal of Business and Economic Statistics, 22 (3), 253-273.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.