you don't appear to be populating the value of Close and Open so they will have equal value and the condition will never be met.
I've never heard of this before.
My other codes have worked perfectly well on Strategy Tester without copyrates.
The alert works in the Strategy Tester by appearing in the Journal Tab but not in a separate window.
I've never heard of this before.
My other codes have worked perfectly well on Strategy Tester without copyrates.
The alert works in the Strategy Tester by appearing in the Journal Tab but not in a separate window.
my bad forgot you were on MT4
why don't you print out the values of Close and Open to make sure the test is valid
and if you want to just test the alerts simply remove the if.
You might want to limit the alert to just once in either case as it will try and alert every tick as it is coded
it works on my MT4 so I would check the values of the condition that you are getting
- www.mql5.com
it works on my MT4 so I would check the values of the condition that you are getting
Actually it works on mine. I just found out now.
I've been testing it on an offline chart that's where it's not working.
I made a 3m chart. It does not work there. Why?
I suggest that you check the values of open and close...
Here is what solved the problem:
https://www.mql5.com/en/forum/152421#comment_3779431
Uncheck the Offline Chart in properties.
- 2014.07.18
- www.mql5.com
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
Hello
I have a very simple EA with an alert only. Here is the code:
This code is just to test the Alert and Playsound functions.
But nothing happens. My EA is activated with a happy face on the chart.
No popup notification or sound is played, nothing appears in the Journal or Alert tab either.
What is wrong here?