mirror of
https://github.com/mihakralj/QuanTAlib.git
synced 2026-08-21 20:18:05 +00:00
fix(docs): correct .md documentation across errors, dynamics, filters, forecasts, momentum, numerics, oscillators, reversals, statistics, trends, volatility, volume
Deep review of all indicator categories verified .md headers against .cs WarmupPeriod, parameters, inputs, and outputs. Fixes include warmup corrections, parameter documentation, output type accuracy, and Pine Script alignment.
This commit is contained in:
@@ -10,10 +10,6 @@ indicator("Realized Volatility (RV)", "RV", overlay=false)
|
||||
//@param annualPeriods Number of periods (of the main chart's timeframe) in a year for annualization. Default is 252 (assuming daily chart).
|
||||
//@returns float The Realized Volatility value.
|
||||
rv(simple int length = 20, simple string intradayTimeframe = "5", simple bool annualize = true, simple int annualPeriods = 252) =>
|
||||
if length <= 0
|
||||
runtime.error("Length must be greater than 0")
|
||||
if annualize and annualPeriods <= 0
|
||||
runtime.error("Annual periods must be greater than 0 if annualizing")
|
||||
intraday_closes_arr = request.security_lower_tf(syminfo.tickerid, intradayTimeframe, close)
|
||||
float sum_sq_log_returns = 0.0
|
||||
if array.size(intraday_closes_arr) > 1
|
||||
|
||||
Reference in New Issue
Block a user