rMorningStar (version 1.0.6)

ms.GrowthTrack: ms.GrowthTrack

Description

Plots the growth of input amount in a fund

Usage

ms.GrowthTrack(
  ticker,
  growth_amount = 10000,
  benchmark = "^GSPC",
  time_period = c("1m", "3m", "6m", "YTD", "1y", "3y", "5y", "max")
)

Arguments

ticker

Fund TICKER

growth_amount

Amount invested in the fund, Default: 10000

benchmark

Benchmark to compare the fund with, Default: '^GSPC'

time_period

Investment Horizon: c("1m", "3m", "6m", "YTD", "1y", "3y", "5y", "max")

Value

Plots the growth of the investment (Mutua Fund/ETFs) and compares it with provided benchmark

Details

Plots the cumulative groth of the fund in a mutual fund/ETFs and compares it with the input benchmark.

Examples

Run this code
# NOT RUN {
ms.GrowthTrack('FXAIX', time_period = 'YTD')
# }

Run the code above in your browser using DataCamp Workspace