Description Usage Arguments Details Value Examples
View source: R/compute_upside_downside.R
draw upside trend, downside trend regime of chosen stocks, compared to bench mark stock
1 | compute_upside_downside(stock, benchmark)
|
stock |
single stock information |
benchmark |
bench mark stock price user choose |
this function will take the historical prices of a stock and its benchmark and will do following computations. consider returns only positive and ignore all negative returns: compute an historical track as negative days didn't happen similar function for days as if positive days didn't happen this metric allows to see how much you do better during upside markets and downside markets separately
plot of computed upside, downside trend of stocks user choose
1 | compute_upside_downside(stock, benchmark_stock)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.