Pentuple Exponential Moving Average

Category: Indicators By: Nicolas Created: January 23, 2017, 2:01 PM
January 23, 2017, 2:01 PM
Indicators
0 Comments

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.

//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"

 

Download
Filename: PRC_PEMA.itf
Downloads: 179
Nicolas Master
I created ProRealCode because I believe in the power of shared knowledge. I spend my time coding new tools and helping members solve complex problems. If you are stuck on a code or need a fresh perspective on a strategy, I am always willing to help. Welcome to the community!
Author’s Profile

Comments

Logo Logo
Loading...