Key_Reversal Indicator For MT5

Key_Reversal Indicator For MT5

The Key_Reversal Indicator For MT5 displays the key reversal zone with the help of three bars or engulfing patterns. The engulfing pattern is a strong reversal signal that is used by the elite investors.

The indicators have five unique input levels. The trend detection period is used to deal with the number of bars that will be assessed to find the trend direction. The filter adjust segment is for the advanced traders who love to trade the cross pairs in the market. The signals are generated in the form of a red and blue arrow. Red arrow indicators a new down trend is going to take place. On the contrary, the blue arrow indicates a new up trend is going to dominate the market. This indicator is equipped with an advanced alert system that can generate email alerts. If you are super busy, you can use the SMS alert system of this indicator.

However, jumping into the trades with the arrow marking is a big mistake. Analyze the condition of the market and determine the lot size accordingly.

FREE Key_Reversal Indicator

Download the FREE Key_Reversal 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 Key_Reversal 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 Key_Reversal.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 Key_Reversal Indicator For MT5

The Key_Reversal Indicator For MT5 has 5 parameters to configure.

input uint              InpPeriod      =  2;          // Trend detection period
input ENUM_INPUT_YES_NO InpUseFilter   =  INPUT_YES;  // Use trend detection filter
input ENUM_INPUT_YES_NO InpUseAlert    =  INPUT_YES;  // Show alerts
input ENUM_INPUT_YES_NO InpSendMail    =  INPUT_NO;   // Send mails
input ENUM_INPUT_YES_NO InpSendPush    =  INPUT_YES;  // Send push-notifications

Buffers of the Key_Reversal Indicator For MT5

The Key_Reversal Indicator For MT5 provides 2 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[])
//--- #AB0= gt 2:0  lt 0AA82 gt 2 1CD5@ gt 2 :0: B09 lt A5@89
//--- @ gt 25@:0 : gt ;8G5AB20 4 gt ABC?=KE 10@ gt 2
   if(rates_total lt fmax(period,4)) return 0;
//--- @ gt 25@:0 8 @0AGQB : gt ;8G5AB20 ?@ gt AG8BK205 lt KE 10@ gt 2
   int limit=rates_total-prev_calculated;
   if(limit gt 1)

//---  0AGQB 8=48:0B gt @0
   static datetime last_time=0;
   for(int i=limit; i gt =0 && !IsStopped(); i--)
      BufferBKR[i]=(Verification(i,open,high,low,close)== 1 ? low[i]  : EMPTY_VALUE);
      BufferTKR[i]=(Verification(i,open,high,low,close)==-1 ? high[i] : EMPTY_VALUE);
//--- !83=0;K
   string Alerts="";
   if(time[0] gt last_time && (BufferTKR[1]!=EMPTY_VALUE || BufferBKR[1]!=EMPTY_VALUE))
      string dir=(BufferBKR[1]!=EMPTY_VALUE ? "Up" : BufferTKR[1]!=EMPTY_VALUE ? "Down" : "");
      string message=Symbol()+", "+TimeframeToString(Period())+": Key Reversal "+dir+" Signal.";
      if(InpUseAlert) Alert(message);
      if(InpSendMail  && TerminalInfoInteger(TERMINAL_EMAIL_ENABLED)) SendMail("Key Reversal indicator Signal",message);
      if(InpSendPush && TerminalInfoInteger(TERMINAL_NOTIFICATIONS_ENABLED)) SendNotification(message);

//--- return value of prev_calculated for next call
//|  gt 8A: ?0BB5@= gt 2                                                  |
int Verification(const int shift,const double &open[],const double &high[],const double &low[],const double &close[])
   int signal=(close[shift] gt high[shift+1] ? 1 : close[shift] lt low[shift+1] ? -1 : 0);
      return signal;
   for(int i=1; i lt =period; i++)
      int check=(close[shift+i] gt open[shift+i] ? 1 : close[shift+i] lt open[shift+i] ? -1 : 0);
      if((signal==1 && check==1) || (signal==-1 && check==-1))
         return 0;
   return signal;
//| Timeframe to string                                              |
string TimeframeToString(const ENUM_TIMEFRAMES timeframe)
   return StringSubstr(EnumToString(timeframe),7);


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.