rTrade | R Documentation |
Simulate stock trade data with assumption that the stock price following Geometric Brownian Motion (GBM).
rTrade(time, start = 100, mu = 1e-04, sigma = 2e-04)
time |
time vector of time, must be a "Date" type variable |
start |
the start position |
mu |
the |
sigma |
the |
Stock trade data with Open, High, Low and Close
date <- as.Date("2015-01-01") + days(0:29) rTrade(date)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.