简体   繁体   中英

generating tick data from OHLC using simulations in R

I have a project where I have been asked to use OHLC stock price data to simulate tick data (hourly or minute frequency is my choice) using random number generators and simulation in R. My constraint is that the data should be bound by the Low and High during the day. Which function in R can I use for starting such a project.. I can post code here as I make progress - any suggestions would be very helpful

Here is an example using a uniform distribution.

runif(NUMSAMP, min=LOW, max=HIGH)

Look at ?distribution for ideas on others.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM