- Problem with OnTimer()..
- How OnTimer work with Oninit
- Questions from Beginners MQL5 MT5 MetaTrader 5
Use the debugger or print out your variables, including _LastError and prices and find out why. Do you really expect us to debug your code for you?
Code debugging - Developing programs - MetaEditor Help
Error Handling and Logging in MQL5 - MQL5 Articles (2015)
Tracing, Debugging and Structural Analysis of Source Code - MQL5 Articles (2011)
Introduction to MQL5: How to write simple Expert Advisor and Custom Indicator - MQL5 Articles (2010)
Use the debugger or print out your variables, including _LastError and prices and find out why. Do you really expect us to debug your code for you?
Code debugging - Developing programs - MetaEditor Help
Error Handling and Logging in MQL5 - MQL5 Articles (2015)
Tracing, Debugging and Structural Analysis of Source Code - MQL5 Articles (2011)
Introduction to MQL5: How to write simple Expert Advisor and Custom Indicator - MQL5 Articles (2010)
- It does work in MT4.
- You are calling OnTimer directly, so that works as well.
hi guys, do u see any problem in call ontimer here? i didnt have any problem with close the order but i expected congrat=true in comments because of my ontimer function, but it seems on timer didnt call or ontimer didnt work properly. it works when the tanzim become true !
You would have to call OnTimer 1800 times to make mecend==1800.

- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use