mirror of
https://github.com/mihakralj/QuanTAlib.git
synced 2026-08-23 13:08:04 +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:
@@ -9,10 +9,6 @@ indicator("Rogers-Satchell Volatility (RSV)", "RSV", overlay=false)
|
||||
//@param annualPeriods Number of periods in a year for annualization. Default is 252 for daily data.
|
||||
//@returns float The Rogers-Satchell Volatility value.
|
||||
rsv(simple int length, 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")
|
||||
float h = math.max(high, 0.0000001)
|
||||
float l = math.max(low, 0.0000001)
|
||||
float o = math.max(open, 0.0000001)
|
||||
|
||||
Reference in New Issue
Block a user