Join Now or Login or connect with

Trading Software Trading objects Features Blog Search

Black-Scholes Option Pricing Model formula

by The trader, 388 days ago
Share |

This is a custom formula that calculates the put and call prices of European style options.

This Black-Scholes Option Pricing Model function accepts six parameters.
The first parameter is used to specify whether we want to calculate a put or a call, set 'p' for put and 'c' for call.
The others parameters are: Security price, strike price, years to maturity (if it is for example 6 month, then set '0.5'), risk-free rate and volatility.

The function calculates for each bar, the option price of a put or a call given the above parameters.
Set the Price parameters to 'close'.
For the volatility I usually use the following formula: Stddev(close, 30) * sqrt(1 / 12), that is the annualized historical volatility.
I used here the standard deviation for the past 30 days and then annualized the result.

If you set your formula to something like:
a = BlackScholes('c', close, 30, 0.25, 0.06, Stddev(close, 30) * sqrt(1 / 12)); // Option pricing formula
Plot(a, 'Pricing', colorBlack, chartLine, styleOwnScale);

The chart will display the option price of a call with a strike price of 30, 3 months to maturity, and 6% as risk-free rate.
Note: For each bar the number of days to maturity is constant and thus this is not the price of the call over time.

I use this function to create custom outputs to simulate option strategies.
For example, when I analyze a list of rules, instead of buying the stock, I use this formula to simulate a call or put buy or any other combination.

Note: this Black and Scholes formula should be modified in order to be able to calculate American style options.
Note also that this Option pricing model doesn't take dividends into account.


Share This ->
Share |


You have to log in to bookmark this object
What is this?
Additional Information





Related Trading Objects



Country
Page 1
Wilder Volatility Index - Average True ..
by Brian Brown, uploaded one month ago
No notes

Rate an item Rate an item Rate an item Rate an item Rate an item Number of downloads 4 Notes Report an item
Wilder Volatility Index - Average True ..
by Brian Brown, uploaded one month ago
No notes

Rate an item Rate an item Rate an item Rate an item Rate an item Number of downloads 1 Notes Report an item
Geometric Moving Average Indicator
by Brian Brown, uploaded one month ago
No notes

Rate an item Rate an item Rate an item Rate an item Rate an item Number of downloads 0 Notes Report an item
Number of reviews
Click to add a review
Average rate
Click to rate this item
Number of times this object was downloaded
Number of rates the current object received
Report an object
if you can't run it for example or if it contains errors
Click to report this object






Market
Page 1
Fibonacci Trading Indicator - Support a..
by QuantShare, uploaded today
No notes

Rate an item Rate an item Rate an item Rate an item Rate an item Number of downloads 0 Notes Report an item
Fibonacci Trading with the Retracement ..
by QuantShare, uploaded yesterday
No notes

Rate an item Rate an item Rate an item Rate an item Rate an item Number of downloads 0 Notes Report an item
Williams AD - Accumulation Distribution..
by QuantShare, uploaded one week ago
No notes

Rate an item Rate an item Rate an item Rate an item Rate an item Number of downloads 1 Notes Report an item
Number of reviews
Click to add a review
Average rate
Click to rate this item
Number of times this object was downloaded
Number of rates the current object received
Report an object
if you can't run it for example or if it contains errors
Click to report this object






Style
Page 1
Fibonacci Trading Indicator - Support a..
by QuantShare, uploaded today
No notes

Rate an item Rate an item Rate an item Rate an item Rate an item Number of downloads 0 Notes Report an item
Fibonacci Trading with the Retracement ..
by QuantShare, uploaded yesterday
No notes

Rate an item Rate an item Rate an item Rate an item Rate an item Number of downloads 0 Notes Report an item
Williams AD - Accumulation Distribution..
by QuantShare, uploaded one week ago
No notes

Rate an item Rate an item Rate an item Rate an item Rate an item Number of downloads 1 Notes Report an item
Number of reviews
Click to add a review
Average rate
Click to rate this item
Number of times this object was downloaded
Number of rates the current object received
Report an object
if you can't run it for example or if it contains errors
Click to report this object






Reviews
You must log in first

Join now
and get instant access for free to the trading software, the Sharing server and the Social network website.
Click here


Related objects
Show All
Buy Indicator (by bug man, uploaded several months ago)
No notes

Rate an item Rate an item Rate an item Rate an item Rate an item Number of downloads 56 Notes Report an item
Swing Index Indicator (by The trader, uploaded several months ago)
No notes

Rate an item Rate an item Rate an item Rate an item Rate an item Number of downloads 20 Notes Report an item
Yahoo EOD historical quotes (by QuantShare, uploaded several months ago)
No notes

Rate an item Rate an item Rate an item Rate an item Rate an item Number of downloads 417 Notes Report an item
Historical Quotes for Delisted US Stocks (by QuantShare, uploaded several months ago)
No notes

Rate an item Rate an item Rate an item Rate an item Rate an item Number of downloads 45 Notes Report an item
Relative strength index multiple-length (by The trader, uploaded several months ago)
No notes

Rate an item Rate an item Rate an item Rate an item Rate an item Number of downloads 21 Notes Report an item
Trading rules using the VIX Index (by The trader, uploaded several months ago)
No notes

Rate an item Rate an item Rate an item Rate an item Rate an item Number of downloads 20 Notes Report an item
Financial fundamental data for US companies (by Patrick Fonce, uploaded several months ago)
No notes

Rate an item Rate an item Rate an item Rate an item Rate an item Number of downloads 22 Notes Report an item
Number of reviews
Click to add a review
Average rate
Click to rate this item
Number of times this object was downloaded
Number of rates the current object received
Report an object
if you can't run it for example or if it contains errors
Click to report this object

Technical Analysis


Fundamental Analysis


Random Objects

  3 0 0 - Individual stocks put and call volume
  3 0 0 - Vilnius, Tallinn and Riga stock exchanges
  2 0 0 - Historical Stock Quotes Data for more than 50 Exchanges
  4 0 0 - NSE Board Meetings
  3 0 0 - TFS MBO
  3 0 0 - Cumulative New High/Low Line
  3 0 0 - Long strategy created with the money management tool
  4 0 0 - Producer Price Index - PPI
  5 0 0 - Treasury Bills Data
  0 0 0 - US Historical Quotes from NASDAQ website
More trading objects...


Recent Posts

Pivot Tables in QuantShare Trading Software
Posted 9 days ago

How to create market indicators using the composite function - Part 1
Posted 17 days ago

Optimize a trading strategy using the Sharpe ratio
Posted 24 days ago

How to create a trading indicator that uses stock news
Posted 31 days ago

How to create your own technical analysis indicators
Posted 38 days ago

Show All

Number of reviews
Click to add a review
Average rate
Click to rate this item
Number of times this object was downloaded
Number of rates the current object received
Report an object
if you can't run it for example or if it contains errors
Click to report this object


contactus
About | Privacy | Terms of Use | Manual
Copyright © 2010 QUANTSHARE.COM