if(Volume[0]==1)SendNotification("A new candle is here.");
- Why did you post your MT4 question in the
Root /
MT5 EA section
instead of the MQL4
section (bottom of the Root
page?) General rules and best pratices of the Forum. - General - MQL5
programming forum
- Bars is unreliable (a refresh/reconnect can change number of bars on chart,) volume is unreliable (miss ticks,) Price is unreliable (duplicate prices and The == operand. - MQL4 forum.) Always use time. New candle - MQL4 forum I disagree with making a new bar function, because it can only be called once per tick. A variable can be tested multiple times.
whroeder1:
- Why did you post your MT4 question in the
Root /
MT5 EA section
instead of the MQL4
section (bottom of the Root
page?) General rules and best pratices of the Forum. - General - MQL5
programming forum
- Bars is unreliable (a refresh/reconnect can change number of bars on chart,) volume is unreliable (miss ticks,) Price is unreliable (duplicate prices and The == operand. - MQL4 forum.) Always use time. New candle - MQL4 forum I disagree with making a new bar function, because it can only be called once per tick. A variable can be tested multiple times.
Oh, I will pay attention next time.
Thanks for the heads up.
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
I have made a very simple EA and it gives me notification. However, after one to two hours, it just stops and my terminal is still open. Anyone have any idea why? Other EA are also like this.
My code is as following: