mirror of
https://github.com/mihakralj/QuanTAlib.git
synced 2026-08-22 20:48: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:
@@ -8,9 +8,6 @@ indicator("Yang-Zhang Volatility (YZV)", shorttitle="YZV", overlay=false)
|
||||
//@returns Yang-Zhang Volatility value for the current bar
|
||||
//@optimized Uses bias-corrected RMA with OHLC prices for O(1) complexity per bar
|
||||
yzv(int length) =>
|
||||
if length <= 0
|
||||
runtime.error("Length must be greater than 0 for YZV calculation.")
|
||||
float(na)
|
||||
o=open,h=high,l=low,c=close,pc=na(close[1])?open:close[1]
|
||||
ro=math.log(o/pc),rc=math.log(c/o),rh=math.log(h/o),rl=math.log(l/o)
|
||||
s_o_sq=ro*ro,s_c_sq=rc*rc
|
||||
|
||||
Reference in New Issue
Block a user