mirror of
https://github.com/mihakralj/QuanTAlib.git
synced 2026-08-26 06: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:
@@ -13,14 +13,6 @@ indicator("Volatility Adjusted Moving Average (VAMA)", "VAMA", overlay=true)
|
||||
//@returns VAMA value
|
||||
//@optimized Uses RMA compensator for ATR and circular buffer for O(1) sum updates
|
||||
vama(series float source, simple int base_length, simple int short_atr_period=10, simple int long_atr_period=50, simple int min_length=5, simple int max_length=100) =>
|
||||
if base_length <= 0
|
||||
runtime.error("Base length must be greater than 0")
|
||||
if short_atr_period <= 0 or long_atr_period <= 0
|
||||
runtime.error("ATR periods must be greater than 0")
|
||||
if min_length <= 0 or max_length <= 0
|
||||
runtime.error("Min and max length must be greater than 0")
|
||||
if min_length > max_length
|
||||
runtime.error("Min length must be less than or equal to max length")
|
||||
var float prevClose = na
|
||||
float tr1 = high - low
|
||||
float tr2 = math.abs(high - prevClose)
|
||||
|
||||
Reference in New Issue
Block a user