You can combine the functions FinancialData and FinancialDerivative to price derivatives. For example, to calculate the price of an American put option on the S&P 500, collect the index’s closing values.
FinancialData returns a list of pairs. Each pair represents a date and the closing value of the index on that date. Using FinancialDerivative, you can write a function that calculates the value of an example option on
Mapping the price function onto the data returns a list of the values for the option on each day.
This list, however, does not contain any of the dates that are in the original data. Financial plotting functions such as RenkoChart need these dates to work. Each element in their input must be a pair. The first value must be the date and the last value must be the price of the American option. Take the dates from the original data source by evaluating
sp500[[All, 1] and interleave it with the list of option values using the Transpose function.
RenkoChart can use this as input.
Whether you have a question about billing, activation or something more technical, we are ready to help you.
1-800-WOLFRAM (+1-217-398-0700 for international callers)
8am–5pm US Central Time
- Product registration or activation
- Pre-sales information and ordering
- Help with installation and first launch
Advanced Technical Support (for eligible customers)
8am–7pm US Central Time
8:30–10am & 11am–5pm US Central Time
- Priority technical support
- Product assistance from Wolfram experts
- Help with Wolfram Language programming
- Advanced installation support