The Quintuple Exponential Moving Average indicator is of multiple EMA of EMA which formula is this one:
Pema=8*Ema1-28*Ema2+56*Ema3-70*Ema4+56*Ema5-28*Ema6+8*Ema7-Ema8
Code adapted from the Metatrader5 formula.
Coded by a request in the ProBuilder English support forum.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 |
//PRC_PEMA | indicator //23.01.2017 //Nicolas @ www.prorealcode.com //Sharing ProRealTime knowledge //--- parameters // period = 14 // method = MOVING AVERAGE TYPE // --- Price=customclose MA1=Average[period,method](Price) MA2=Average[period,method](MA1) MA3=Average[period,method](MA2) MA4=Average[period,method](MA3) MA5=Average[period,method](MA4) MA6=Average[period,method](MA5) MA7=Average[period,method](MA6) MA8=Average[period,method](MA7) PEMA=8*MA1-28*MA2+56*MA3-70*MA4+56*MA5-28*MA6+8*MA7-MA8 RETURN PEMA as "Pentuple Exponential Moving Average indicator" |
Share this
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 :
Filename : download the ITF files
How to import ITF files into ProRealTime platform?
PRC is also on YouTube, subscribe to our channel for exclusive content and tutorials