mirror of
https://github.com/mihakralj/QuanTAlib.git
synced 2026-08-25 13:58: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:
@@ -10,8 +10,6 @@ indicator("Exponential Moving Average (EMA)", "EMA", overlay=true)
|
||||
//@returns EMA value from first bar with proper compensation
|
||||
//@optimized Uses exponential warmup compensator for O(1) complexity and valid output from bar 1
|
||||
ema(series float source, simple int period=0, simple float alpha=0) =>
|
||||
if alpha <= 0 and period <= 0
|
||||
runtime.error("Alpha or period must be provided")
|
||||
float a = alpha > 0 ? alpha : 2.0 / (period + 1)
|
||||
float beta = 1.0 - a
|
||||
var bool warmup = true
|
||||
|
||||
Reference in New Issue
Block a user