Type : Indicator, Name : Double Smoothed Exponential Moving Average
Inputs:
Price(Close),
Length(30);
Vars:
X1(0),
X2(0),
Dema1(0);
X1= XAverage(Price,Length);
X2= XAverage(XAverage(Price,Length),Length);
DEMA1 = X1 * 2 — X2;
Plot1(Dema1, «DEMA1»);