Read ALert?

Jajaofopobo

Trader
Sep 6, 2021
66
7
24
is it possible for an indicator to read alert or an alert message from an indicator.

I don't have access to the indicator file and i want to add some conditions to it
 

Jajaofopobo

Trader
Sep 6, 2021
66
7
24
Thanks @Enivid . Also thought of using icustom to get the buffer value of the indicator arrow so i can add the conditions to it later but it is not giving the value i need.
Post automatically merged:

MQL4:
//+------------------------------------------------------------------+
//|                                                Reveal.mq4 |
//|                      Copyright © 2011, MetaQuotes Software Corp. |
//|                                        http://www.metaquotes.net |
//+------------------------------------------------------------------+
 
#property copyright "Copyright © 2011, MetaQuotes Software Corp." // #property copyright  is used for the ownership of the EA
#property link      "http://www.metaquotes.net"                   // #property ownership is used for the owners website link.
 
 
 
input string Indicator_name = "Beast Signal";
 
 
 
 
//+------------------------------------------------------------------+
//| expert start function                                            |
//+------------------------------------------------------------------+
 
datetime newbar; // the part datetime newbar; so that everytime an arrow is given it wont open a new order every tick.
 
int start() // this starts the engine of the code.
 
{
 
if(newbar==Time[0])return(0); //
else newbar=Time[0];
 
 
 
double ArrowUp = iCustom(NULL,0,Indicator_name,1,0);
 
double ArrowDown = iCustom(NULL,0,Indicator_name,2,0);
 
 
if (ArrowDown != EMPTY_VALUE)
 
  {
    Alert(Symbol()+"Sell Signal entry at: "+DoubleToString(ArrowDown));
  }
if (ArrowUp != EMPTY_VALUE)
 {
    Alert(Symbol()+"Buy Signal entry at: "+DoubleToString(ArrowUp));
 
  }
 
return(0); // returns back to the start function of the program.
}
 

Jajaofopobo

Trader
Sep 6, 2021
66
7
24
It is not giving the value i need for the ArrowUp and ArrrowDown buffer values . Been Trying to figure out what went wrong with it

couldnt proceed to add the conditions
 

Attachments

  • 1111111.PNG
    1111111.PNG
    33.1 KB · Views: 3