Indicator Arrows Alert Help

dollarwise

Trader
Feb 20, 2020
1
0
6
38
Hello,
I commend your excellent work. do you know the code to make the arrow appear 60-100s before the event? i dont want a repainting. attached here is the indicator that is giving me issues
 

Attachments

  • Indicator_Arrows.ex5
    95.2 KB · Views: 26
  • Indicator_Arrows.mq5
    34.1 KB · Views: 35

Enivid

Administrator
Staff member
Nov 30, 2008
18,607
1,366
144
Odesa
www.earnforex.com
I will repeat what I have posted in response to your commentary in the blog:
I hope you mean that you want the alerts to appear 90 seconds ‘after’, not ‘before’, because otherwise it would be impossible to achieve. Your condition won’t delay anything for the first case of alert checking, because last_time is most likely 0 at the time of declaration. It will also work rather unpredictable after that – if the next alert triggers 60 seconds after the previous one, last_time will also be at least 60 seconds older than TimeCurrent(). You need to update time_current to current time only when the next new alert condition is met (but do not sound the alert at time yet).
 

mikebabako

Newbie
Nov 10, 2021
1
0
2
38
Hello,
I commend your excellent work. do you know the code to make the arrow appear 60-100s before the event? i dont want a repainting. attached here is the indicator that is giving me issues
Hello Did you manage to get and indicator that displays 60s before the event?