Candle Closure Price Alert Indicator

 

Hello I am looking for an indicator, which alerts you when a support or resistance is broken only with the body closing price 

Can someone an indicator like this help me?

Files:
Sem_t9tulo.png  14 kb
 
berb:

Hello I am looking for an indicator, which alerts you when a support or resistance is broken only with the body closing price 

Can someone an indicator like this help me?

We are not allowed to discuss or suggest products in the forum, so you should make your own search in the Codebase, the Market or order one in Freelance.

 
berb: Can someone an indicator like this help me?
Help you with what? You haven't stated a problem, you stated a want. You have only four choices:
  1. Search for it.
  2. Beg at
  3. MT4: Learn to code it.
    MT5: Learn to code. If you don't learn MQL4/5, there is no common language for us to communicate. If we tell you what you need, you can't code it. If we give you the code, you don't know how to integrate it into yours.
  4. or pay (Freelance) someone to code it.
              Hiring to write script - General - MQL5 programming forum
We're not going to code it for you (although it could happen if you are lucky or the problem is interesting.) We are willing to help you when you post your attempt (using CODE button) and state the nature of your problem.
          No free help
          urgent help.
 
Get a freelancer to code for you. It's a simple indicator
 

Horizontal lines and trend lines you drew are available.

//+------------------------------------------------------------------+
//|                                                   CloseAlert.mq5 |
//|                        Copyright 2019, MetaQuotes Software Corp. |
//|                                             https://www.mql5.com |
//+------------------------------------------------------------------+
#property copyright "Copyright 2019, MetaQuotes Software Corp."
#property link      "https://www.mql5.com"
#property version   "1.00"
#property indicator_chart_window

input int  SoundInterval = 30;
input bool Check_HorizontalLine = true;
input bool Check_TrendLine = true;
bool AlertFlag = false;

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[])
{

   int obj_total = ObjectsTotal(0, 0, -1);        
   
   string name;                                 
   
   for (int i = 0; i < obj_total; i++)
   {
      name = ObjectName(0, i, 0, -1);
      
      if(ObjectGetInteger(0, name, OBJPROP_TYPE) != OBJ_HLINE &&
         ObjectGetInteger(0, name, OBJPROP_TYPE) != OBJ_TREND)
        continue;
              
      if (!Check_HorizontalLine &&
           ObjectGetInteger(0, name, OBJPROP_TYPE) == OBJ_HLINE)
         continue;
         
      if (!Check_TrendLine &&
           ObjectGetInteger(0, name, OBJPROP_TYPE) == OBJ_TREND)
         continue;
        

      double HorizontallinePrice, TrendlinePrice;
      
      ArraySetAsSeries(time, true);
      iTime(_Symbol, PERIOD_CURRENT, 0);

      ArraySetAsSeries(open, true);
      iOpen(_Symbol, PERIOD_CURRENT, 0);
      
      ArraySetAsSeries(close, true);
      iClose(_Symbol, PERIOD_CURRENT, 0);  
   
      
      if (ObjectGetInteger(0, name, OBJPROP_TYPE) == OBJ_HLINE)
      {
         HorizontallinePrice = ObjectGetDouble(0, name, OBJPROP_PRICE);  
      }
 
      if (ObjectGetInteger(0, name, OBJPROP_TYPE) == OBJ_TREND)
      {
         TrendlinePrice  = ObjectGetValueByTime(0, name, time[1]);
          
      }
      
      if((HorizontallinePrice > open[1]) && (HorizontallinePrice <= close[1]))
      {
         if(AlertFlag == false)
         {
             Alert(_Symbol+_Period+" UP @"
                   +DoubleToString(close[1], _Digits)+" over "
                   +DoubleToString(HorizontallinePrice, _Digits)+" ["+name+"]");
           
           
            AlertFlag = true;
         }
      }
      
      else if((TrendlinePrice > open[1]) && (TrendlinePrice <= close[1]))
      {
         if(AlertFlag == false)
         {

             Alert(_Symbol+_Period+" UP @"
                    +DoubleToString(close[1], _Digits)+" over "
                    +DoubleToString(TrendlinePrice, _Digits)+" ["+name+"]");
           
            AlertFlag = true;
         }
      }
      
      else if((HorizontallinePrice < open[1]) && (HorizontallinePrice >= close[1]))
      {
         if(AlertFlag == false)
         {
            Alert(_Symbol+_Period+" DOWN @"
                  +DoubleToString(close[1], _Digits)+" under "
                  +DoubleToString(HorizontallinePrice, _Digits)+" ["+name+"]");
            AlertFlag = true;
         }
      }
      
      else if((TrendlinePrice < open[1]) && (TrendlinePrice >= close[1]))
      {
         if(AlertFlag == false)
         {
            Alert(_Symbol+_Period+" DOWN @"
                  +DoubleToString(close[1], _Digits)+" under "
                  +DoubleToString(TrendlinePrice, _Digits)+" ["+name+"]");
            AlertFlag = true;
         }
      }
      
      else
     {
         AlertFlag = false;
      }
   }
   return(rates_total);
}
Reason: