dema
Syntax
dema(X, window)
Please see TA-Lib Functions for the parameter description and windowing logic.
Details
Calculates the Double Exponential Moving Average (dema) for X in a sliding window of the given length.
The formula is:


Note:
Equivalent to TA-Lib's DEMA function. The difference is that
DolphinDB dema accepts vectors, matrices, and tables as input,
whereas TA-Lib DEMA is primarily designed for one-dimensional
NumPy arrays and does not support matrix or table inputs.
Returns
A vector with the same length as X or a matrix/table with the same dimensions as X.
