Calculates the Volatility Risk Premium (VRP) by comparing implied volatility against realized volatility calculated using Close-to-Close, Parkinson, or Garman-Klass methods.
Volatility Risk Premium plots VRP values as a histogram or line in a separate pane with optional Bollinger Bands, mean reversion Z-score signals, term structure lines, and threshold zones. Main inputs control the realized volatility period, calculation method, statistical lookback, regime thresholds, and UI options such as statistics panels and candle coloring.
The inputs you can change from the gear icon on the chart. Defaults are the author's.
Setting
Type
Default
Variable
Realized Vol Period
int
20
rv_length
RV Calculation Method
string
Close-to-Close
rv_method
VRP Smoothing (EMA)
int
5
vrp_smoothing
Statistical Lookback
int
252
vrp_lookback
High VRP (%)
float
5.0
threshold_high
Extreme VRP (%)
float
10.0
threshold_extreme
Low VRP (%)
float
-2.0
threshold_low
Short-Term RV Period
int
10
rv_short
Long-Term RV Period
int
60
rv_long
Show Term Structure Lines
bool
false
show_term_structure
Z-Score Threshold
float
2.0
mr_zscore_threshold
Show MR Signals
bool
false
show_mr_signals
Show all 26 settings
Setting
Type
Default
Variable
Show VRP Bands
bool
false
show_bollinger
Band Multiplier
float
2.0
bb_mult
Histogram
bool
true
show_histogram
Line
bool
false
show_line
IV/RV Components
bool
false
show_components
Statistics Panel
bool
true
show_table
Threshold Lines
bool
true
show_thresholds
Dynamic Background
bool
true
show_background
Color Candles
bool
true
color_candles
VRP Momentum
bool
false
show_momentum
Momentum Period
int
5
vrp_momentum_length
Theme
string
EdgeTools
color_scheme
Dark Mode
bool
true
use_dark_mode
Background Transparency
int
85
background_intensity
Third-party code. ForexR did not write, test or endorse this script, and the summary above was generated automatically from its code and README. Indicators describe the past, and a strategy's backtest can look better than live trading, especially when a script repaints. Check it in the Strategy Tester and on a demo account before you rely on it.
This indicator calculates the distribution of close-to-close percentage changes using rate of change on closing prices. It bins percentage changes into intervals of 0.25 percent increments from negative to positive values and plots a normalized cumulative hist
This indicator plots a Supertrend-based trend-following setup in a separate pane and skips conditions it treats as a sideways market. A volatility range is built from an ATR value, with RMA, SMA, EMA, or WMA smoothing, or from a fixed point distance. Optional
This indicator plots candle range and open-to-close movement as percentages in a separate pane. Range is the high-low difference divided by the low, and change is the close-open difference divided by the open. Both series draw as columns. Teal columns show ran
The Mojito v3 Strategy indicator evaluates volatility term structure by calculating the ratio between front-month and second-month VIX futures contracts. It smooths this ratio using a configurable median filter and compares the result against user-defined uppe
Calculates dynamic modeling values by applying a mathematical logistic differential equation to price change over a specified lookback length. It measures price momentum relative to the recent high-low price range. The script plots positive and negative logist
MACD-V is a volatility-normalized momentum indicator based on research by Alex Spiroglou. It calculates the standard MACD histogram and normalizes it by dividing by the Average True Range (ATR). Plotted in a separate pane as a colored histogram, it includes us