the Quadruple Exponential Moving Average is calculated with a set of different EMA of EMA.
I introduced in the code the possibility to change the moving average type for the indicator calculation (from 0 to 6):
0 = SMA
1 = EMA
2 = WMA
3 = Wilder
4 = Triangular
5 = End point
6 = Time series
Of course you can also modify the calculation period in the indicator parameter.
Code adapted from TS2 platform.
//PRC_QEMA | indicator
//Nicolas @ www.prorealcode.com
//Sharing ProRealTime knowledge
// period = 14
// method = MOVING AVERAGE TYPE
RETURN QEMA as "Quadruple Exponential Moving Average indicator"
No information on this site is investment advice or a solicitation to buy or sell any financial instrument. Past performance is not indicative of future results. Trading may expose you to risk of loss greater than your deposits and is only suitable for experienced investors who have sufficient financial means to bear such risk.ProRealTime ITF files and other attachments :