TradingView
THE_REAL_BCT
15 окт 2023 г., 19:40

[BCT] Option Pricing via Markov Chain Monte Carlo Simulation 

SPDR S&P 500 ETF TRUSTArca

Описание

Overview:
This script offers a toolkit for quantitative options trading, using Monte Carlo simulations based on actual historical returns to model potential future price paths for underlying assets. A range of metrics related to options trading are also provided.

Monte Carlo Simulations:
The script employs Monte Carlo simulations to model future price paths based on the historical returns of the underlying asset. These simulated paths are represented as parabolas at the 2-sigma, 25th percentile, and median levels for quick reference.

Methodologies:
For calculating options prices at At-the-Money (or any user-selected strike), two methodologies are used:

  • Simple Averaging: Takes the mean of the simulated asset price paths.
  • Kernel Density Estimation (KDE): Applied to the simulated asset price paths to produce a smoothed estimate of its probability density function, thereby aiding in a more nuanced option price calculation.


Bootstrap Resampling:
Bootstrap resampling is specifically applied to the simulated asset price paths to generate an estimate of the standard deviation of the options prices. Note that while bootstrap methods are employed, they serve as statistical tools and do not guarantee statistical reliability.

Metrics Displayed:
*Model-Estimated At-the-Money (or selected strike) Straddle Price
*Model-Estimated At-the-Money (or selected strike) Call Price
*Model-Estimated At-the-Money (or selected strike) Put Price
*Model-Estimated Standard deviation for Option Prices from simulated price paths
*Underlying Monte Carlo Simulation Results (represented as parabolas at the 2 sigma, 25 percentile and median)


This is not financial advice. Use at your own risk.

Disclaimer: Options trading carries a high level of risk and may not be suitable for all investors. This script is intended to serve as an educational tool and should not be considered financial advice. While designed to aid in decision-making, the script's indicators are not guarantees of performance or outcomes. Always conduct your own due diligence before making trading decisions.
Комментарии
TheSiam
Noice
rykno
Awesome work! You could improve it by allowing the user to select 1 of the few kernels typical of a KDE (i.e. rectangular, gauss, etc).
v2_pimpXBT
Noice. supposed to be caps for magnitude effect but lol dei ahh trading view
Ещё