Ultra Trend Zero Lag MA Indicator For MT5

Ultra Trend Zero Lag MA Indicator For MT5

The Ultra Trend Zero Lag MA Indicator For MT5 is an advanced indicator that analyzes the different moving average especially the JMA and analyzes the slopes of the trend to find the potential buying and selling point for the trading instrument. When the market is in the downtrend, you are most likely to experience a brown color cloud in the indicator window. On the contrary, when the indicator cloud is colored in green, you should be looking for long trade setups. The indicators work like chart when you use it as a trade filter tool. Since the tool is capable of generating signals without any lag, you can also use its reading to trade the lower time frame.

FREE Ultra Trend - Zero Lag MA Indicator

Download the FREE Ultra Trend - Zero Lag MA 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 Ultra Trend Zero Lag MA 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 Ultra trend - zero lag ma.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 Ultra Trend Zero Lag MA Indicator For MT5

The Ultra Trend Zero Lag MA Indicator For MT5 has 4 parameters to configure.

input int  inpUtrPeriod   = 3;   // Start period
input int  inpProgression = 5;   // Step
input int  inpInstances   = 30;  // Instances
input int  inpSmooth      = 5;   // Ultra trend smoothing period

Buffers of the Ultra Trend Zero Lag MA Indicator For MT5

The Ultra Trend Zero Lag MA Indicator For MT5 provides 6 buffers.


Main Parts Of The Code

int OnCalculate(const int rates_total,const int prev_calculated,const datetime &time[],
                const double &open[],
                const double &high[],
                const double &low[],
                const double &close[],
                const long &tick_volume[],
                const long &volume[],
                const int &spread[])
   if(Bars(_Symbol,_Period) lt rates_total) return(prev_calculated);
   int endLength=inpUtrPeriod+inpProgression*inpInstances;
   int i=(int)MathMax(prev_calculated-1,1); for(; i lt rates_total && !_StopFlag; i++)
      double valueUp=0;
      double valueDn=0;

      for(int k=inpUtrPeriod,instance=2; k lt =endLength && i gt 0; k+=inpProgression,instance++)
         if(_iSmooth[instance].CalculateValue(close[i-1],k,i-1,rates_total) lt _iSmooth[instance].CalculateValue(close[i],k,i,rates_total))
         else valueDn++;
      valp[i]  = _iSmooth[0].CalculateValue(valueUp,inpSmooth,i,rates_total);
      valm[i]  = _iSmooth[1].CalculateValue(valueDn,inpSmooth,i,rates_total);
      valpc[i] = (valp[i] gt valm[i]) ? 1 : 2;
      valmc[i] = valpc[i];
      fillu[i] = valp[i];
      filld[i] = valm[i];
   return (i);


About Me

I'm Mike Semlitsch the owner of PerfectTrendSystem.com. 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:  

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.

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