compute_upside_downside: draw upside trend, downside trend regime of chosen stocks,...

Description Usage Arguments Details Value Examples

View source: R/compute_upside_downside.R

Description

draw upside trend, downside trend regime of chosen stocks, compared to bench mark stock

Usage

1
compute_upside_downside(stock, benchmark)

Arguments

stock

single stock information

benchmark

bench mark stock price user choose

Details

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

Value

plot of computed upside, downside trend of stocks user choose

Examples

1
compute_upside_downside(stock, benchmark_stock)

seungbochoi/private_Rpackage documentation built on May 17, 2019, 12:12 a.m.