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:
@@ -9,8 +9,6 @@ indicator("Modified Moving Average (MMA)", "MMA", overlay=true)
|
||||
//@returns MMA value, combines SMA with weighted component for balanced smoothing
|
||||
//@optimized Uses circular buffer for O(1) sum updates, O(n) for weighted component
|
||||
mma(series float source, simple int period) =>
|
||||
if period < 2
|
||||
runtime.error("Period must be at least 2")
|
||||
var array<float> buffer = array.new_float(math.min(math.max(2, period), 4000), na)
|
||||
var int head = 0
|
||||
var float sum = 0.0
|
||||
|
||||
Reference in New Issue
Block a user