OPEN-SOURCE SCRIPT
Mis à jour

Realized Variables for Options Comparison

3283
These variables can be used in comparison with the implied volatility of options.

Variables:

Realized Volatility
mathematical notation lowercase 'sigma'

Realized Variance
mathematical notation lowercase 'sigma' squared

Realized Beta
mathematical notation lowercase 'beta'


Timeframes:
Yearly = 250 or 365
Quarterly = 50 or 90
Monthly = 20 or 30


Important Note:

Options Contract Expiry = barmerge.lookahead_on

"Merge strategy for the requested data position. Requested barset is merged with current barset in the order of sorting bars by their opening time. This merge strategy can lead to undesirable effect of getting data from "future" on calculation on history. This is unacceptable in backtesting strategies, but can be useful in indicators."

[All other timeframes barmerge.lookahead is disabled.

Notes de version
//update
Notes de version
//corrected indicator labels
Notes de version
//code clean-up

Clause de non-responsabilité

Les informations et les publications ne sont pas destinées à être, et ne constituent pas, des conseils ou des recommandations en matière de finance, d'investissement, de trading ou d'autres types de conseils fournis ou approuvés par TradingView. Pour en savoir plus, consultez les Conditions d'utilisation.