You compulsorily must use function RefreshRates() in endless looped cycle - "MQL4: RefreshRates" And don't forget move callings of custom indicators into cycle too.
Read a little themes according to the results of this search - https://www.mql5.com/en/search?utm_campaign=MQL4.community
Read a little themes according to the results of this search - https://www.mql5.com/en/search?utm_campaign=MQL4.community
The only place I can think to put that is after the beginning of the loop at
bool not_done = true;
while(not_done)
Refreshrates();
???
bool not_done = true;
while(not_done)
Refreshrates();
???
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
On the 4hr EURUSD chart:
The conditions for a bull trend re-entry:
When the bid > 89sma && the 8ema > 21ema && the difference between the 8ema and 21 ema > 0.0002 && the bid < the 14ema
(opposite for a bear trend re-entry)
I'm supposed to get en email alert sent to me and have an audible alarm sound. I've watched the price meet all the conditions but the script doesn't function. The loop is in there to continuously check to make sure the script keeps running until the conditions are met. I have this running on a few different charts and the script is named differently per chart. I can't figure this one out...
Any help would be much appreciated.