mirror of
https://github.com/mihakralj/QuanTAlib.git
synced 2026-08-24 05:28: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("High-Low Volatility (HLV)", "HLV", overlay=false)
|
||||
//@returns float The High-Low Volatility value.
|
||||
//@optimized for performance and dirty data
|
||||
hlv(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 lnH = math.log(high), float lnL = math.log(low)
|
||||
float C_4LN2_INV = 0.3606737602 // 1.0 / (4.0 * math.log(2.0))
|
||||
float parkinsonEstimator = C_4LN2_INV * math.pow(lnH - lnL, 2)
|
||||
|
||||
Reference in New Issue
Block a user