Learn R Programming

TTR (version 0.24.4)

ttrc: Technical Trading Rule Composite data

Description

Historical Open, High, Low, Close, and Volume data for the periods January 2, 1985 to December 31, 2006. Randomly generated.

Arguments

Format

The format is:

Date:Class 'Date'5480 5481 5482 5485 5486 ...
Open:num3.18 3.09 3.11 3.09 3.10 ...
High:num3.18 3.15 3.12 3.12 3.12 ...
Low:num3.08 3.09 3.08 3.07 3.08 ...
Close:num3.08 3.11 3.09 3.10 3.11 ...
Volume:num1870906 3099506 2274157 2086758 2166348 ...

Details

These data do not represent an actual security. They are provided so examples do not necessitate an internet connection.

Examples

Run this code

 data(ttrc)
 plot(tail(ttrc[,"Close"],100), type="l")

Run the code above in your browser using DataLab