This is a binomial algorithm which I created in June / July 1990. It is unique in that it has a flowchart which uses the European valuations where appropriate. It is also unique in that the price grid for the underlying stock is calculated as an arithmatic array, and then the exponent function is called to convert to price.
This graph demonstrates the dangers of taking derivitaves of binomial option prices.
The problematic graph was calculated from this graph. Even though the prices of the option appear quite reasonable, the derivative is visably inaccurate.
These are recomended values for the first differences. Note the warning about the sinusoidal pattern in the second derivative for some values of delta S.
This is the definition of the parameter grid.
This describes when to use the European formulae, rather than the American formulae.
This defines a grid of option prices to calculate the derivatives. Fortran style loops are used. For i -1, 1, 2, means loop i, starting at -1, ending at 2, incrementing by 1.
This is the calculation of the differences, to approximate the derivatives.
This copies the derivativs to their output names.
This is the definition of the function S, and European call. An alternative valuation of S is also given.
This is the definition of the function American Call.
This is the definition of the function American Put.
This is the first page of a derivation of calculating a stock grid, given the first 2 moments of the distribution of stock price.
This is the solution of u
.This is the solution of v and phi. There is also alternative statement of the price grid.
.