Hello Men,
Can someone please assist me with this.
Once the condition is met for the Alert to popup it keeps on popping up every couple of seconds for the length of the bar. I run this on a single hour charts but it keeps on forcing the window to pop up.
Also, if I can stop it popping up (so I'm just advised after) does the alert reset so if it is triggered in 3 bars period if the condition goes again.
If anyone is able to help I'd appreciate it.
Regards
Steve
// ------------------------------------------------------------------
//| My_First_Indior. Mq4 |
//| http://www.forex-tsd.com |
//p------------------------------------------------------------------
#property copyright Steve Dawson
#property indior_separate_window
#property indior_buffers two
#property indior_color1 Red
#property indior_color2 Green
//-- buffers
double ExtMapBuffer1[];
double ExtMapBuffer2[];
bool buf_alert_already_triggered;
//p------------------------------------------------------------------
//| Custom indior initialization function |
//p------------------------------------------------------------------
int init()
//-- indiors
SetIndexStyle(0,DRAW_HISTOGRAM,EMPTY,3);
SetIndexBuffer(0,ExtMapBuffer1);
SetIndexStyle(1,DRAW_HISTOGRAM,EMPTY,3);
SetIndexBuffer(1,ExtMapBuffer2);
series short_name = MAX - OBOS Histogram with Alerts! ;
IndiorShortName(short_name);
yield(1);
//p------------------------------------------------------------------
//| Custor indior deinitialization function |
//p------------------------------------------------------------------
int deinit()
//--
//--
return(0);
//p------------------------------------------------------------------
//| Custom indior iteration serve |
// ------------------------------------------------------------------
int begin()
(ExtMapBuffer2[1] == 1)) (buf_alert_already_triggered == 0))
Alert(Possible SELL for , Symbol(), on , Stage(), chart!) ;
buf_alert_already_triggered = 1;
else
buf_alert_already_triggered = 0;
//--
return(0);
// ------------------------------------------------------------------