Up and Down Indicator Indicator For MT5

Up and Down Indicator Indicator For MT5

The Up and Down Indicator Indicator For MT5 shows the strength of the upwrd and the downward moves. The height of the histogram values will grow and shrink according to the volatility of the moves. During upward moves the values get positive and the histogram is green. During downward moves the color is red and the values get negative.

FREE Up and Down Indicator Indicator

Download the FREE Up and Down Indicator 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 Up and Down Indicator 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 k_iupdown.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 Up and Down Indicator Indicator For MT5

The Up and Down Indicator Indicator For MT5 has 2 parameters to configure.

input string comment="Index from 1-10 to increase sensitivity.";
input int tick_volume_index=7;

Buffers of the Up and Down Indicator Indicator For MT5

The Up and Down Indicator Indicator For MT5 provides 5 buffers.

SetIndexBuffer(0,ExtOpenBuffer,INDICATOR_DATA);
SetIndexBuffer(1,ExtHighBuffer,INDICATOR_DATA);
SetIndexBuffer(2,ExtLowBuffer,INDICATOR_DATA);
SetIndexBuffer(3,ExtCloseBuffer,INDICATOR_DATA);
SetIndexBuffer(4,ExtColorsBuffer,INDICATOR_COLOR_INDEX);

Main Parts Of The Code

int OnCalculate(const int rates_total,      // size of input timeseries
                const int prev_calculated,  // bars handled in previous call
                const datetime& time[],     // Time
                const double& open[],       // Open
                const double& high[],       // High
                const double& low[],        // Low
                const double& close[],      // Close
                const long& tick_volume[],  // Tick Volume
                const long& volume[],       // Real Volume
                const int& spread[])        // Spread
  {

   int  i=0;
   bool vol_up=true;
   passNo++;
   if(i lt prev_calculated) i=prev_calculated-1;

   while(i lt rates_total)
     {
      if(i!=0)//Do not count the first bar.
        {
         total_vol+=tick_volume[i];
         count_bars++;
        }

      double x=0;
      if(count_bars==0)
        {
         x=tick_volume[i]*100.0/tick_volume_index;
        }
      else
        {
         double avg_vol=1.0*total_vol/count_bars;
         x=tick_volume[i]*100.0/(avg_vol*tick_volume_index);//Get %
        }

      int col=0;
      if(x gt 0)col=0;
      if(x gt 25)col=1;
      if(x gt 50)col=2;
      if(x gt 75)col=3;

      if(open[i] lt close[i])//UP
        {
         ExtColorsBuffer[i]=col;
        }
      else//DOWN
        {
         ExtColorsBuffer[i]=4+col;
        }

      ExtOpenBuffer[i]=0;//open[i];
      ExtHighBuffer[i]=high[i]-open[i];
      ExtLowBuffer[i]=low[i]-open[i];
      ExtCloseBuffer[i]=close[i]-open[i];

      i++;
     }

   return(rates_total);
  }
//+------------------------------------------------------------------+

 

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!