ArchitectureStrategiesResearchWhy UsPricing
Risk & Dispersion Metric Custom & Factor Metrics

realized_vol: Annualized Realized Volatility

Measures the annualized standard deviation of log returns, tracking pure price fluctuation magnitude.

Visual Rule Syntax: @realized_vol(close, 252, 252) < 0.25

Key Takeaways

  • Evaluates price fluctuation magnitude independently of stock price scale.
  • Directly replicates the formula behind the Nifty100 Low Volatility 30 factor index.
  • Enables dynamic position sizing so calm stocks and volatile stocks balance evenly.

What It Means in Simple Terms

Realized volatility tells you how wildly a stock bounces around each day. It doesn't care whether the stock is going up or down—it only measures the size of the jumps. Think of it like turbulence on a flight: high volatility means violent bumps, while low volatility means a calm, smooth cruise.

How It Helps You as an Investor

It gives you the superpower of risk parity and volatility targeting. Instead of putting ₹1 Lakh into a stable large-cap and ₹1 Lakh into a wild mid-cap (where the wild mid-cap ends up driving 80% of your risk), you can use realized volatility to size trades so every position contributes the exact same amount of risk.

Visual Node Rule Syntax & How to Plug in Values

Visual Node Expression No Code Required
@realized_vol(close, 252, 252) < 0.25

Parameter Tuning & Market Calibration

The primary parameter is the lookback window $n$. For long-term portfolio balance, use 252 days (1 year) or 126 days (6 months). A rule like `@realized_vol(close, 252) < 0.22` filters for calm compounders with annual volatility under 22%. If you want to detect sudden panic turbulence, use a fast 21-day window: `@realized_vol(close, 21) > 0.40` warns you that volatility has spiked to 40%.

Input Fields & Parameters

Field / Parameter Type Default Role & Description
field field Required Historical input price or volume series from market feed.
timeperiod int 252 Lookback period or tuning parameter for market calibration.
trading_days_per_year int 252 Lookback period or tuning parameter for market calibration.

Mathematical Formulation

The mathematical definition of realized_vol (Annualized Realized Volatility) as evaluated within the Saral Engine execution pipeline:

σann=252N−1∑t=1N(rt−rˉ)2wherert=ln⁡(PtPt−1)\sigma_{\text{ann}} = \sqrt{\frac{252}{N-1} \sum_{t=1}^N \left(r_t - \bar{r}\right)^2} \quad \text{where} \quad r_t = \ln\left(\frac{P_t}{P_{t-1}}\right)

Variable & Parameter Definitions

$r_t$ is the 1-bar log return $\ln(P_t / P_{t-1})$, $\bar{r}$ is the sample mean of log returns, and 252 annualizes daily variance into annual volatility, matching the official NSE Factor Index methodology.

Systematic Strategy Applications

Low-Volatility Screen Universe Filter
@realized_vol(close, 252, 252) < 0.22

Screen for calm, high-stability compounders with annual volatility below 22%.

Turbulence Risk-Off Trigger Risk Filter
@realized_vol(close, 21, 252) > 0.40

Step aside to cash or reduce leverage when 1-month realized volatility exceeds 40% annualized.

Common Questions & Practical Considerations

What is the difference between Realized Volatility and India VIX?

Realized volatility measures actual price moves that already happened in the past. India VIX measures expected volatility over the next 30 days based on live Nifty option prices.

Does low volatility mean zero downside risk?

No. Low volatility stocks can still fall during severe bear markets. However, empirical studies show low-volatility portfolios historically experience smaller drawdowns and recover faster than high-beta portfolios.

What is the danger of using a very short volatility window?

Windows shorter than 20 days get distorted by quarterly earnings announcements. A single 5% earnings gap can make a calm stock look artificially risky for several days.