risk_of_price_change: Compute risk of price change

Description Usage Arguments Value Examples

Description

This function compute possible minimum and maximum prices of stock in given period of time. Function simulate a 10^4 of random trajectories for stock marked prices of chosen asset, take maximums and minimums from each trajectory and return quantiles from this vectors. Moreover function on its own is providing data from google finance. Stochastic process which is used in function to modeling future prices is a Black Scholes model. Simulation values are aproximations of process:
dX_t = a * X_t dt + sigma * X_t dW_t ,
where W is a standard Wiener process.
Function has additional assumption that "a" is equal to 0, because in risk management it is a more secure approach.

Usage

1
risk_of_price_change(symbol, days, significance_level, price_type = "close")

Arguments

symbol

Symbol of a stock exchange data.

days

Number of days for which simulation is to be performed.

significance_level

Chosen significance level. Commonly it is set on 0.05.

price_type

Type of price : "close" or "open".

Value

A frame contains actual_price, predicted max_possible_price and min_possible_price values for given period of future time.

Examples

1
2
risk_of_price_change("YHOO",100,0.05)
risk_of_price_change("GOOG",100,0.05,"open")

mrepsilon/PawelKawskiPackage documentation built on May 21, 2019, 2:22 p.m.