stats_realized-volatility
Compute realized volatility from OHLC data using close-to-close, Parkinson, Garman-Klass, or Yang-Zhang methods. Returns annualized and rolling volatility series.
Instructions
Realized volatility: close-to-close, Parkinson, Garman-Klass, Yang-Zhang from OHLC.
Use when computing historical/realized volatility from a return series. Provide returns and optional annualization factor. Returns: realized volatility (close-to-close), annualized vol, and rolling vol series.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"close": "<close>"
},
"name": "stats_realized-volatility"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| low | No | Optional array of low prices (for Parkinson/GK/YZ) | |
| high | No | Optional array of high prices (for Parkinson/GK/YZ) | |
| open | No | Optional array of opening prices (for GK/YZ) | |
| close | Yes | Array of closing prices | |
| annualization_factor | No | Trading days per year |