PEMA Indicator For MT5

PEMA Indicator For MT5

The PEMA Indicator For MT5 displays a Pentuple Exponential Moving Average (PEMA). As is evident from the name, a five folded Exponential Moving Average of the price of an underlying asset gets calculated. The indicator was originally created by Bruno Pio in 2010.

Two basic types of analysis can be performed using the PEMA Indicator For MT5:

1. EMA Slope - An indicator curve that is consistently rising higher signifies a market in an up trend. Contrarily, an indicator curve that is persistently dipping lower signals a market in a down trend.

2. Price Crossover - When an instrument convincingly closes above the average, it is likely headed higher. Conversely, when price ends beneath the average line, it could potentially test lower levels.

FREE PEMA Indicator

Download the FREE PEMA Indicator for MT5.

To receive my email 100% sure: 
Put my email on your whitelist!


Partially Automated Trading Besides Your Day Job

Alerts In Real-Time When Divergences Occur

My Recommended MT4/MT5 Broker


Installing the PEMA Indicator For MT5

After you downloaded the indicator via the form above you need to unzip the zip-file. Then you need to copy the file pema.mq5 into the folder MQL5\Indicators of your MT5 installation. After that please restart MT5 and then you will be able to see the indicator in the list of indicators.

Parameters of the PEMA Indicator For MT5

The PEMA Indicator For MT5 has 2 parameters to configure.

input int                InpPeriodEMA=14;               // EMA period
input int                InpShift=0;                    // Indicator s shift

Buffers of the PEMA Indicator For MT5

The PEMA Indicator For MT5 provides 9 buffers.


Main Parts Of The Code

int OnCalculate(const int rates_total,
                const int prev_calculated,
                const int begin,
                const double &price[])
//--- check for data
   if(rates_total lt 8*InpPeriodEMA-8)
   int limit;
   else limit=prev_calculated-1;
//--- calculate EMA
//--- calculate EMA on EMA array
//--- calculate EMA on EMA array on EMA array
   //--- calculate EMA on EMA array on EMA array on EMA array
   //--- calculate EMA on EMA array on EMA array on EMA array on EMA array
//--- calculate PEMA
   for(int i=limit;i lt rates_total && !IsStopped();i++)
//--- OnCalculate done. Return new prev_calculated.


About Me

I'm Mike Semlitsch the owner of My trading career started in 2007. Since 2013 I have helped thousands of traders to take their trading to the next level. Many of them are now constantly profitable traders. 

The following performance was achieved by me while trading live in front of hundreds of my clients:

Connect With Me:  

Results From 5 Months!
This service starts soon! Be the first who get's notified when it begins!

This FREE Indicator Can Transform
Your Trading!

FREE Indicator + Telegram Group

Request the Ultimate Double Top/Bottom Indicator which is used by 10,000+ traders.