Download MetaTrader 5
To add comments, please log in or register
Searching on MQL5.community is performed in all sections. Try it!
Parker
23
Parker 2014.05.27 03:05 

Hi all, first time poster.

 Looking for some assistance here. I have an indicator (Attached)

 

Essentially an alert goes off after three consecutive bull or bear candles, provided the price action exceeds the previous close low or high.

What ends up happening, is that the price action of the next candle moves above and below these levels triggering multiple alerts, (which is very obnoxious on a 5 minute chart.)

 

I am wondering if it is possible to fix this setting so that ideally once the price action breaks the previous H/L close the alert triggers once and is done.

Less ideally would be to negate the current bar price action influence.

 

Thanks in advance and I look forward to more posting! 

Alain Verleyen
Moderator
28658
Alain Verleyen 2014.05.27 10:28  
ParkerRush92:

Hi all, first time poster.

 Looking for some assistance here. I have an indicator (Attached)

 

Essentially an alert goes off after three consecutive bull or bear candles, provided the price action exceeds the previous close low or high.

What ends up happening, is that the price action of the next candle moves above and below these levels triggering multiple alerts, (which is very obnoxious on a 5 minute chart.)

 

I am wondering if it is possible to fix this setting so that ideally once the price action breaks the previous H/L close the alert triggers once and is done.

Less ideally would be to negate the current bar price action influence.

 

Thanks in advance and I look forward to more posting! 

The source code (.mq4) is needed to modify an indicator.
SYED NAUFAL GADDAFI
1401
SYED NAUFAL GADDAFI 2014.05.27 12:22  
Can't he just use disable alert once hit ?
whroeder1
13641
whroeder1 2014.05.27 17:21  
ParkerRush92: moves above and below these levels triggering multiple alerts,
You are triggering on a level
bool isSignal = Bid > somelevel
if (isSignal) Alert() // obnoxious

Instead trigger on a change of signal:
   static bool isSignal = true;
   bool wasSignal = isSignal;
   isSignal = Bid > somelevel
   if(issignal && !wasSignal) Alert()

/
To add comments, please log in or register