mirror of
https://github.com/mihakralj/QuanTAlib.git
synced 2026-08-22 12:38:06 +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("Average Daily Range (ADR)", "ADR", overlay=false)
|
||||
//@returns float ADR value
|
||||
//@optimized for performance and dirty data
|
||||
adr(simple int length, simple int method = 1) =>
|
||||
if length <= 0
|
||||
runtime.error("Length must be greater than 0")
|
||||
if method < 1 or method > 3
|
||||
runtime.error("Method must be 1 (SMA), 2 (EMA), or 3 (WMA)")
|
||||
var int p = math.max(1, length)
|
||||
var int head = 0
|
||||
var int count = 0
|
||||
|
||||
Reference in New Issue
Block a user