In MQL4 the event handlers "OnTick()" and "start()" are the same thing and should not both be used at the same time.
"OnTick()" is the new MQL4+ format and "start()" is from the old MQL4 format. So, use only the MQL4+ format of using "OnInit()" and "OnTick()" and remove ""start()" from your code.
Also, please use the Styler (Menu->Tools->Styler) to properly format your code. It is currently difficult to read and can lead to badly coded logic.
-
SendNotification does not store information, so there is no “refresh”.
How To Ask Questions The Smart Way. 2004
Be precise and informative about your problem -
IIRC, the maximum limit on emails, is just like SendNotification: “no more than 2 calls per second and not more than 10 calls per minute.” Add a Sleep(6) after the Send… and wrap a mutex around both (for multiple symbols).
-
SendNotification does not store information, so there is no “refresh”.
How To Ask Questions The Smart Way. 2004
Be precise and informative about your problem -
IIRC, the maximum limit on emails, is just like SendNotification: “no more than 2 calls per second and not more than 10 calls per minute.” Add a Sleep(6) after the Send… and wrap a mutex around both (for multiple symbols).
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
I have used void OnTick() to specify when to refresh SendNotification() function and after how many ticks to check if conditions have changed or they are the same then if changed then to send notification to the journal on MT4 but this only work on initialization then doesnt work therefore. Please help.